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.
OnTradeTransaction
Thank you. Just hell) I pity the algotraders on mt5.
It's worth it, in mt5 orders are processed many times faster. And testing is more plausible, there are almost no tester grails.
Read three or four posts.
Yeah, I did. Got it now.
Thanks, I thought it was a mistake, but it's the norm.1,12500*Point=0.0000112500
Fixed everything, the result did not change.
Maybe it is in the logic?
Well somehow it opens the TSL but as a stop
I fixed it, but the result didn't change.
Could it be a matter of logic?
Well, somehow it opens the TSL, but as a stop.
Your function looks like this:
NormalizeDouble((1,12700 - 1,12500/100000),5)
You need to understand what"Point" does.
Make a print.
Your function looks like this:
NormalizeDouble((1,12700 - 1,12500/100000),5)
You need to understand what"Point" does.
Make a print
before
after
But now it doesn't want to turn on at all.
No errors in compiler or terminal, just won't turn on.
What's the magic problem?
What is it?
Sorry for the intrusion.
I'm sorry for being intrusive.
It's not being intrusive. Never be afraid to say you don't know something - always ask.
I'll give you an example.What are "iTrailStart" and "iTrailDist"?
What are "iTrailStart" and "iTrailDist"?
Number of points to switch on and distance from market to trawl
iTrailStart = 10; //Number of points to enable trawl;
iTrailDist = 10; //Distance from the stop to the market;
If the order is in the plus by 11 pips, then 11-10=1 pips without a loss.
Number of points to include and distance from market to tsl
More or less