High/Low value?

 

Hi all,

I use zigzag to find Highs and Lows.

How I put every high value to a variable and put every low value to another variable?

What kind of function must I use?

The idea is I want to connect every High to High and every Low to Low with a line. So to connect them, I need to get the values marked by zigzag. But how?

Anyone can help, please?

 

from what it sounds like your are decribing support and resistance lines (also caled trendlines), to draw them , in the metatrader platform, at the top click insert, lines, trendline, then you can connect the highs and the lows.

if you wish to automate this strategy, (i'm assuming your farmilliar with metaeditor) in the navigation click search, and search for

ihigh

ilow

thoose functions will help you in automating trendlines.

Reason: