Download MetaTrader 5
To add comments, please log in or register
Let your idle PCs do something useful. Join MQL5 Cloud Network!
mosnfx
9
mosnfx 2015.04.30 12:10 

Hi

 

 Can anybody help me how I can the low/high point of Zigzag indicator?

 I need to set the stop loss for my position when created by EA

 Assume my EA decide to open a position if it is buy I need previous Zigzag lowest point in M5

 or if it is a sell I need previous Zigzag highest point in M5

 Appreciate it

 

Mosn 

mosnfx
9
mosnfx 2015.04.30 12:12  
whroeder1
13624
whroeder1 2015.04.30 15:30  
mhshasx:  Can anybody help me how I can the low/high point of Zigzag indicator?
  1. Loop your shifts until you get the first nonzero value
  2. Continue the loop until you get the next nonzero value.
  3. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
/
To add comments, please log in or register