if (MACD(12, 26, 9)[0] - MACD(12, 26, 9)[1] > 0.01)
{
DrawArrowDown("My down arrow" + CurrentBar, false, 0, High[0] + 4 * TickSize, Color.Red);
}
How can I reference the previous bars? It will compile, but the arrows will not plot. The arrow will plot if the bars ago are set to [0]...for example something like
if (MACD(12, 26, 9)[0] > 0.01)
{
DrawArrowDown("My down arrow" + CurrentBar, false, 0, High[0] + 4 * TickSize, Color.Red);
}
Thanks
Comment