I am currently using the following to draw a rectangle from 3am to 20 bars forward.
if (ToTime(Time[0]) == 30000)
{
DrawRectangle("tag1"+CurrentBar, 0 ,Open[0], -20, Close[0], Color.PaleGreen);
}
I have tried this but nothing shows up on the chart...
if (ToTime(Time[0]) == 30000)
{
DrawRectangle("tag1"+CurrentBar,true, 30000 ,Open[0], 40000, Close[0], Color.PaleGreen,Color.Red,5);
}
Comment