For a buy, a TP must be above the open price. 1.2996 is not above 1.3000
For a buy, a TP must be above the open price. 1.2976 is not above 1.2980
for example eur /usd
open order 1.3000
then open second order 1.2990.
then eur/usd = 1.2900.
i can modify order tp 1.2996 both of them. and its profitable. that's my ea's main idea,
or we can do this OrderClose, but i don't know what kind of if type or for loop use ?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
how can i code this ? what kind a loop or if type ?
i want there is an orders and i want these orders tp will be different, for example this ea open that orders.
1. order buy 1.3000
2. order buy 1.2990
3. order buy 1.2980
4. order buy 1.2970.
i want 1. and 2. orders tp will be 1.2996 , 3. and 4. orders tp will be 1.2976. this will be continue forever. how can i write this code? any idea ?