Iulian Astalus:
Put a decimal point after the 8.Hello there,
I have the following formula:
When I print the value of lot is always 0.
I don't understand why...
Thanks,
double lot = (8. /tp)/(SymbolInfoDouble(Symbol(), SYMBOL_TRADE_TICK_VALUE));
By the way, you probably want to take into account the tick size when doing LOT calculations.

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
Hello there,
I have the following formula:
When I print the value of lot is always 0.
I don't understand why...
Thanks,