
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
help on a EA
i am new to your site
and need help
i am also new to EA programming and need a lot of help
i want to develop a EA on one of my manual trading systems
it work well on most of T/F and currencies
can some one help me to develop it further please
https://www.mql5.com/en/forum
Hi.
I need help because i'm not a programmer.
I ask if someone can give me a code to add in one martingale expert to " close all when the loss is -100 €"And .... where i have to add it.
Thank you very much for your help.
StefanoIt's a bit more complicated than that. There are some examples of code to close trades on this thread:
https://www.mql5.com/en/forum/173000
Just look inside the indies.
an equity ea
It's a bit more complicated than that. There are some examples of code to close trades on this thread:
https://www.mql5.com/en/forum/173000
Just look inside the indies.hello there, i dont know if it helps, but her's an equity ea which is programed to close all trades when a certain profit or loss is reached. you can set it to use pips or actual $, and it delets all pending orders as well. also the stopmanagingacount function should be always=false, cause when=true it'll close all open orders immedietly.
Simple MM applied. Risking a percent of equity each time.
I believe this is a 3% equity risk MM.
Bars in test 126078
Ticks modelled 22683918
Modelling quality 89.93%
Mismatched charts errors 48
Initial deposit 5000.00
Total net profit 26902.29
Gross profit 78117.67
Gross loss -51215.38
Profit factor 1.53
Expected payoff 84.07
Absolute drawdown 907.40
Maximal drawdown 7576.31 (20.69%)
Relative drawdown 21.21% (3868.34)
Total trades 320
Short positions (won %) 120 (44.17%)
Long positions (won %) 200 (52.00%)
Profit trades (% of total) 157 (49.06%)
Loss trades (% of total) 163 (50.94%)
Largest
profit trade 1808.00
loss trade -1059.45
Average
profit trade 497.56
loss trade -314.20
Maximum
consecutive wins (profit in money) 8 (6065.50)
consecutive losses (loss in money) 8 (-1948.33)
Maximal
consecutive profit (count of wins) 6744.24 (5)
consecutive loss (count of losses) -5853.17 (6)
Average
consecutive wins 2
consecutive losses 2
ORBO-EA neds some tlc but might be interesting to someone
If there is interest I will release this ea to the elites. The curve doesn't look very good but this is with absolutely no mm and also someone may find it interesting that this backtest is over a 10 year period to date. Actually optimized it a month ago and so a synthetic forward test so far so good. I've only optimized for one pair but might work on others. It could probably use some hi tech filtering as right now the main filter it's just a 2 ma daily filter.
It is a lot of work to optimize properly without curve fitting as there are so many variables and also there may be some code kinks that could be improved or ironned out.
Bars in test 126078
Ticks modelled 22683918
Modelling quality 89.93%
Mismatched charts errors 48
Initial deposit 50000.00
Total net profit 6602.24
Gross profit 19835.49
Gross loss -13233.25
Profit factor 1.50
Expected payoff 20.63
Absolute drawdown 638.30
Maximal drawdown 762.16 (1.49%)
Relative drawdown 1.49% (762.16)
Total trades 320
Short positions (won %) 120 (44.17%)
Long positions (won %) 200 (52.00%)
Profit trades (% of total) 157 (49.06%)
Loss trades (% of total) 163 (50.94%)
Largest
profit trade 264.38
loss trade -99.00
Average
profit trade 126.34
loss trade -81.19
Maximum
consecutive wins (profit in money) 8 (951.83)
consecutive losses (loss in money) 8 (-650.76)
Maximal
consecutive profit (count of wins) 963.45 (7)
consecutive loss (count of losses) -650.76 (8)
Average
consecutive wins 2
consecutive losses 2
Looks interesting
Any more details?
How can we help?
I need to ask
How much time to test Cable M30 on every tick?
Time frame of the test is irrelevant it opperates the same way on any timeframe. Each run takes aprox 1 min on every tick using 10 years backtest (intel 2.4 ghz duo, 2gb ram).
Time frame of the test is irrelevant it opperates the same way on any timeframe. Each run takes aprox 1 min on every tick using 10 years backtest (intel 2.4 ghz duo, 2gb ram).
Sorry, I misspelled the question. M30 = how many on history
Only one minute?