sell order and POSITION_TYPE_BUY
codeidea:
I just sell GBPUSD, try test the code for modify stoploss,
what is the wrong? is m_position error?
if have fix it,
if(m_position.Type()==POSITION_TYPE_BUY)
change to:
if(m_position.PositionType()==POSITION_TYPE_BUY)
There are more code use Type() , it is for the class type, oh,wish this can help you
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Position Properties
- www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Position Properties - Documentation on MQL5
I just sell GBPUSD, try test the code for modify stoploss,
what is the wrong? is m_position error?