I'd like to display the +DI and -DI. I'm thinking of modifying the NinjaTrader's ADX indicator by adding:
Add(new Plot(Color.Green, "+DI"));
Add(new Plot(Color.Red, "-DI"));
...
Value.Set [1](diPlus == 0 ? 50 : ((Period - 1) * Value[1] + 100 * diff / sum) / Period);
Value.Set [2](diMinus == 0 ? 50 : ((Period - 1) * Value[1] + 100 * diff / sum) / Period);
Please let me know your comments and suggestions.
Thanks very much.
Richard
Comment