Click here to Login





How to display the bar index of a stock on a chart

Updated on 2011-10-22 05:12:08

Share |

Here are three different ways to display a stock or asset's bar index on a chart.

In order to plot the bar index, you should right click on chart, select "Edit Formula", type one of the next formulas then click on "Update Graph". Each method uses a different function and each one has its own customization settings. For example, the "PlotSymbol" function lets you update the color, back-color, location and symbol type of each element.

Method 1:

plot(sum(1), "Bar Count", colorGreen, ChartStep, StyleOwnScale);

This will create a bar index line. The value of the line at bar X is equal to X. The bar index value is displayed at the top of the chart.


Method 2:

PlotSymbol(1, sum(1), 0, 0, AboveHigh, colorTransparent, colorBlack, PlotSymbolNone);

By using the "PlotSymbol" function, you can display the bar index value just above the bar's high in a candlestick chart.


Method 3:

PrintChart(sum(1), "Bar Count", TopRight, colorWhite, colorBlack, colorBlack, 250);

The "PrintChart" function lets you print the bar index value on a chart. Each time you move your mouse over the chart, the value is automatically updated.

Here is a chart that combines all these methods:










no reviews (Log in)







Other how-to articles




How to display two stocks on the same chart





How to display the number of notes per stock





How to plot a stock using different periods in the same chart





How to screen for stocks having a high correlation with the Dow Jones index





How to display notes/commentaries on a chart





How to display Forex economic calendar data in a chart





How to plot the number of stock tweets per day





How to change volume bar colors when the price closes down





How to plot a time-series that do not update the chart scale







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.