Click here to Login

                                                   Copying Symbols with Data


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

2010-10-02 06:40:39


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);
data.Symbol = newsymbol;
data.OpenInterest = new double[data.Close.Length];

- 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


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"


Trading Items
Historical Stock Market Data with Split-Dividend Adjustment Ratio
Export Indicators Data with Filtering and Column Labels Support
EOD NSE stock quotes data
Historical EOD data for LSE-listed Stocks and ETFs

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

Related Forum Threads
Intraday Data for NSE Symbols
Scrip to Identify Symbols w/ Intraday Data
problem with nse data
How to download data for selected symbols ?
Symbols with 0..9 in name

Blog Posts
Different Ticker Symbols for Each Data Source
How to deal with StockTwits data
Download Trading Data using the URL-Script
Ranking stocks based on their correlation with the S&P 500 Index
Display several stock market charts with one click

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2017
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.