NormalizeDouble issue

To add comments, please log in or register
David Diez
1434
David Diez  

Have this code:

Print("Profit target: ",NormalizeDouble(AccountBalance()*((CloseProfit/100)*OrdersTotal()),2));

But in the experts tab it prints: "2019.04.24 11:35:41.370 CloseAgent XAUUSD,H1: Profit target: 641.8099999999999".

Please help.

Genesis Hafalla
12847
Genesis Hafalla  
David Diez:

Have this code:

But in the experts tab it prints: "2019.04.24 11:35:41.370 CloseAgent XAUUSD,H1: Profit target: 641.8099999999999".

Please help.

DoubleToStrMorePrecision(AccountBalance()*((CloseProfit/100)*OrdersTotal()),2))
David Diez
1434
David Diez  
Genesis Hafalla:
DoubleToStrMorePrecision(AccountBalance()*((CloseProfit/100)*OrdersTotal()),2))
Worked, thanks.
To add comments, please log in or register