Hello and Mery Christmas to all,
I have a problem programing and dont know how to resolve it. For maxorders=1 its ok but for more its not working.
Lets say my criteria for opening a trade is if the last two previous bars where up/down. If maxorders=5 the EA would open 5 trades and i dont want that to happen, i want to open only one position per sequence in time and allow other trades to be opened as well in case the previous postion is still opened.
I tried using the sleep command but wth no luck.
thanks if any one can help
I have a problem programing and dont know how to resolve it. For maxorders=1 its ok but for more its not working.
Lets say my criteria for opening a trade is if the last two previous bars where up/down. If maxorders=5 the EA would open 5 trades and i dont want that to happen, i want to open only one position per sequence in time and allow other trades to be opened as well in case the previous postion is still opened.
I tried using the sleep command but wth no luck.
thanks if any one can help