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
You mean this way?
I don't know . . . does that do what you want ?
Of course! sorry! I didn´t think about about it!
We made this EA for scalping! The EA should close every scalping-order with 1 pip profit! In order not to close the long term orders we used the command OrderOpenTime(). The scalping orders are set manually! It acts like TP but only with 1 pip profit!
Thank you
Ah I see, you don't want the EA to close the non-scalping, short term, orders . . .
OK, some comments . . .
1. Your loop does virtually nothing, you need to enclose in braces, { } what you want done within the loop . . .
2. You have 2 OrderSelect() calls, if you put everything into the loop you will only need one . . .
3. the close buys section should only be executed for Buy orders, the close sells should only be executed for Sell orders
4. your 1 pip profit is hard coded for 4 digit pairs, so it won't work for pairs like USDJPY
Maybe something like this . . . .
Maybe something like this . . . .