if(OrdersTotal()<2) { OrderSend(.... }
Marco vd Heijden: I want to open when ask is lower than one of ibands but it opened a lot of them because it is true the condition and I want to limit this to open only 2 not all time when is lower. Should I check something else ?
You have to set a flag once the order is open nd then filter that one too.
Marco vd Heijden:
You have to set a flag once the order is open nd then filter that one too.
give me a code example please, flag I know but I don t understand filter that one too
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
Dear programmers,
How can I limit for example to open only a trade or a limit to 2 trades?
int notrades=2;
int total=OrdersTotal();
while(total<notrades)
OrderSend(...)
notrades++;
but it opens more than 2... maybe becaus the if condition is always true as the ordersend positions are closed by takeprofit parameter or ?