you know how to program so
if you have this problem with lotstep how do you handle it in that case ??
flaab:
Your prices must be a multiple of the instrument's ticksize. See, for example, WHRoeder's NormalizePrice() function.
Dear friends,
I am having quite a hard time normalizing double prices for certain instruments, for examples, cfd's, because the broker only allows certain values.
For example, some indices allow only SL, TP and TS values which floating value are multiples of 5. Ie: 5000.05, 5000.10, 5000.15, 5000.20, etc.
This is quite a problem because my some orders are rejected, and this limitation changes from instrument to instrument.
How do you get over this problem?
Thanks!
Thirteen:
Your prices must be a multiple of the instrument's ticksize. See, for example, WHRoeder's NormalizePrice() function.
Thanks!
Your prices must be a multiple of the instrument's ticksize. See, for example, WHRoeder's NormalizePrice() function.
deVries:
Thanks too!
you know how to program so
if you have this problem with lotstep how do you handle it in that case ??
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
Dear friends,
I am having quite a hard time normalizing double prices for certain instruments, for examples, cfd's, because the broker only allows certain values.
For example, some indices allow only SL, TP and TS values which floating value are multiples of 5. Ie: 5000.05, 5000.10, 5000.15, 5000.20, etc.
This is quite a problem because some orders are rejected, and this limitation changes from instrument to instrument.
How do you get over this problem?
Thanks!