Click here to Login





                                                   Day's opening price

  0

0
umair
2013-02-24 21:54:04


Hi, how can I create a rule for day's opening price using ''create function''

I'm using

VectorD a = TA.HistoPrice(_open,0);

parameter = _open = open

it gives me an error.



QuantShare
2013-02-26 00:40:03

  0

"TA.HistoPrice" function accepts "STRING" as first parameter.
You should type:

VectorD a = TA.HistoPrice("open",0);


And no need to define a parameter here.




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
Day of week Average
Unweighted Price Index
VWAP - Volume-Weighted Average Price
Opening Range Breakout Indicator
Opening and Closing Crosses - Share Volume

How-to Lessons
How to detect whether price movements are predictable or not
How to change volume bar colors when the price closes down
How to plot the number of stock tweets per day
How to display the number of stocks per day for different RSI gro...
How to download historical EOD data for penny stocks

Related Forum Threads
How do I find the close price for an entry matching a custom DB
Filter out limit orders that doesn't trade through limit price
Setsimtiming -- Buy signal day open and sell signal day close
Check Position Days After Opening
Horizontal line on the intraday chart with the day's opening pric...

Blog Posts
How to filter quotes data from high and low price spikes
How to make sure your Historical Price Data is Split Adjusted
Day Trading: A trading system that combines intraday and EOD data
Quantitative Analysis: Price Channels
How to get buy and sell orders for a portfolio based on a trading...









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.