My EA sometimes does not open or close an order due to a disconnect or other issues. I am using a VPS and there are no issues with other brokers I am using for tests.
I want to make my EA open or close trades more reliably. Can anyone please recommend a sample of a reliable order opening/closing. It does not have to be too complex. I am thinking of writing it myself using a loop with a defined number of rounds (set as an external variable) and a wait time variable between rounds.
As I am still learning, I'd appreciate references to a sample code or recommendations what else to include in the code.
Hello there.
My EA sometimes does not open or close an order due to a disconnect or other issues. I am using a VPS and there are no issues with other brokers I am using for tests.
I want to make my EA open or close trades more reliably. Can anyone please recommend a sample of a reliable order opening/closing. It does not have to be too complex. I am thinking of writing it myself using a loop with a defined number of rounds (set as an external variable) and a wait time variable between rounds.
As I am still learning, I'd appreciate references to a sample code or recommendations what else to include in the code.
Thank you
R