TheFrench:
use this :
if ( OrderSymbol() == GBPUSD) { // thene delete }
// or use this for close wining posotions.
if ( OrderSymbol() == GBPUSD && OrderProfit() > 0) {
// thene delete }
Ali Sabbaghi:
ise this :
Great, thank you :)
Code2219 or probably 2319:
there's no if condition to check the symbol of the open position.
also there's no filter to choose positions in profit.
there's no if condition to check the symbol of the open position.
also there's no filter to choose positions in profit.
!!!
search for it ....
OrderSymbol() to get opened position symbol name and OrderProfit() to finde profitable orders..
Ali Sabbaghi:
!!!!!!
search for it ....
OrderSymbol() to get opened position symbol name and OrderProfit() to finde profitable orders..
I was referring to his code.
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
Hello everyone, I have a small problem with my EA, I would like him to close the winning position only on GBPUSD. but now he closes the winning position on all the instruments. can you help me please. here is the code