joeHACindicator3 is ordinary.
joeHAOindicator is defined as the average of previous day’s joeHACindicator3 and previoud day’s joeHAOindicator [ie] joeHAOindicator is a function of itself.
Specifically joeHAOindicator=(joeHACindicator3(1)[1]+joeHAOindicator(1)[1])/2.
I have had the following results with debug test cases that I made up:
//PlotHAO.Set(( (1.30000+joeHACindicator3(1)[0])/2 ) + 0.03000);//jm THIS WORKS FOR DAY0 BUT NOT FOR YESTERDAY [DAY1]
//PlotHAO.Set(( (joeHAOindicator(1)[0]+joeHACindicator3(1)[0])/2 ) + 0.03000);//jm THIS ONE CRASHED NinjaTrader
PlotHAO.Set(( (joeHAOindicator(1)[1]+joeHACindicator3(1)[0])/2 ) + 0.03000);//jm worked but plotted nothing for joeHAOindicator
I realize this is probably thoroughly confusing but with help it may be a start toward a fix.
Attached is both indicators and the strategy.
Comment