Click here to Login





                                                   Sleep till process completed

  0

0
Seeker
2021-12-06 07:15:49


Is there a way to make QS sleep till the current process is completed?

For example:
Composite.Calculate("correlation","IC20");
App.Main.Sleep(10*60000);
Composite.Calculate("correlation","IC65");

How to code the second line in such a way that once the calculation of the first composite is completed, it should proceed with the next.



QuantShare
2021-12-22 20:14:38

  0

There is no way to know then the calculation is done. Using the Sleep function is the way to go.


No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Sleep Well Bond Rotation Strategy V1.1
Sleep Well Bond Rotation Strategy V1.0
Update the Industry Name of your U.S. Stocks
Number of Upgraded Stocks Minus Downgraded Stocks
McNicholl Sentiment

How-to Lessons
How to automate the data downloading process
How to improve the performance of QuantShare databases?
How to download new quotes when selecting a chart
How to drag & drop indicators in charts
How to download EOD quotes for active and valid stocks only

Related Forum Threads
Quantshare unable to process NSE India Exchange Data since 28 OC...
Importing large csv
Buy/Sell order types w/Simulator
Thickening Candlesticks
Simulator Question

Blog Posts
Backtesting Process
Step by step on how to get free realtime/delayed data for stocks,...
Trading Optimization
Backtesting a Strategy Based on Bond and Stock Index ETFs
Historical Market Data









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.