How to use ZigZag indicator to measure and store swing distance (in pips)?
-
Hi everyone,
I’m trying to build an EA in FXDreema that can measure the total swing size between the latest ZigZag high and low — basically how many pips the market moved from one point to the next.
What I want to do is:
Use the ZigZag indicator to detect the last swing high and swing low.
Calculate the distance in pips between those two points.
Store that value in a variable (for example, LastSwingPips) so I can later use it for money management or filters.
I’ve tried using “Indicator value” blocks in FXDreema, but I’m not sure how to correctly pick the last swing points or calculate the difference between them.
Can anyone share a step-by-step or example on how to do this in FXDreema (or MQL4 if easier to explain)?
Thanks in advance

-
@windsor-2003 You can do it this way:

Tjis will get the points distance. If you need it in pips, simply add the necessary formula on the 'Adjust the result' box.
-
Big Thank Big Man very need your help
-
You're welcome.