Forum

Python script repetitively finishes after 10799156ms (3 hours) without error

Hello, My Python script is running fine and without errors for short time frames but for some reason it finishes execution without error after about 3 hours (always same amount of miliseconds of execution). It seems that there is a time execution limit of some kind for scripts but I have not found

Replicating Netting account with Hedging account-PENDING orders

Hello, I am trying to replicate the behaviour of a netting account using a hedging account ( my broker does not offer one). I want to use the filling of an opposite order to close the initial one. This is automatic with TRADE_ACTION_DEAL but not with TRADE_ACTION_PENDING that I want to use. I have

Opposite pending order does not remove position

Hello, I am trying to close a PENDING BUY STOP order by placing a PENDING SELL STOP order. I am using Python. Both orders get executed (deals done appear in the Journal tab) and the position gets removed from the Exposure tab but long and short trades still appear in the Trade tab and