Click here to Login

Trading Software Trading objects Features How-to Blog Search


                                                   Is it possible to display bar index on the chart?

  0

0
Obuli Govindaraju
2011-10-21 22:53:46


I am doing some testing and would like to see bar index numbers appear above a candlestick in a chart.

Is it possible to do something like this?

Thanks.



QuantShare
2011-10-22 05:15:26

  0

Best Answer
Yes it is possible. Please look at the following how-to article:
http://www.quantshare.com/how-343-how-to-display-the-bar-index-of-a-stock-on-a-chart




Obuli Govindaraju
2011-10-22 11:12:44

  0

Great! Thanks for the link.

However from my understanding so far it looks like the cFunctions.High indexes the bar from right to left with 0 meaning the last bar and 1 meaning yesterday's bar and so on.

Whereas ChartData.GetTimeSeries("high") indexes the bar from left to right with 0 meaning the first bar on the chart and the last index is today's bar.

Is my observation correct? If so is there a reason why it indexes differently?

Thanks.



QuantShare
2011-10-24 04:33:23

  0

"cFunctions.High" and "ChartData.GetTimeSeries" uses the same logic. They both indexes the bar from left to right.

The only function that indexes the bar from right to left where 0 means the current bar and 1 the bar before is the "GetTimeSeries" of the money management script.
This is because this script is executed on each trading day during a simulation.



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
Trading Rules based on the Relative Strength Index - RSI Indicato...
Record High Percent - 10-day Simple Moving Average of the High-Lo...
Percentage of Stocks Outperforming the S&P 500 Index
Rank Industries based on the average Relative Strength Index
Trading rules using the VIX Index

How-to Lessons
How to display the bar index of a stock on a chart
How to screen for stocks having a high correlation with the Dow J...
How to display two stocks on the same chart
How to change volume bar colors when the price closes down
How to display the number of notes per stock

Related Forum Threads
Indicator - forward bar value
Basic features and some issues with the background
How to download the trading software
Chart Pattern Index problem
Help with the following trading system

Blog Posts
Ranking stocks based on their correlation with the S&P 500 Index
Create a stock index or a trading indicator using the composite t...
Create a Pivot Table that displays the Relative Strength Index - ...
The custom trading indicators tool explained
Working with the formula editor









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