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
EOD NSE stock quotes data
Daily Stock Quotes - Stock Market EOD Data
Historical Stock Quotes Data for more than 50 Exchanges
ASX EOD Data
RTS RU data

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
problem with nse data
How to download data for selected symbols ?
Symbols with 0..9 in name
Trailing stop value with Intraday data

Blog Posts
How to deal with StockTwits data
How to make sure your Historical Price Data is Split Adjusted
Industry Analysis - How to Compare Stocks with their Industries
Download quotes, news, sentiment, fundamental... data using Quant...
Display several stock market charts with one click









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