Neutral.Set(EMA(BarsArray[9],20)[0]);
It works with no problem and properly shows me a price marker on the right side.
Now I am trying to "convert" this to use RoundedToSickSize. In other indicators I used to use this, and it worked:
Neutral.Set(Instrument.MasterInstrument.Round2Tick Size(EMA(20)[0]));
However, when I am now trying the following to access the BarsArray[9]:
Neutral.Set(Instrument.MasterInstrument.Round2Tick Size(EMA(BarsArray[9],20))[0]);
I get an error message as it does not want to accept the code, "... has some invalid arguments".
Any idea what I need to do differently here?
sandman
Comment