joshatt:
Read this thread and learn from it: https://www.mql5.com/en/forum/147174
Hi,
Not sure how to deal with math about ordersend lots, lotstep, minlot.... So I tried some, and suddenly an "zero divide" occured. By adding some debug "print", I'm sure it's because the math I just mentioned.
Running this code, I could see "here 4", then "zero divide".
Any idea?
Thanks a lot, RaptorUK and SDC.
The bug is "LotStep", which is defined before these lines, in a "if" block, so sometimes this block doesn't run.
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
Hi,
Not sure how to deal with math about ordersend lots, lotstep, minlot.... So I tried some, and suddenly an "zero divide" occured. By adding some debug "print", I'm sure it's because the math I just mentioned.
Running this code, I could see ratio=13.532, then see "here 4", then "zero divide".
Any idea?