void maxloss(){ int total = PositionsTotal (); int orderType = ( int ) PositionGetInteger ( POSITION_TYPE ) ; double equity = AccountInfoDouble ( ACCOUNT_EQUITY ); double Lossdifference = balance - equity; NormalizeDouble (Lossdifference, _Digits ); if (equity > equitymax){equitymax = equity;}
Hi guys, I'm coding a range breakout strategy, and as the title says, I'm having difficulty with the that particular problem
void Partialclosing(){ double ask = SymbolInfoDouble ( _Symbol , SYMBOL_ASK ); double bid = SymbolInfoDouble ( _Symbol , SYMBOL_BID ); ask = NormalizeDouble (ask, _Digits ); bid = NormalizeDouble (bid, _Digits ); for ( int i = PositionsTotal ()- 1 ; i >= 0 ; i--){ ulong posticket =