10-20-2011, 08:02 AM
|
#1 |
Join Date: Dec 2008 Location: Rome Thanks: 0
Thanked 0 Times in 0 Posts
| Ninjatrader: How to Draw a Sign on a Chart when X Bars Have Passed Since... Hello everyone,
I would like to ask if someone could help me to create a simple indicator that draws a sign on the chart (i.e. any kind of mark or vertical line) when X bars (to be specified by user) have passed since the price last touched the 800 simple moving average (SMA) on the timeframe of the current chart.
When that condition happens, then the "counter" should be re-set to zero and start counting again.
That indicator should also be applicable to historical charts.
Thank you in advance,
Gianluca. |
| |