Forum

mql5 invalid stops - error

Hi All, as a newbie with mt5, I tried to write an ea an get error saying invalid stops , here is the code of my ea for opening position: void TryCreatePosition( ENUM_ORDER_TYPE type) { double pOpen = (type == ORDER_TYPE_BUY ? _Ask : _Bid); double sl = 0 , tp = 0 ; CalcSLTP(type, pOpen, sl

Come back to hedging mode

Hi, I want to come back to hedging mode, what should I do