Forum

how to stop waiting for a handle when I invoke an indicator

I have created an expert advisor that searches, within all the symbols offered by the broker, which symbols in a specific timeframe satisfy certain requirements given by the values of several indicators. Everything works well only that sometimes the call to get the handle takes a long time (I assume

Open Buy (instead of sell) - or - Open Sell (instead of buy)

From the 1045 version has made its appearance a serious mistake: When sending in sequence two orders of opposite direction, the second order, sometimes runs in the wrong direction plus without entering the comment and magic number. I find myself in substance to have two buy or two sell instead of