To anyone interested: I installed Velocity's .cs file from post #220 from this thread as a new indicator. I then had my strat call that indicator instead. See attached pic to see how this thing works. The working code is as follows:
if (VelocityTrend(14, TradingStudies.NinjaScript.Utility.MovingAverageTy pe.HMA, 1.5, 14, TradingStudies.NinjaScript.Utility.SuperTrendMode. ATR).Signal[0] == 1 && VelocityTrend(14, TradingStudies.NinjaScript.Utility.MovingAverageTy pe.HMA, 1.5, 14, TradingStudies.NinjaScript.Utility.SuperTrendMode. ATR).Signal[1] == -1
&& DoubleMA(5, NinjaTrader.Indicator.DoubleMA_internal.DMAType.HM A, 45, NinjaTrader.Indicator.DoubleMA_internal.DMAType.VM A).Signal[0] == 1)
Opposite for shorts.
A great many thanks to Roonius for TSSuperTrend's creation, to Velocity for ending my chainsmoking session and to laparker for his (or her) patience with me yesterday (though you may have to fight Velocity for those naming rights).
Happy Trading,
Dave
Comment