Forum

PositionType()

Hi, I'm very new to mql5, so I apologize for struggling on this simple topic already. I found an EA that is supposed to open a buy-order when: int signal = 0 && PositionType() != POSITION_TYPE_BUY or a sell order for: int signal = 1 && PositionType() != POSITION_TYPE_SELL For some reason the