Click here to Login





                                                   Noob...how do I obtain previous day high, low and close??

  0

0
faust
2016-11-25 15:36:07


complete noob here....

I coded an indicator in strategydesk as follows (inner bar strength)
(Bar[Close,D,1]-Bar[Low,D,1])/(Bar[High,D,1]-Bar[Low,D,1])

Can one point me to the documentation that shows how I grab historical data for manipulation?
I'm not looking for someone to code this for me (though that would be great). I am just trying to learn.

Ideally want to add this as an indicator.

Thanks!



QuantShare
2016-11-26 01:09:27

  0

Hi,

In QS language, you can reference a previous bar using the "ref" function or using []

Example:
a = ref(close, 1);
OR
a = close[1];

Your example:
a = (close[1] - low[1]) / (high[1] - low[1]);

This assumes Bar[Close,D,1] is searching for the close price one bar ago.

If you are looking for current bar data then use:
a = (close - low) / (high - low);



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 and Low Between a Start and End Time
Time-series location relative to its high and low
Filter high and low spikes
NYSE, AMEX and NASDAQ 52-week high and low data
Percent High Low Range as a measure of stock volatility

How-to Lessons
How to scale and move the chart Y-axis
How to copy and paste drawing tools
How to install the previous version of QuantShare
How to plot the number of stock tweets per day
How to plot support and resistance lines automatically

Related Forum Threads
Previous day high and low in in intraday chart
trend line stick to high and low
Highest high and Lowest low difference intraday chart
Same High Low in charts
Previous day OHLC

Blog Posts
How to filter quotes data from high and low price spikes
Day Trading: A trading system that combines intraday and EOD data
How to predict and trade the stock market using pivot points
Forecast volatility using trading rules and neural networks
Backtesting chart patterns using the auto support and resistance ...









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.