Geometric Mean moving average

Custom MT4 expert advisors published here.

Moderator: admin

Geometric Mean moving average

Postby Alexander.Gettinger » Thu Jul 05, 2012 5:05 pm

Formula:
GeoMeanMA[i]=(Price[i]*Price[i-1]*…*Price[i-N+1])^(1/N).

GeoMeanMA_MQL.PNG


Download:
GeoMin_MA.mq4
(1.59 KiB) Downloaded 1526 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Geometric Mean moving average

Postby Gilles » Mon Mar 13, 2023 1:08 pm

Hi Alexander, Apprentice,

Please a LUA version.
Thank you :) !
Gilles
FXCodeBase: Initiate
 
Posts: 158
Joined: Tue Jul 31, 2018 8:28 am
Location: France

Re: Geometric Mean moving average

Postby Gilles » Mon Mar 13, 2023 2:05 pm

Hi Apprentice,

I worked on my own and I'm sharing my version of the geometric mean for FX Trading Station.
[attachment=0]GMA.lua[/attachment]
Attachments
GMA.lua
(2.15 KiB) Downloaded 77 times
Gilles
FXCodeBase: Initiate
 
Posts: 158
Joined: Tue Jul 31, 2018 8:28 am
Location: France

Re: Geometric Mean moving average

Postby Apprentice » Tue Mar 14, 2023 3:07 pm

Any help is welcome,
as I have quite a stressful period in my life.

Moving into a New apartment, having a new baby, and working on a new degree...
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Geometric Mean moving average

Postby Gilles » Thu Mar 16, 2023 2:48 am

Hi Apprentice,
I wish you and your family all the best :)!
This is such a happy event :)!!!
I understand why you're short on time :)!
Gilles
FXCodeBase: Initiate
 
Posts: 158
Joined: Tue Jul 31, 2018 8:28 am
Location: France


Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 20 guests