Rewrite the same code, but so that ALL variables are declared. I'll see what types of variables you declare. And then the right solution is close at hand.
Rewrite the same code, but so that ALL variables are declared. I'll see what types of variables you declare. And then you'll be on your way to the right solution.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
How is that possible? Wasn't there a problem with the maths?
It looks like 1.05 *0.81/100 =0.008505
It gives you 35% stop and 81% tekprofit instead of 0.81% and 0.35%
The method from the standardSellLimit&BuyLimit library
Print shows:
2017.12.24 07:55:27.559 2017.01.03 16:54:17 1.04236745s_ep
2017.12.24 07:55:27.559 2017.01.03 16:54:17 1.25084094s_sl
2017.12.24 07:55:27.559 2017.01.03 16:54:17 0.521183725s_tp
How is this possible? Wasn't there a problem with the maths?
It looks like 1.05 *0.81/100 =0.008505
It gives you 35% stop and 81% tekprofit instead of 0.81% and 0.35%
The method from the standardSellLimit&BuyLimit library
Print shows:
2017.12.24 07:55:27.559 2017.01.03 16:54:17 1.04236745s_ep
2017.12.24 07:55:27.559 2017.01.03 16:54:17 1.25084094s_sl
2017.12.24 07:55:27.559 2017.01.03 16:54:17 0.521183725s_tp
Rewrite the same code, but so that ALL variables are declared. I'll see what types of variables you declare. And then the right solution is close at hand.
Rewrite the same code, but so that ALL variables are declared. I'll see what types of variables you declare. And then you'll be on your way to the right solution.
Errors. Not compiling.
Errors. It won't compile.
Sorry, try it now.
Sorry, try it now.
Probably overnight - so I don't understand at all WHAT you're trying to do.
A word of advice:
Probably overnight - so I don't understand ANYTHING you're trying to do.
A word of advice:
Thank you incredibly helpful.
It does not make muchdifference, but where the function does not work, it may open the whole deposit.
Strange but the function, works even if there are more orders than zero.
It doesn't make muchdifference, but where the function doesn't work it can open up the whole deposit.
Open the MT5 help for the function and make sure you correctly understand what an order is in MT5
Can you please tell me how to determine _Digits for another character?