Tolga TANIS:
Hello Friends,
i'm a beginner for mql coding, i tried too much but i could'nt write an EA correctly that i thought, maybe somebody help me about this,
steps are as following;
1- EA will open 1 BUYSTOP and 1 SELLSTOP using highest and lowest of last 3 bars, OP_BUYSTOP at Highest[last 3 bars]+5 pips and OP_SELLSTOP at Lowest[last 3 bars]-5 pips ,Stoploss 5 pips, TP is none.
2- when 1 of 2 orders turn SELL or BUY trailing will follow to opened order with 5pips, and the other pending order will follow the opened order's trailing,
i mean, exp. there is OP_BUYSTOP and OP_SELLSTOP, OP_SELLSTOP becomes SELL ORDER and OP_BUYSTOP will go directly -5pips and start follow the SELL ORDER with 5pips if its going down, when sell order going down with Trailing OP_BUYSTOP will keep the distance 5pips, when SELL ORDER close with trailing,if go up OP_BUYSTOP will be BUY ORDER with Trailing and will open a new OP_SELLSTOP in this time again and follow to other as same before, will continue loop,
i dont know that i could clearly explain or not, if somebody help me thanks already.
Tolga
Hello Friends,
i'm a beginner for mql coding, i tried too much but i could'nt write an EA correctly that i thought, maybe somebody help me about this,
steps are as following;
1- EA will open 1 BUYSTOP and 1 SELLSTOP using highest and lowest of last 3 bars, OP_BUYSTOP at Highest[last 3 bars]+5 pips and OP_SELLSTOP at Lowest[last 3 bars]-5 pips ,Stoploss 5 pips, TP is none.
2- when 1 of 2 orders turn SELL or BUY trailing will follow to opened order with 5pips, and the other pending order will follow the opened order's trailing,
i mean, exp. there is OP_BUYSTOP and OP_SELLSTOP, OP_SELLSTOP becomes SELL ORDER and OP_BUYSTOP will go directly -5pips and start follow the SELL ORDER with 5pips if its going down, when sell order going down with Trailing OP_BUYSTOP will keep the distance 5pips, when SELL ORDER close with trailing,if go up OP_BUYSTOP will be BUY ORDER with Trailing and will open a new OP_SELLSTOP in this time again and follow to other as same before, will continue loop,
i dont know that i could clearly explain or not, if somebody help me thanks already.
Tolga
You could consider this section:
Regards.


You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
i'm a beginner for mql coding, i tried too much but i could'nt write an EA correctly that i thought, maybe somebody help me about this,
steps are as following;
1- EA will open 1 BUYSTOP and 1 SELLSTOP using highest and lowest of last 3 bars, OP_BUYSTOP at Highest[last 3 bars]+5 pips and OP_SELLSTOP at Lowest[last 3 bars]-5 pips ,Stoploss 5 pips, TP is none.
2- when 1 of 2 orders turn SELL or BUY trailing will follow to opened order with 5pips, and the other pending order will follow the opened order's trailing,
i mean, exp. there is OP_BUYSTOP and OP_SELLSTOP, OP_SELLSTOP becomes SELL ORDER and OP_BUYSTOP will go directly -5pips and start follow the SELL ORDER with 5pips if its going down, when sell order going down with Trailing OP_BUYSTOP will keep the distance 5pips, when SELL ORDER close with trailing,if go up OP_BUYSTOP will be BUY ORDER with Trailing and will open a new OP_SELLSTOP in this time again and follow to other as same before, will continue loop,
i dont know that i could clearly explain or not, if somebody help me thanks already.
Tolga