![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
The plan is to have it open close trades like this.
Any ideas how to get this to work in this code? I really appreciate your help, i finally feel like im getting somewhere
don't forget to cover all the possibilities as described in the picture
As you have indicated, if a buy position is already open, another buy signal is ignored. i.e only one position per direction. Same for the short.
The code I have does not enter positions as i want it to, it enters them as follows...
here is the code i have : can anyone assist
you have to add a condition
if(uptrend && another_order_is_not_open)
in this case you have to loop all the orders to find out if another order is open
same for downtrend
if(downtrend && another_order_is_not_open)
already told you once you have to fix you code like before
I did, same problem. Ive been moving the code around trying different things with no joy.
I did, same problem.
no you didn't and you don't listen
i wrote:
you have to add a condition
if(uptrend && another_order_is_not_open)
in this case you have to loop all the orders to find out if another order is open
same for downtrend
if(downtrend && another_order_is_not_open)
and i don't see it in your code
i wrote:
already told you once you have to fix you code like before
and i don't see it either
so here we go:
B.T.W. it seems to me that you are acting against the trend (IMHO it's supposed to be upside)