The code I have is as follows:
if ((SMA(3)[0] > SMA(3)[1]))
{
DrawArrowUp("Up Arrow", 0, SMA(3)[0] -0.05, Color.Lime);
}
// Else if the close of the bar with SMA(3) crosses below the SMA(3) one bar back, draw a DOWN ARROW
else if ((SMA(3)[0] < SMA(3)[1]))
{
DrawArrowDown("Down Arrow", 0, SMA(3)[0] +0.05, Color.Red);
}
Thanks in advance.
Comment