The code is based on indicator ZigZag which is in-built in MT4, developed by MetaQuotes.
I have changed it slightly so that it isn’t calculated on highest Highs and lowest Lows, but instead uses highest Close and lowest Close of chart price history.
See chart below for differences: ZigZag (အနီေရာင်) versus ZigZagClose (yellow).

Some differences are minor in nature, while at other times the effects are significant.
MT4 အညွှန်းကိန်းများ – ဒေါင်းလုပ်ညွှန်ကြားချက်များ
ZigZag Based on Close Prices is a Metatrader 4 (MT4) အညွှန်းကိန်းများနှင့် Forex ညွှန်ပြချက်၏အနှစ်သာရမှာစုဆောင်းသမိုင်းဒေတာအဖြစ်အသွင်ပြောင်းဖို့ဖြစ်တယ်. ZigZag Based on Close Prices provides for an opportunity to detect various peculiarities and patterns in price dynamics which are invisible to the naked eye.ဒီအချက်အလက်တွေအပေါ်အခြေခံပြီး, ကုန်သည်များအညီထပ်မံစျေးနှုန်းလှုပ်ရှားမှုယူဆနှင့်၎င်းတို့၏မဟာဗျူဟာကို adjust ပြုလုပ်နိုင်ပါသည်.
How to install ZigZag Based on Close Prices.mq4?
- Download ZigZag Based on Close Prices.mq4
- Copy ZigZag Based on Close Prices.mq4 to your Metatrader Directory / ကျွမ်းကျင်သူများက / အညွှန်းကိန်းများ /
- သင့်ရဲ့ Metatrader Client ကိုဖွင့်ပါသို့မဟုတ် restart လုပ်
- Chart ကို select လုပ်ပါ, သင့်ရဲ့အညွှန်းကိန်းကိုစမ်းသပ်လိုတဲ့အချိန်သတ်မှတ်ချိန်
- ရှာရန် “custom အညွှန်းကိန်းများ” သင့်ရဲ့ Navigator တွင်အများအားဖြင့်သင့်ရဲ့ Metatrader လိုင်း၌ကျန်ကြွင်း
- Right click on ZigZag Based on Close Prices.mq4
- တစ်ဦးဇယားမှ attach
- setting ကိုသို့မဟုတ်စာနယ်ဇင်း ok Modify
- Indicator ZigZag Based on Close Prices.mq4 is available on your Chart
How to remove ZigZag Based on Close Prices.mq4 from your Metatrader 4 ဇယား?
- ထို Indicator သည်သင့် Metatrader Client ကိုပြေးသည်အဘယ်မှာရှိ Chart ကို select လုပ်ပါ
- ထိုဇယားသို့ right click
- “အညွှန်းကိန်းများစာရင်း”
- ထို Indicator သည် select လုပ်ပြီး delete
MT4 အညွှန်းကိန်းများအောက်တွင် Download လုပ်: