Pause / sleep / wait

Questions about MultiCharts and user contributed studies.
rondot samuel ws
Posts: 103
Joined: 05 Sep 2007
Has thanked: 8 times
Been thanked: 6 times

Pause / sleep / wait

Postby rondot samuel ws » 05 May 2011


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.



Posts: 758
Joined: 25 May 2009
Has thanked: 42 times
Been thanked: 86 times

Re: Pause / sleep / wait

Postby janus » 06 May 2011

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.

User avatar
Stan Bokov
Posts: 963
Joined: 18 Dec 2009
Has thanked: 367 times
Been thanked: 300 times

Re: Pause / sleep / wait

Postby Stan Bokov » 17 May 2011

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)

Return to “MultiCharts”