I'm trying to set a SL, here's the formula used :
Where SL Factor is a double (1.5). But here's what I get in the journal log :
Did i miss something ?
Most double values don't have an exact representation, so your output are ok.
Is it the SL for a buy order ? Please show all the relevant code (all code with "request").
What is the value of ticksize for this symbol ?
Most double values don't have an exact representation, so your output are ok.
Is it the SL for a buy order ? Please show all the relevant code (all code with "request").
What is the value of ticksize for this symbol ?
Yep that's a long position SL with symbol's value of tick : 12.5 & size of the tick : 0.5.
Waiting for your answer I'm trying to convert all of it in string. (it may work??)
EDIT : nope it didn't work :/ à l'aide l'ange !
Yep that's a long position SL with symbol's value of tick : 12.5 & size of the tick : 0.5.
Waiting for your answer I'm trying to convert all of it in string. (it may work??)
EDIT : nope it didn't work :/ à l'aide l'ange !
Convert what in string ? It's not needed.
Your problem comes from your price, which are doubles. Do you understand the meaning of a tick size of 0.5 ? That means all you price (entry, sl, tp) must be a multiple of 0.5. You can't have a sl of 9399.8, it can be 9399.5 or 9400.
Convert what in string ? It's not needed.
Your problem comes from your price, which are doubles. Do you understand the meaning of a tick size of 0.5 ? That means all you price (entry, sl, tp) must be a multiple of 0.5. You can't have a sl of 9399.8, it can be 9399.5 or 9400.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I'm trying to set a SL, here's the formula used :
Where SL Factor is a double (1.5). But here's what I get in the journal log :
Did i miss something ?