Hi everyone. I believe most of us have seen OCO (one-cancels-other) feature in several trademanager EA, am I right? However, have you come across with placing pending order after open order been closed(TP/SL)?
So, I will explain the scenario with the aid of this picture.
Initially, the EA will open two pending orders waiting for the price to hit either one. The pending order types varies with the current price position. Eg. If current price is above the two lines, buy limit & sell stop are placed.
Look at the picture, :-
1) Buy stop --> Buy
2) Buy --> Close, Buy stop is placed at the price which same as previous price level /Sell stop --> Sell
3) Sell --> Close, Sell stop is placed at the price which same as previous price level /Buy stop -->Buy
4) Buy --> Close, Buy stop is placed at the price which same as previous price level /Sell stop --> Sell
5) Sell --> Close, Sell stop is placed at the price which same as previous price level / Buy stop --> Buy
Thus, there is no limitation on placing pending order after open order been closed. Also, the parameter should include magic number input (can be done manually) and total profit/loss for the specific magic number of total trades can be displayed on the screen chart will be good. Something look like this.
In a nutshell, I would be grateful if you giving a helping hand. Thanks for reading my post. Happy trading~ =)
So, I will explain the scenario with the aid of this picture.
Initially, the EA will open two pending orders waiting for the price to hit either one. The pending order types varies with the current price position. Eg. If current price is above the two lines, buy limit & sell stop are placed.
Look at the picture, :-
1) Buy stop --> Buy
2) Buy --> Close, Buy stop is placed at the price which same as previous price level /Sell stop --> Sell
3) Sell --> Close, Sell stop is placed at the price which same as previous price level /Buy stop -->Buy
4) Buy --> Close, Buy stop is placed at the price which same as previous price level /Sell stop --> Sell
5) Sell --> Close, Sell stop is placed at the price which same as previous price level / Buy stop --> Buy
Thus, there is no limitation on placing pending order after open order been closed. Also, the parameter should include magic number input (can be done manually) and total profit/loss for the specific magic number of total trades can be displayed on the screen chart will be good. Something look like this.
Attached Image
In a nutshell, I would be grateful if you giving a helping hand. Thanks for reading my post. Happy trading~ =)