Belo Horizonte, MG/Brazil
Posts: 11 since Mar 2015
Thanks Given: 0
Thanks Received: 13
|
In fact, that is easy.
I wonder why you did not get an answer so far.
You will have to use NOW().
Now(4) return the current time in TIMENUM() format.
I also can't post links yet.
So:
if( now(4) >= 094000 and now(4) <= 100000)
{
Ret_color = colorGreen;
y = 90
}
else
{
Ret_color = colorBlue;
y = 130
}
GfxSelectSolidBrush( Ret_Color );//for rectangle color
x=1050
x2 = x-180;
GfxRectangle(x, y - 70, x2, y);//for displaying rectangle on chart
|