Draw a rectangle on chart with 2 set of x,y coordinates.

Syntax:

Coloured is optional.

Example 1:

Draw rectangle if difference of last higher high of lower low are  not superior than “boxheight”. Draw only if time elapse are no less than “period”.

drawrectangle example

Example 2:

Draw a range box between 2 schedules:

Example 3:

Create a box to highlight an Harami pattern on chart:

Related entries

Share this