Click here to Login

Trading Software Trading objects Features How-to Blog Search


                                                   Storing a series of custom data globally.

  0

0
TheGrumble
2011-05-02 12:54:25


I have a script that produces custom data that I would like store a series of globally.
I want to feed the collected data back to the script as it run for each subsequent daily close price.
The storage of the data can be done easily using C# however, I cannot determine how to store
the data globally so it is persistent each time the primary script runs. I see there is a way to
store values global but how able an array of values?



QuantShare
2011-05-02 14:39:12

  0

Best Answer
The "Global.SetVariable" allows you to store objects. You can store anything there.

Example:
double[] values = new double[100];
Global.SetVariable("array1", values);
values = (double[])Global.GetVariable("array1");



TheGrumble
2011-05-02 23:36:48

  0

Perfect. Thanks...


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
Lagged Data From a Custom Database
Initial Jobless Claims - Historical data
Historical Earnings Calendar Data for U.S. Stocks - Date/Time and...
One-Minute Intraday Data for Currency Pairs
Federal Reserve Flow of Funds - Balance Sheet Historical Data

How-to Lessons
How to download and use U.S. stocks earnings data
How to download earnings calendar data for various stocks
How to get fundamental data for U.S. Stocks
How to download Portfolio123 data into QuantShare
How to display Forex economic calendar data in a chart

Related Forum Threads
Plotting the data from custom -Intraday data base
Best way to precompute a custom formula and store it
How do I find the close price for an entry matching a custom DB
Access all the elements of a custom db during screening
Retrieving or storing previous indicator result.

Blog Posts
Statistical data analysis of time series
Create custom metrics for the statistical data analysis tool
The custom trading indicators tool explained
How to create custom databases in your trading software
Day Trading: A trading system that combines intraday and EOD 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 © 2012 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items