Script Sharing Thread

I currently have (and am building) numerous end-of-day scans for codes to trade. I am willing to share on here if others are also. We can learn a lot from each other (tricks and work-arounds come to mind).

I put this in the General thread for more visibility. If we start to find a group who is interested then the admins can point us to the best place to do this. I have a forum setup that we could use. But it would help more to have this info available for anyone with Optuma and an interest.

Thanks.
Andy

I will start with a simple max range over past 9 trading days. This snippet can be used in a number of ways.

r=ABS(HIGH()-LOW()); 
mr=MAX(r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8]) ; 
mr

Note the MAX function appears to work when used like this.