Reply To: Creating a date range/region with script

Optuma Forums Optuma Scripting Creating a date range/region with script Reply To: Creating a date range/region with script

#52003
Matthew
  • Topics: 5
  • Replies: 430
  • Posts: 435

Hi Dean,

Based on your screen shot the following script should provide the result you are after:

 

 

The switch function will swap between 1 (True) and 0 (False) when the last 2 closes cross below a MA or above the MA.

The shaded green zone shows where the script returns a true result…

Ex4

  • This reply was modified 2 years ago by Matthew.
1 user thanked author for this post.

Pin It on Pinterest