| / | Search |
|
As far as 2 values, if you examine the ZigZag code, both values end up the same for a given point. It runs through and finds the local highs and lows, then it goes back through again and keeps only the extremes (if you have hi then a hi, then it only keeps the higher hi, and this ensures a zig-zag, hi-lo-hi-lo pattern) and the last time through it sets both values to the same value. So, both values inside of ZigZag both return the zig zag value for a point. Any non-extreme bar will have zig zag value of zero. The extremes will have zigzag value of their price. However, the lows are not showing up. Very odd.
EA Description: EA is gathering signal information from different standard indicators (MA Slow & Fast, Bollinger, Stohastic, MACD, RSI) to determine if the market trend is either Bullish, Bearish or Flat (ZigZag). The final idea is to apply 3 strategies of which only one (RSI & STOH signals) with Buy/Sell and Exit signals are currently coded into the EA. The other two will be based upon BEAR/BULL signals (Of which most of the code is already included, except the buy/sell and exit codes) and Bollinger events (Of which most of the code is already included, except the buy/sell and exit codes).
The idea is the moment the market enters a ZigZag pattern, both Bull and Bear scores should be lowered - that is why both acquires the same penalty: If ZigZag score gets above 15, both Bull and Bear score are panalised with a minus 15, regardless of their values.
I would say YES. Your solution looks interesting, but ZIGZAG points not stabilised yet (in ZIGZAG indicator these are stored in HighMapBuffer[] and LowMapBuffer[]) should not be used.
ZIGZAG Channel Breakout indicator
Displayed chart currently contains three attached indicators (all the same) with different configuration.
Im realy new to MQL4 and I got a problem with an Indicator which im writing at the moment. I was trying for LOTS of hours but i didnt manage to solve it... So I realy hope that a pro could give me a good advice. Its a very basic ZigZag indicator (for learning purposes only) and i have some conditions for a high / Low. If all conditions are true, i write the High / Low Pip value (High[] / Low[]) to the correct place to the buffer. if the conditions for the bar are not true, i just write 0 or 0.0. But if i look at it on the chart, i have on every high / Low just a vertical line which comes from the bottom of the chart to the high / low, and no zigzag! if I use an arrow (DRAW_ARROW) it works fine, and i have an arrow below every low and above every high, but i want zigzag!! please give me a hand!
Im realy new to MQL4 and I got a problem with an Indicator which im writing at the moment. I was trying for LOTS of hours but i didnt manage to solve it... So I realy hope that a pro could give me a good advice. Its a very basic ZigZag indicator (for learning purposes only) and i have some conditions for a high / Low. If all conditions are true, i write the High / Low Pip value (High[] / Low[]) to the correct place to the buffer. if the conditions for the bar are not true, i just write 0 or 0.0. But if i look at it on the chart, i have on every high / Low just a vertical line which comes from the bottom of the chart to the high / low, and no zigzag! if I use an arrow (DRAW_ARROW) it works fine, and i have an arrow below every low and above every high, but i want zigzag!! please give me a hand!
for(i1=Bars-1;i1>=0;i1--) { P1=iCustom(NULL,0,"ZigZag",0,i1); if(P1!=0) break; } // process the ZigZag points for(i2=i1-1;i2>=0;i2--) { // find the next point and save its location and price
Of course I do not htink price will follow RED indicator's line but there is still a lot of other oportunities to use this indicator. I think it should be a case of next research. I believe price does not behave according to a mathematics but rather psychology. And thats why S/R levels are the ones most successfull in technical analysis. I am now working with ZIGZAG and S/R levels and trading in channel, resp. S/R levels breakout trading. I think extrapolation of S/R levels - points (already valid ZIGZAG tops and bottoms) would be more reliable. That's why I am so thankful to you for releasing this great piece. If you do not mind, I would like to use the logic you used to predict price, for my next research in S/R points - ZIGZAG tops and bottoms prediction and trading. Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 > >> |