Problems on Detecting the peaks and troughs via icustom and the zigzag indicator.
- Triangle detector - Pbl with ZigZag
- Using iCustom function of the ZigZag indicator to close open trades when a new peak or trough is form
- Indicators: Harmonic Pattern Finder V2
How many buffers does the "zigzag" Indicator have ? and what buffer number is MODE_HIGH ?
PeakPointValue= iCustom(sym,tf,"zigzag",12,5,3, MODE_HIGH, i);
iCustom() mode - Line index. Can be from 0 to 7 and must correspond with the index used by one of SetIndexBuffer functions.
PeakPointValue= iCustom(sym,tf,"zigzag",12,5,3,1,i); //use 1 directly instead of MODE_HIGH. to get the peak point value of the zigzag indicator. TroughPointValue= iCustom(sym,tf,"zigzag",12,5,3,0,i);//use 0 directly instead of MODE_LOW to get the trough point value of the zigzag indicator....
Hi Tao,
Did you manage to get this working?
Im trying to do the same.
Thanks.
- Simon Gniadkowski: How many buffers does the "zigzag" Indicator have ? and what buffer number is MODE_HIGH ?
ZZ only has one buffer segment. That means between highs and lows the values are zero (IIRC otherwise EMPTY_VALUE).
- Ash Hashimy: Did you manage to get this working? Im trying to do the same.
Do you really expect that people are still watching this thread after seven (7) years?
Don't resurrect old threads without a very good reason. A lot has changed since Build 600 and Higher. 2014.02.03