
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
You didn't make any mistakes. Price doesn't always move 1_Pipette_at_a_Time. Not in real-live, neither in the strategy-tester. I would have been surprised if you received exactly 0.10 for both after allot of trades ... real or tested.
Interesting, then how do you explain this:
I did a quick backtest, in case 1 i used my custom TP & SL i set it to 100 pipette (10 pips) and the normal TP & SL was set to 999 just to not interfere with the experiment, and i got this:
And in test 2 i set my custom SL & TP system to 9999 and used the normal built in TP & SL system an set it to 100 pipette (10 pips) for both cases
There is 10 pipettes missing in average in both cases,how come, if you say they are not exact, i understand that, but given that no slippage is simulated, the distorsion is likely to be caused by gaps or missing ticks or whatever, but if they are not precise, with the same settings they should have almost identical results both my custom SL/TP and the pre-build SL/TP in MT4, yet they have 10 pipette difference,Why i that?
As you can see the average profit was 0.17, and average loss 0.13, but how the heck can that happen if i have 10 pipette SL & TP, so the average win and loss should be 0.10 both +- 0.01 because of spread and since slippage is not simulated....,so i guess i made an error in the code,so please help me fix it :)
Proximus: Interesting, then how do you explain this: I did a quick backtest, in case 1 i used my custom TP & SL i set it to 100 pipette (10 pips) and the normal TP & SL was set to 999 just to not interfere with the experiment, and i got this:
There is 10 pipettes missing in average in both cases,how come, if you say they are not exact, i understand that, but given that no slippage is simulated, the distorsion is likely to be caused by gaps or missing ticks or whatever, but if they are not precise, with the same settings they should have almost identical results both my custom SL/TP and the pre-build SL/TP in MT4, yet they have 10 pipette difference,Why i that?
I do-not get the same results as you. My guess is that the codes you posted considers spreads && the one from within your custom_TP_SL does-not consider spreads.
Ticks modelled 58236
Modelling quality n/a
Mismatched charts errors 0
Initial deposit 10000.00
Total net profit -119.90
Gross profit 280.02
Gross loss -399.93
Profit factor 0.70
Expected payoff -0.21
Absolute drawdown 127.06
Maximal drawdown 137.36 (1.37%)
Relative drawdown 1.37% (137.36)
Total trades 565
Short positions (won %) 277 (42.96%)
Long positions (won %) 288 (44.44%)
Profit trades (% of total) 247 (43.72%)
Loss trades (% of total) 318 (56.28%)
Largest
profit trade 3.20
loss trade -3.18
Average
profit trade 1.13
loss trade -1.26
Maximum
consecutive wins (profit in money) 6 (6.54)
consecutive losses (loss in money) 12 (-15.90)
Maximal
consecutive profit (count of wins) 6.54 (6)
consecutive loss (count of losses) -15.90 (12)
Average
consecutive wins 2
consecutive losses 2
The above test was conducted with Period_M1 OpenPrice_TestMode. I went back and tested with Every-Tick and got the following.
profit trade 0.94
loss trade -1.09
The profit below 1 had me concerned ... therefore I added the following:
And Bingo:2013.12.19 06:32:01 2013.01.29 23:59 Helping EURUSDi,M1: Alert: totalCommissions=-56.63000000
The above test was conducted with Period_M1 OpenPrice_TestMode. I went back and tested with Every-Tick and got the following.
profit trade 0.94
loss trade -1.09
The profit below 1 had me concerned ... therefore I added the following:
And Bingo:2013.12.19 06:32:01 2013.01.29 23:59 Helping EURUSDi,M1: Alert: totalCommissions=-56.63000000
I see now, i dont have commissions but i didnt included a time filter in the ordersend code so it might be possible that the loss was due to night trading so swaps were added also.Thanks for explaining through!