looking for a solution to have a sleep / pause / wait, just 1 or 2 second before send market order.
Seems to be crazy, but can avoid cross order.
For the moment, I played a sound file. but if better solution exist. I take it.
Pause / sleep / wait
Questions about MultiCharts and user contributed studies.
3 posts • Page 1 of 1
You could write a DLL that executes the MS Windows Sleep or SleepEx function to wait so many milliseconds, but I think I saw somewhere how one can access the MS functions directly out of a study. I can't recall the details though. Perhaps I was dreaming.
You can try placing limit orders and then using the built-in functionality in MultiCharts to converts them to market after x seconds (it's in the Strategy Properties > Autotrading tab)