if (CrossAbove(SMA(Close, 5), SMA(Close, 20), 1))
{
DrawRectangle("My rectangle"+ CurrentBar , 1, Low[1] - 2 * TickSize, 0, High[0] + 2 * TickSize, Color.Blue,BackColor,2);
}
if (CrossBelow(SMA(Close, 5), SMA(Close, 20), 1))
{
DrawRectangle("My rectangle2"+ CurrentBar , 1, Low[1] - 2 * TickSize, 0, High[0] + 2 * TickSize, Color.Red,BackColor,2);
}
The edges of the boxes go through the middle of the candles not either side of the correct candle.Is there a way of correcting this?
Can I change the color of the inside high light?
For some reason not all crosses are high lighted. Any ideas why?
Many thanks
Comment