How can I limit for example to open only a trade or a limit to 2 trades?
but it opens more than 2... maybe becaus the if condition is always true as the ordersend positions are closed by takeprofit parameter or ?
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.
give me a code example please, flag I know but I don t understand filter that one too
Here are some examples
Please enable the necessary setting in your browser, otherwise you will not be able to log in.