created static variables with words fast, slow, smooth to modify the values of diff, macd and avg. The indicator works fine
Now I am adding the indicator within another indicator script to do something
I then am calling that indicator in another indicator to do something
so when I add CrossAbove(MACDX(fast, slow, smooth) I get an error only fast does not exit
when I put CrossAbove(MACDX(12, 26, 9) does it work.
I know this has been going on in forum for some time, passing global variable does not exist in NinjaTrader, but in one of the thread I say creating static would but that did not work in this case.
The only option I have seems to again create the variable in the second indicator, which I will do but just a pain.
So is there a solution, and will NinjaTrader 8 accommodate global variable finally.
Comment