Reply To: Bar within % of MA

Optuma Forums Optuma Scripting Bar within % of MA Reply To: Bar within % of MA

  • 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.

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:

  • This reply was modified 3 weeks, 2 days ago by MatthewMatthew.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.