Click here to Login





                                                   How do I find the close price for an entry matching a custom DB

  0

0
suresh
2010-09-20 04:43:32


I want to do the following and not sure how to do this. Can you please help.

I have a custom db that stores fundamental data, but is downloaded once a week (eg P/B ratio). The fundamental data matches to the stock close price on the day the fundamental data was donwloaded. I want to get the stock close price for the corresponding day so that I can run some appropriate scaling for days that the fundamental data was missing?



QuantShare
2010-09-20 05:57:13

  0

What do you want to get if there are no quotes for a corresponding fundamental item date? (The last available stock close price?)


suresh
2010-09-20 06:00:06

  0

Yes, the previous close would be appropriate.


QuantShare
2010-09-20 06:19:11

  0

Best Answer
The following formula returns the close price on fundamental item dates, otherwise it returns 0.

iff(GetData("fundamental", "item", Zero) != 0, close, 0)



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
High to low stock pattern for the close price
How far are the close prices from the support line
Entry Price and Exit Price in Trading System Report
Close Price Above Cursor
Market Cap Historical Data for the US Stock Market

How-to Lessons
How to change volume bar colors when the price closes down
How to display the number of stocks per day for different RSI gro...
How to get stocks for a particular index using the global script
How to screen for stocks having a high correlation with the Dow J...
How to quickly download the most recent EOD data for your stocks

Related Forum Threads
How do you retrieve the entry and exit price for a position?
How do I refer to the close price of another symbol in a formula?
how do you check if the price data is up to date?
How do I simulate if then statements for the simulator?
How to update the custom variables (var1,var2,...) in a position ...

Blog Posts
How to Create Custom Metrics for Your Trading Positions
How to download the history of dividend payments for stocks in th...
Create custom metrics for the statistical data analysis tool
How to predict and trade the stock market using pivot points
How to use the new Market Regimes Feature in QuantShare Trading S...









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.