거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

ZigZag Semaphore ( semafor ) Indicator - MetaTrader 4용 지표

The algorithms author is unknown to me
게시자:
LukeB
조회수:
30318
평가:
(22)
게시됨:
2019.12.22 15:37
업데이트됨:
2019.12.22 19:37
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

This indicator places a mark (a semaphore, spelling is semfor and retained from the original) at the zig zag for each of 4 zig zag evaluation lengths.   This means the zig zag does not draw lines on the charts, just marks the locations of the zig zags.   The algorithm is one of the simpler algorithms for zig zag, found in a posting for “!!!-MT4 SEMAFOR", and is implemented in the methods “DetectNewSwing”, “LoadIndiBuffers” and “SetSwingBarValues””. The original would not run in the strategy tester (I believe it would not run real time, only correctly producing marks on the history at startup).   This version runs fine in the strategy tester.  I believe the algorithm as implemented is true to the original, it seems to create the marks true to the positions of the original, including with the flaws I could see.   A more elaborate algorithm could be implemented into the mentioned functions if needed.

The marks show the level of the mark with a small white dot for level one, a red circle around the white dot for level 2, a yellow circle around both the white dot and red circle for level 3 and finally, a green circle around them all for level 4.


The lengths are user enterable, and set for default values with these entries:

    extern int  Level_1_Length     = 21; // Zig Zag 1 detection length (21)

    extern int  Level_2_Length     = 40; // Zig Zag 2 detection length (40)

    extern int  Level_3_Length     = 60; // Zig Zag 3 detection length (60)

    extern int  Level_4_Length     = 72; // Zig Zag 4 detection length (72)

Two controls are added, one to turn text labels showing marked zig-zag’s price value on and off and the other to remove all the indicator marks from the display, or turn them back on – just click on the two text objects to toggle between on and off.


I believe I have structured and commented pretty well for those interested in the code.


Expert adviser licence protection template Expert adviser licence protection template

Guide 'how to' make different expert adviser license protections

Fast In Fast Out Strategy Fast In Fast Out Strategy

FIFO strategy When all the market movement makes you have lost, This ea makes a good profit with a little profit with many orders in a short time Just on a Candle.

VR Smart Grid Lite VR Smart Grid Lite

The EA uses large volume orders to partially close other orders, with this approach, the breakeven and profit price is much closer to the current price than if you use all orders in the terminal or their full volumes.

MACD Sample Hedging Grid MACD Sample Hedging Grid

Classic "MACD Sample " EA with a little twist