Click here to Login





                                                   Copying Symbols with Data

  0

0
Raju Harchandani
2010-09-30 21:37:25


I am sure there is a very simple solution to this. Can i Copy a symbol say XYZ existing in the Quotes or any other database as "XYZCopy" along with the prices etc so as to try out "Splits" etc on the copied Symbol. i earlier tried a split and probably because of entering wrong ratio I lostthe particular symbol data and had to reload the entire historical data. Also woul Split = Bonus Shares as well as Split Shares for charting purposes
Thank You
Raju



QuantShare
2010-10-02 06:40:39

  0

Best Answer
To make a copy of a symbol you should create a global script.

- Select Tools -> Script Editor
- Create a new file then paste the following code:

Chart chart = Charts.GetSelectedChart();
if(chart != null)
{
string newsymbol = chart.SymbolName + "_Copy";
HistoricalQuotes data = Quotes.GetHistoricalQuotes(chart.SymbolName);
Symbols.AddSymbol(newsymbol);
data.Symbol = newsymbol;
data.OpenInterest = new double[data.Close.Length];
Quotes.SaveHistoricalQuotes(data);
}



- The script will detect the active chart symbol and create a copy of this symbol (SymbolName_Copy)
- To add this script to the bookmark panel:
-> Right click on that panel (under the drawing tool buttons)
-> Select "Script" then click on "OK"
-> Select the file you have previously created

Now, in order to create a copy of a symbol, simply double-click on that bookmark icon.



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
Historical Stock Market Data with Split-Dividend Adjustment Ratio
Export Indicators Data with Filtering and Column Labels Support
Kuwait Stock Exchange - Historical EOD data
AAII Sentiment Survey - Historical Data
Historical Stock Quotes Data for more than 50 Exchanges

How-to Lessons
How to use QuantShare with Metastock data
How to speed up watchlist and screener plug-ins when working with...
How to hide stock data outside of regular trading hours
How to screen for stocks having a high correlation with the Dow J...
How to import trading data from CSV files

Related Forum Threads
Intraday Data for NSE Symbols
Scrip to Identify Symbols w/ Intraday Data
Export Custom Database data - all symbols - including text fields
problem with nse data
How to download data for selected symbols ?

Blog Posts
Different Ticker Symbols for Each Data Source
How to deal with StockTwits data
Historical Market Data
How to Create a List of Ticker Symbols
Creating Stock & Market Short Interest Ratios using Historical Sh...









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.