Download MetaTrader 5

Best EA in the world

To add comments, please log in or register
robbo
235
robbo  

sorry, just had to get some attention for my problem, could anyone help with in programming a stoploss, the draw down on my EA is exhausting, although it has produced some good results

Bars in test 740874
Ticks modelled 1418416
Modelling quality n/a
Mismatched charts errors 0
Initial deposit 3000.00
Total net profit 5862.34
Gross profit 5899.80
Gross loss -37.46
Profit factor 157.50
Expected payoff 14.40
Absolute drawdown 2124.36
Maximal drawdown 4262.04 (82.96%)
Relative drawdown 82.96% (4262.04)
Total trades 407
Short positions (won %) 111 (99.10%)
Long positions (won %) 296 (100.00%)
Profit trades (% of total) 406 (99.75%)
Loss trades (% of total) 1 (0.25%)
Largest
profit trade 95.80
loss trade -37.46
Average
profit trade 14.53
loss trade -37.46
Maximum
consecutive wins (profit in money) 221 (2128.25)
consecutive losses (loss in money) 1 (-37.46)
Maximal
consecutive profit (count of wins) 3771.55 (185)
consecutive loss (count of losses) -37.46 (1)
Average
consecutive wins 203
consecutive losses 1




tester

robbo
235
robbo  
I have added the results for my test
23510
507
23510  

at the top of the code among the other settings that say external before them ( e.g external double LotSize = 0.1;)

you need to add : external double StopLoss = 30; --> this can now be adjusted externally


now go to the piece of code that says OrderSend or ticket = OrderSend and place Ask-StopLoss*Point in the 6th slot like this :


ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point,comment,magic,0,Green);


this is a basic idea ...there are more things you can do like Normalizing the values before putting them into the OrderSend but

if you want it really modded you have to get a good coder or post the EA for the coders to look at or maybe send it to them via email.

robbo
235
robbo  

Hi there and thank you for your input, i copy and pasted your surgestion and bingo !!, thankyou very much it works a treat, i will stick with the simple version as it suits my nature ha ha!

robbo

23510
507
23510  
robbo:

Hi there and thank you for your input, i copy and pasted your surgestion and bingo !!, thankyou very much it works a treat, i will stick with the simple version as it suits my nature ha ha!

robbo

pleasure!

Simon Gniadkowski
Moderator
18042
Simon Gniadkowski  
Thread start date - 2009.05.25
To add comments, please log in or register