ZigZag Moving Average

Custom MT4 expert advisors published here.

Moderator: admin

ZigZag Moving Average

Postby Apprentice » Thu Mar 16, 2017 1:00 pm

unnamed.png

LUA Original: viewtopic.php?f=17&t=3485

Description:

MT4 version of the LUA original ZigZag Moving Average.

Standard realization of ZigZag is taken for base of the indicator.

From each node is drawn MA with increasing period.

For example:

"A" is a node of ZigZag.
ZMA[A]=Price_close[A],
ZMA[A+1]=(Price_close[A]+Price_close[A+1])/2,
ZMA[A+2]=(Price_close[A]+Price_close[A+1]+Price_close[A+2])/3 and etc.

Note: The ZigZag.mq4 indicator is called within the code so make sure you have it installed in the indicators folder.

ZMA.mq4
(5.04 KiB) Downloaded 833 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: logicgate and 19 guests