Draw box on chart

 
Hello All,

In MT4, I would like to draw some boxes on a chart via the code. Would i use SetIndexStyle and the style to DRAW_SECTION?

Can someone provide an example for this?

I would image that to draw a box you will need to give the drawing routine 4 points to build the box.

Thank you for your Time
EK
 
indicator draws its lines from left to right. DRAW_SECTION allows draw line like zigzag.
you can create/move/remove rectangle objects from indicator
Reason: