Thanks to the support team for helping every time we have some issues.
I have 2 strategies. One long and one short. I ran them on 2 separate windows but they are trading the same instrument (BIT).
Before enter a position, the strategy does a check if there is any open position or not via this option:
Both of the strategies have the same check before enter a position.
However, I got an error message that the another strategy is trying to open a position with error NOT ENOUGH MARGIN.
Why is this? And why after having this kind of synchronization on both of the strategies, the second one is trying to open a position (having in mind that there is already opened position by the other strategy)
It seems like this check (Position.MarketPossition = MarketPosition.Flat) is not working as expected.
I trade the same instrument on both of the strategies in separate windows on different time frames.
Best wishes

Comment