if ((MACD(12, 26, 9).Avg[0]) < (MACD(12, 26, 9).Avg[1]))
{
DrawArrowDown("Dn"+ CurrentBar, 0, High[0] + 2 * TickSize, Color.Red);
}
When that didn't work, I put this in front of the *if* statement to see what was happening. The output window only shows the first 2 print statements.
Print("outside if statement begin");
Print(Time[0].ToString());
Print("MACD 0 bar " + MACD(12, 26, 9).Avg[0] + "/ MACD 1 bar " + MACD(12, 26, 9).Avg[1]);
Thank you.
Comment