That is the first issue. The second is that every time I update this indicator by changing a variable or, reloading the indicator, NinjaTrader goes into meltdown. It stops responding for several seconds. Maybe there is some optimization I need to do to the code. I have a feeling that the problem may be that I am doing 2 things with this indicator. One is to display the current efficiency while the candle is forming and; the other is to display triangles on previous candles that were efficient. One is relying on current data and the other is relying on historical data.
My indicator is attached. I would appreciate any help.
Comment