Need Help Please With Design

 

I want to have an EA draw a line on a chart from from the low priced bar to the high priced bar over a specific number of bars. I then want a box drawn (width would be time from low price to high price, and height would be the actual change in price).

The biggest thing I need help with is simply to draw the line from a low price to a high price. After that, I think I can figure out how to draw the box. Thanks for any help getting me pointed in the right direction!

 

Hi

Could you look at the zigzag indicator to solve your problem? That draws straight lines between two points with many candles in between.

Reason: