Hi , i am just a beginner in coding an EA. The definition is :
1. Open 2 pending orders , buylimit and buystop.
2. If 1 is opened , delete another.
3. Wait for the opened order to closed in profit (TP) or minus (SL)
4. Check Magic Number of the last closed order (This is my problem??)
5. Open direct order based on :
Buy closed TP , open Sell
Buy closed SL , open Buy
Sell closed TP , open Buy
Sell closed SL , open Sell
I am confuse for a week thinking this problem, my head hurt.
Please any one teach me what should i change in my EA. It is on the Attachment.
Thank you so much for the help.
1. Open 2 pending orders , buylimit and buystop.
2. If 1 is opened , delete another.
3. Wait for the opened order to closed in profit (TP) or minus (SL)
4. Check Magic Number of the last closed order (This is my problem??)
5. Open direct order based on :
Buy closed TP , open Sell
Buy closed SL , open Buy
Sell closed TP , open Buy
Sell closed SL , open Sell
I am confuse for a week thinking this problem, my head hurt.
Please any one teach me what should i change in my EA. It is on the Attachment.
Thank you so much for the help.
Attached File(s)
Direct Miku TEST.mq4
9 KB
|
270 downloads