Hi,
I’m using the “!osa” indicator for my strategy but I’m having trouble retrieving the values:
indicator_color5 DodgerBlue - MACD
indicator_color6 Chocolate - SigL
In the journal, I’m getting values of 0 for MACD and SigL and I suspect that I’m setting it up incorrectly:
double macdValueM30 = iCustom(Symbol(), PERIOD_M30, “!osa”, 0, 166, 233, 20, 1, 1, 0, 0, 0, 2.5, true, false,1500, 4);
double signalLineValueM30 = iCustom(Symbol(), PERIOD_M30, “!osa”, 0, 166, 233, 20, 1, 1, 0, 0, 0, 2.5, true, false,1500, 5);
Any ideas on how to retrieve the MACD and SigL values from this indicator?
I’m using the “!osa” indicator for my strategy but I’m having trouble retrieving the values:
indicator_color5 DodgerBlue - MACD
indicator_color6 Chocolate - SigL
In the journal, I’m getting values of 0 for MACD and SigL and I suspect that I’m setting it up incorrectly:
double macdValueM30 = iCustom(Symbol(), PERIOD_M30, “!osa”, 0, 166, 233, 20, 1, 1, 0, 0, 0, 2.5, true, false,1500, 4);
double signalLineValueM30 = iCustom(Symbol(), PERIOD_M30, “!osa”, 0, 166, 233, 20, 1, 1, 0, 0, 0, 2.5, true, false,1500, 5);
Any ideas on how to retrieve the MACD and SigL values from this indicator?