While the CCI is ranging between 200 and -200, it prints yellow.
However...
If the CCI crosses the 200 level, it prints blue until it crosses back down below the 100 level at which time it will print yellow again.
If the CCI crosses the -200 level, it prints orange until it crosses back up over the 100 level, at which time it prints yellow again.
Hopefully this makes sense - can some one give me a hint on how to do this? I tried using a while loop, but always seem to freeze up ninjatrader whenever I try that....
Thanks for the suggestions.
Comment