Actually not enough money happens because your leverage is not that big. When using martigale, the number can only be multiplied a few times and then it will hit the leverage limits.
deysmacro: When using martigale, the number can only be multiplied a few times and then it will hit the leverage limits. | This is why a Martingale is guaranteed to destroy your account. |
HMMMMMMMM interesting.
For some reason I thought there was still plenty of leverage there. I started with 10k deposit and the trading ended with what seems to be lot size of 5.12 and still showing 9500 in the account balance
However I do see the consecutive losses were 22 so that makes sense that it would overleverage
Thanks.
For some reason I thought there was still plenty of leverage there. I started with 10k deposit and the trading ended with what seems to be lot size of 5.12 and still showing 9500 in the account balance
However I do see the consecutive losses were 22 so that makes sense that it would overleverage
Thanks.
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
However, there is enough money.
I tried increasing the expert properties deposit amount which had no effect
I thought perhaps the loop was taking too long to find a LotSize
So I removed the breaks to allow the loop to count back to 0 from OrdersHistoryTotal()-1.
This corrected the errors to confirm that taking too long was not the issue, but I want to break to get the correct return value.
Anyhow here are some of the errors I'll just post the early stages to try an shorten the SRC
I see that it seems to increase the lot size almost instantly and does not print out the ongoing increase with ticket number as it should too.
I thought I should additional printouts of Ticket # 17, Ticket #16 too.
If I changed the lot size in expert properties to 1.25 the error goes away but also does not work correctly. I will keep reviewing it but I am having trouble hunting this down.
2014.11.11 10:13:34.483 2012.06.07 02:15 Tester: not enough money for sell 5.12 EURUSD at 1.25561 sl: 1.25661 tp: 1.25361 [2012.06.07 02:15] 2014.11.11 10:13:34.483 2012.06.07 02:15 functiontest EURUSD,M15: Order LotSize was 2.56 Increasing to 5.12 Ticket#18 2014.11.11 10:13:34.483 2012.06.07 01:45 functiontest EURUSD,M15: Alert: OrderSend Failed: 0 2014.11.11 10:13:33.483 2012.02.28 20:30 Tester: not enough money for sell 5.12 EURUSD at 1.34686 sl: 1.34786 tp: 1.34486 [2012.02.28 20:30] 2014.11.11 10:13:33.483 2012.02.28 20:30 functiontest EURUSD,M15: Order LotSize was 2.56 Increasing to 5.12 Ticket#18 2014.11.11 10:13:33.483 2012.02.28 19:00 functiontest EURUSD,M15: Alert: OrderSend Failed: 0 2014.11.11 10:13:33.483 2012.02.28 19:00 functiontest EURUSD,M15: Alert: OrderSend Failed: 134 2014.11.11 10:13:33.483 2012.02.28 19:00 functiontest EURUSD,M15: OrderSend error 134 2014.11.11 10:13:33.483 2012.02.28 19:00 Tester: PrevBalance: 9517.88, PrevPL: 0.00, PrevEquity 9517.88, PrevMargin: 0.00, NewMargin: 13803, FreeMargin: -4284.82 2014.11.11 10:13:33.483 2012.02.28 19:00 Tester: not enough money for buy 5.12 EURUSD at 1.34798 sl: 1.34698 tp: 1.34998 [2012.02.28 19:00] 2014.11.11 10:13:33.483 2012.02.28 19:00 functiontest EURUSD,M15: Order LotSize was 2.56 Increasing to 5.12 Ticket#18 2014.11.11 10:13:24.783 TestGenerator: current spread 13 used
Here is the code including the martigale() function