Moving average with step

Custom MT4 expert advisors published here.

Moderator: admin

Moving average with step

Postby Alexander.Gettinger » Thu Apr 19, 2012 2:21 pm

Original indicator: viewtopic.php?f=17&t=14876&p=28173
This indicator is very similar to MVA, but it does not use all the values ​​for the calculation.

Formula:
MVA_S[i]=(Price[i]+Price[i-Step]+Price[i-2*Step]+...+Price[i-(Period-1)*Step])/Period.

For example, if Period=4 and Step=2:
MVA_S[i]=(Price[i]+Price[i-2]+Price[i-4]+Price[i-6])/4.


MVA_S_MQL.PNG


Download:
MVA_S.mq4
(926 Bytes) Downloaded 1055 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

GBP/USD buy only MT4 EA

Postby syarif.n@gmail.com » Sun Apr 22, 2012 7:42 pm

Strategy Tester Report
EA_GBP_USD_BUYONLY
InstaForex-Singapore.com (Build 419)

Symbol GBPUSD (Great Britain Pound vs US Dollar)
Period 1 Hour (H1) 2011.12.16 14:00 - 2012.04.19 23:59 (2011.12.01 - 2012.04.20)
Model Open prices only (only for Expert Advisors that explicitly control bar opening)
Parameters BuyLots12=0.05; BuyStoploss12=0; BuyTakeprofit12=10; MaxBuyLots12=10; LotsBuyChOnLoss12=0; LotsBuyChOnProfit12=0; LotsBuyMpOnLoss12=1; LotsBuyMpOnProfit12=1; LotsResetOnProfit12=false; LotsResetOnLoss12=false;
Bars in test 2236 Ticks modelled 4370 Modelling quality n/a
Mismatched charts errors 0
Initial deposit 100.00
Total net profit 513.23 Gross profit 515.08 Gross loss -1.85
Profit factor 278.42 Expected payoff 0.50
Absolute drawdown 96.21 Maximal drawdown 192.55 (47.09%) Relative drawdown 97.68% (160.00)
Total trades 1033 Short positions (won %) 0 (0.00%) Long positions (won %) 1033 (99.61%)
Profit trades (% of total) 1029 (99.61%) Loss trades (% of total) 4 (0.39%)
Largest profit trade 0.52 loss trade -0.55
Average profit trade 0.50 loss trade -0.46
Maximum consecutive wins (profit in money) 1029 (515.08) consecutive losses (loss in money) 4 (-1.85)
Maximal consecutive profit (count of wins) 515.08 (1029) consecutive loss (count of losses) -1.85 (4)
Average consecutive wins 1029 consecutive losses 4
Attachments
EA_GBP_USD_BUYONLY.ex4
(7.46 KiB) Downloaded 901 times
syarif.n@gmail.com
 
Posts: 2
Joined: Thu Apr 19, 2012 11:36 am

Re: Moving average with step

Postby Apprentice » Fri Jan 20, 2017 4:58 am

Indicator was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 15 guests