Zero divide error? Really? :(
-
How can a zero divide error be possible if I selected a fixed SL distance in pips?
https://fxdreema.com/shared/QHWL5532e
I know that is a common error for non SL trades, but that is not my case. Could someone please shed some light?
-
Some suggestions?
-
I would help you if I could but I do not think I can, I take it the 0s in your constants are greater than 0 on testing?
-
Yes, all of them are greater when testing. This is really weird.

-
@l-andorrà it's not for stop loss, you should check those blocks I turned off. Unfortunately I didn't investigate further

-
Thanks for your insight, ambrogio. According to the Journal's log, the critical error is in this code line:
return CustomPoint(symbol) / SymbolInfoDouble(symbol, SYMBOL_POINT);
It is not even related to any specific block. It is included at the last 10% of the code body. Could some programmer please say what is the problem here?
-
If any signal comes and only at that time the Lotus starts simultaneously or in 1-2 seconds, that too 10-15 Lotus, then how will it start?
-
@jaydip Could you please open a separate thread for your question?
-
@ambrogio You were right, man. The problem was in those blocks. I substituted them and it worked fine. Thank you.
-
-
BTCUSD If we have to create it then how to create it?
Step is not being created where to start
