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