NinjaTrader Script

Discussion in 'Automated Trading' started by pilgs13, May 13, 2007.

  1. pilgs13


    I tried writing a strategy using the NinjaTrader strategy script. I want to be alerted every time the CCI is above 200 and below -200. I got the strategy to alert me when the first time it is above 200 and the first time it's below -200 but it only works the first time. I want it to alert me every time it crosses those lines not just the first time. So if it goes above 200 then goes back below it I want the alert to re-alarm. I don't know how to do that. Can someone please help me out and tell me how to write that strategy?