diff --git a/OrdersEA_Smart_Grid.mq5 b/OrdersEA_Smart_Grid.mq5 index b220a4c..c39e8e5 100644 --- a/OrdersEA_Smart_Grid.mq5 +++ b/OrdersEA_Smart_Grid.mq5 @@ -102,7 +102,7 @@ bool BelowLow; int tradeLogId; double closeOnProfit; bool bGetOutOK, bOpenNewTradesOK; -int initEquity; +double initEquity; int lotDigits; bool bWithdrawMailSent= false; bool bGetOutHandled; @@ -303,7 +303,7 @@ int OnInit() trade.SetDeviationInPoints(10); trade.SetTypeFilling(ORDER_FILLING_IOC); - initEquity = BaseEquity; + initEquity = (double)BaseEquity; lotDigits = 2; double tickSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE);