Problems drawing a Rectangle

 

Hi everyone,

I've been trying to draw a rectangle on my window but i don't get anything.

I think the problem is in this code:

...

ObjectCreate("Box", OBJ_RECTANGLE, 0, time1, box_low,time2, box_high);

ObjectSet("Box", OBJPROP_COLOR, PowderBlue);
ObjectSet("Box", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("Box", OBJPROP_WIDTH, 2);

...

time1: I use number of seconds elapsed since midnight (00:00:00), January 1, 1970

time2: I use other number of seconds elapsed since midnight (00:00:00), January 1, 1970

box_low: I use the low price wich i calculated before

box_high: the high price that i also calculated before

Please can anyone check if there's anything wrong.

Many thanks in advance.

 

Thanks fbj.

It's a very interesting article for Newbies like me. I think i found my error!

 

oh this good - wish i find mine - ;)

Reason: