Click here to Login





                                                   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
Export Indicators Data - Custom Time Frame
Insider Data History
Splits Calendar - Historical data for U.S. Stocks
Historical Earnings Calendar Data for U.S. Stocks - Date/Time and...

How-to Lessons
How to download earnings calendar data for various stocks
How to download and use U.S. stocks earnings data
How to get fundamental data for U.S. Stocks
How to import trading data from CSV files
How to display Forex economic calendar data in a chart

Related Forum Threads
Plotting the data from custom -Intraday data base
Custom Plugin to get Live Market depth data from IQfeed
Export Custom Database data - all symbols - including text fields
Custom Date Format When Importing Data from CSV
How do I find the close price for an entry matching a custom DB

Blog Posts
Statistical data analysis of time series
Speed Up Optimizations by Saving Ranking Data into a Custom Datab...
Create custom metrics for the statistical data analysis tool
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 © 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.