|
Colorado Springs, CO
Experience: Beginner
Platform: NinjaTrader
Posts: 22 since Oct 2009
Thanks Given: 16
Thanks Received: 0
|
I'm using VisualSMA successfully, representing an 8 range SMA on a 6 range chart...
However, I want to use the same settings in a strategy to tell me if price is close to the SMA.
I'm using the following code:
VisualSMA(50, false, true, VisualSMACalcMode.Strategy, VisualSMAPeriodType.Range, 8, VisualSMAPriceType.Close).MTF_SMA[0]
To test the code, I used it in a strategy to draw dots.
It works for all available bar types EXCEPT Range..
Any ideas would be greatly appreciated.
Thank you all in advance..
|