- Topics: 5
- Replies: 309
- Posts: 314
The WithinRange() function allows you to find where a value is within x% of another value. For example a Close within 2% of a Moving Average.
V1 = CLOSE() ;
V2 = MA(BARS=80) ;
The shaded green zone in the following example shows where the script triggers, when the Close is within 2% of the 80SMA (within the blue dashed lines).
More information: https://help.optuma.com/kb/faq.php?id=1038
- This reply was modified 3 weeks, 2 days ago by Matthew.