MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

Elder Smoothed ROCElder Smoothed ROC Try product
Elder Smoothed ROC
Author: elder.com
JFatlAcceleration Indicator
JFatlAcceleration
Author: GODZILLA
Screenshot
EURUSDm, M1
Real
Subscribe to signal
Real dream
192.88%, 669.57 USD
Using Discriminant Analysis to Develop Trading Systems Using Discriminant Analysis to Develop Trading Systems
To post a new code, please log in or register

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2012.06.12 10:34
EA_MARSI

EA_MARSI [ru]

Im_hungry

Downloads:
11360
Views:
7508
Rating:
votes: 36
Files:
\MQL5\Indicators\
ema_rsi_va.mq5 (3.44 KB)view
sets.zip (1.2 KB)

Description:

The Expert Advisor is based on EMA_RSI_VA indicator.

Buy signal: upward crossover of the fast line, sell signal: downward crossover of the fast line.

The EA has lot increasing option, which depends on the deposit/max.drawdown ratio.


Testing result (EURUSD, H1):

Without lot increasing option, every tick, from 2009 (1_eurusd_h1.set)

Without lot increasing option


With lot increasing option, every tick, from 2009. (2_eurusd_h1.set):

Lot increasing option is enabled


Testing with 1.000$ initial deposit and lot=0.1 (3_eurusd_h1):

Реалистичный тест с начальным 1.000$ лотом 0.1 (параметры 3_eurusd_h1)


When using of lot increasing option (use_Multpl = true) it's recommended to test it without lot increasing. The resulted maximum drawdown can be set to Max_drawdown input parameter

Result: $600 000 with $10 000 initial deposit with lot=1.0.


Translated from Russian by MetaQuotes Software Corp.
Original code: http://www.mql5.com/ru/code/913

Last comments | Go to discussion (4)
think82
think82 | 6 Jul 2012 at 12:59

It`s not working for me - when i try to insert it in the chart system does not apply it?
What are those 3 .set files? How can I watch them / where should I coppy them?

 

nataliesfriend
nataliesfriend | 7 Jul 2012 at 21:42

Hello,

Please could someone advise, I have been running this EA in test and it has had great results in MT5 Strategy Tester. When I ran it on a LIVE account the 1st trade opened but no Stop Loss or Take Profit prices where entered when position opened. I think the EA tried to modify this but could not. Has anybody else experienced this, as I can  not continue running the EA without Stop Loss or Take Profit targets in place as it would be too risky and I would have to manually watch all trade executed by the EA. I look forward to anybodys relpys. 

reigadas
reigadas | 9 Jul 2012 at 16:33

Hi,

 The EA doesn't run. I have tried to load the indicator and the EA but they didn't work.

Why could it be?

Thanks in advance... 

Patterson
Patterson | 7 Aug 2012 at 09:22
@reigadas:


Hello,

 

Well,

First of all, please forgive my english ! I'm not english and not fluent anymore ...

Then, my advice is the next one :

1/ On your desktop, create a folder ("Marsi-ea" i.e).

2/ Download all the files on it, that means the indicator, the ea, the set.

3/ Unzip the set archive

4/ Open your MT5 platform

5/ Press F4 in order to open the MetaQuotes Langage Editor.

6/ Drag and Drop the indicator on the main frame (basically the gray area in the middle)

7/ Press "Compile" or F7.

8/ Repeat 6 & 7 for the EA 

 

At this point, the EA and the indicator should be compiled and loaded on MT5 but sometimes the compile process seems to freeze. So there is an other way ...

1/ Open your "Marsi-ea" folder, you should see two kind of files now : 2 MQL5 Souce Files and 2 MQL5 Program (that's the compiled source file)

2/ Open your MT5 platform

3/ Press Ctrl+N to open the navigation view

4/ Just Drag and Drop the 2 MQL5 Compiled program on the navigation view

5/ That's it, you can use the EA by draging in to your market chart. 

 

So far so good ?

What about the sets ?

 

Each EA have their own settings like lots, SL, TP, indicators min and max values, ...

I'm Hungry provides us the sets he used to "drew" the 3 graphs above. So he provides us a way to set and manage the EA.

U can use this set (or create your own) in 2 ways. Import the sets in bactester or in live chart. 

 

=> BACKTEST

1/ Press Ctrl+R, ths strategy tester pop-up

2/ Click on the "inputs" tab

3/ Right-Click on the frame anyway you want, a context menu should appear.

4/ Click load, a "Open" window comes

5/ Earlier on Step 3 we have unzip the archive, pick one the set on it and click "open" 

6/ The set is load ! 

 

As u can see on the previous context menu you are allowed to load but save as well your own set. So if you find the perfect set, save it, rename it as you wish and use it !

 

=> LIVE CHART

1/  Press Ctrl+N to open the navigation view

2/ Locate EA_MARSI_1-01

3/ Right click on it and "Attach to Chart" 

4/ A pop-up window appear with two tabs.

5/ Select the "Inputs" tab

6/ Click "Load"

7/ and repeat step 5 & 6 of the backtest routine. 

 

Hope you enjoyed !