Hello, 

I have been trying for 2-3 weeks now to fix my macd strategy so that I can optimize it and use it for backtesting. I seem to be stuck on the indicator creation as the GetParameters() doesn't let me use more than 1 value. I tried creating private ints to add them to the indicator instead of the values but it doesn't work. Anything to recommend?

 

here is what i did for the MACD (I predefined spy hence why it's not in “”)

 

_fastMACD = EMA(spy, fastPeriod);

_slowMACD = EMA(spy, slowPeriod);

_macd = MACD(spy, _fastMACD, _slowMACD, signal);

Author