Hi,
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.
Regards
Laurent
Pause / sleep / wait
-
- Posts: 103
- Joined: 05 Sep 2007
- Has thanked: 8 times
- Been thanked: 6 times
Re: Pause / sleep / wait
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.
- Stan Bokov
- Posts: 963
- Joined: 18 Dec 2009
- Has thanked: 367 times
- Been thanked: 302 times
Re: Pause / sleep / wait
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)