Little problem. The 2 lines of code that are a problem I denoted with " ** ". I'm able to compile "Group A", but can't enable the strategy.
When I remove the 2 lines, I'm able to compile and enable the "Group B" strategy. I can't figure out what's wrong with those 2 lines of code.
No errors. Nothing in the logs for either group of commands. Can someone assist?
(Group "A")
if ((Close[0] > SMA(26)[0]) &&
(MACD(12, 26, 9)[1] < MACD(12, 26, 9)[0] && MACD(12, 26, 9)[1] < MACD(12, 26, 9)[2]) &&
** ((MACD(12, 26, 9)[9] < MACD(12, 26, 9)[6] && MACD(12, 26, 9)[9] < MACD(12, 26, 9)[12] && MACD(12, 26, 9)[9] < MACD(12, 26, 9)[3]) ||
** (MACD(12, 26, 9)[10] < MACD(12, 26, 9)[7] && MACD(12, 26, 9)[10] < MACD(12, 26, 9)[13] && MACD(12, 26, 9)[10] < MACD(12, 26, 9)[4])))
{
Draw.ArrowUp(this, @"Up " + Convert.ToString(CurrentBars[0]), false, 0, (Low[0] + (-4 * TickSize)) , Brushes.Lime);
}
-------------------------------------------------------------------
(Group "B")
if ((Close[0] > SMA(26)[0]) &&
(MACD(12, 26, 9)[1] < MACD(12, 26, 9)[0] && MACD(12, 26, 9)[1] < MACD(12, 26, 9)[2]))
{
Draw.ArrowUp(this, @"Up " + Convert.ToString(CurrentBars[0]), false, 0, (Low[0] + (-4 * TickSize)) , Brushes.Lime);
}
Comment