Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 15:10:44 +0000



Post From: ACSIL - How a study code can wait...?

[2014-07-21 14:45:44]
AC94882 - Posts: 8
Hello,
I am running a study that runs every bar closes (like every study).
In this case, the study needs to wait few seconds, before execution, because it has to get some data from an external text file.

The Reading from the file is working, but if i am using the C++ Sleep() function, the whole chart is stuck!!.

I have other studies that must run just after bar is closing.

Q:

1. what is the best way for doing that?
2. C++ Thread is having a compelation error for me. Is it?
3. Is where is a configurablility way, to tell a study to run only after other study finished?, or after "X" seconds (through the Study Settings)?

Hope to hear from you soon,
Thanks, Ariel