PDA

View Full Version : CCI Automated Strategy Question


rptrader
05-15-2007, 03:34 PM
Hi all,

I need some help. I'm trying to write a strategy in
NinjaTrader to alert me every time the CCI is above
200 and below -200. Right now it alerts me the first
time that happens but that's it. I'd like it to alert
me every time it goes back above 200 or back below
-200. I've never had any experience writing a program
or strategy before so I have no clue what I'm doing.
I'd really appreciate any and all help I can get.

Thanks
rptrader

NinjaTrader_Ray
05-15-2007, 04:37 PM
Hi rptrader,

Welcome to the world of programming. Here is what I would suggest to get you on the right track.

- If all you want to do is generate an alert of some kind, I would write it as an indicator, not a strategy
- I would start by going through each one of the Indicator development tutorials, level 1 through 6 to get you familiar with developing an indicator
- Then I would tackle creating the alert indicator you want

rptrader
05-17-2007, 10:12 AM
Ray,

Is it possible to make a CCI indicator that alerts you when it goes crosses above the 200 line and then re-arms when it goes back below the 200 line so another alert pops up the next time it happens?

Thanks
Ryan

NinjaTrader_Ray
05-17-2007, 10:37 AM
Yes, this is possible. You will have to use our Alert() method and ResetAlert() method.

See the Help Guide for its usage.