you say ......."Your Slippage isn't adjusted for 4/5 Digit Broker"
I say ......my understanding is that it is in points or pips or whatever - already
i.e so 3 is good to use and 3*mypoint is incorrect.
Can anyone confirm this?
RaptorUK:
OK, a little help . . .
Find this part in your code, and change it to this . . .
This doesn't check the Magic Number . . you will need to add that in if you want to place manual orders on the same pairs or if you want to run on different timeframes on the same pair at the same time . . . do you ?
Bars is not reliable, it's a bad idea to use Bars . . you should use Time instead.
Your Slippage isn't adjusted for 4/5 Digit Brokers . . nor is your TP or SL.
If you make your SL small you will get error 130 because you aren't checking if it's too close or allowing for Spread.
Is your Broker an ECN Broker ? you can't set SL & or TP when you place an Market order with an ECN Broker, you have to code a OredrModify() to add the SL & or TP after the order is placed . . .
Shall I go on ? this is BASIC stuff . . . these points come up on this Forum day in, day out . . .
And you don't understand much of this because you haven't actually coded anything . . . you have used someone else's code . . "Expert Advisor Builder". There is only one short cut: Jobs
The slippage allowed on the price is always the slippage (int) that you specify multiplied by the internal variable Point. The value of Point changes between 4 and 5 digit brokers.
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.
you say ......."Your Slippage isn't adjusted for 4/5 Digit Broker"
I say ......my understanding is that it is in points or pips or whatever - already
i.e so 3 is good to use and 3*mypoint is incorrect.
Can anyone confirm this?
OK, a little help . . .
Find this part in your code, and change it to this . . .
This doesn't check the Magic Number . . you will need to add that in if you want to place manual orders on the same pairs or if you want to run on different timeframes on the same pair at the same time . . . do you ?
Bars is not reliable, it's a bad idea to use Bars . . you should use Time instead.
Your Slippage isn't adjusted for 4/5 Digit Brokers . . nor is your TP or SL.
If you make your SL small you will get error 130 because you aren't checking if it's too close or allowing for Spread.
Is your Broker an ECN Broker ? you can't set SL & or TP when you place an Market order with an ECN Broker, you have to code a OredrModify() to add the SL & or TP after the order is placed . . .
Shall I go on ? this is BASIC stuff . . . these points come up on this Forum day in, day out . . .
And you don't understand much of this because you haven't actually coded anything . . . you have used someone else's code . . "Expert Advisor Builder". There is only one short cut: Jobs
you say ......."Your Slippage isn't adjusted for 4/5 Digit Broker"
I say ......my understanding is that it is in points or pips or whatever - already
i.e so 3 is good to use and 3*mypoint is incorrect.
Can anyone confirm this?
Read this https://www.mql5.com/en/forum/138912
you say ......."Your Slippage isn't adjusted for 4/5 Digit Broker"
I say ......my understanding is that it is in points or pips or whatever - already
Slippage = 3 means 0.3 pips on a 5 digit Broker and 3 pips on a 4 Digit Broker.
Once again clear as mud.
err 0.98330
slippage = 3 = where is the fill ?
slippage = 3*SymPoints (5 digit broker) = where is the fill?
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if( SymPoints == 0.001 ) { SymPoints = 0.01; SymDigits = 3; }
else if( SymPoints == 0.00001 ) { SymPoints = 0.0001; SymDigits = 5;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Once again clear as mud.
err 0.98330
slippage = 3 = where is the fill ?
slippage = 3*SymPoints (5 digit broker) = where is the fill?
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if( SymPoints == 0.001 ) { SymPoints = 0.01; SymDigits = 3; }
else if( SymPoints == 0.00001 ) { SymPoints = 0.0001; SymDigits = 5;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
i dont know