1e-05 Money Management

 

Hi, Please help me with this I dont know how to fix it.

   double OnePip = 0;

   if (TradeSymbol == "JPY") {OnePip = 0.001;} else OnePip = 0.00001;

This gives me at non JPY pairs OnePip = 1e-05

How can I convert 1e-05 to number 0.00001 for calculations ?

   if (OnePip == 0.00001) {Calc_Lot = (Calc_LotSize * 0.00001);}
 
ThaDho:

Hi, Please help me with this I dont know how to fix it.

This gives me at non JPY pairs OnePip = 1e-05

How can I convert 1e-05 to number 0.00001 for calculations ?

Conversion not required, 1e-05 is just scientific repersentation of 0.00001 when you use Print()