Click here to Login





How to display notes/commentaries on a chart

Updated on 2012-01-09 03:56:20

Share |

You can add a note or a commentary to a security by selecting a specific bar on a chart then typing CONTROL+N. It is also possible to add a note by right clicking on a chart then selecting Tools -> Notes.

The notes you add are stored in a custom intraday database (_notes).

Here is how to display notes on a chart:

- Open a chart then right click on it and select "Edit Formula"
- Select "File" then "New Formula"
- Type the following formula to add notes to the active chart:

a = GetDataString("_notes", "note", "");
a1 = GetDataCount("_notes", "note");
PlotSymbol(a1, a, 1, 1, AboveHigh, colorBlack, colorBlack, PlotSymbolRectangle);
PrintChart(a, "Notes", BottomLeft, colorRed, colorTransparent, colorTransparent, 255);





GetDataString: gets the different notes for the current security/stock
GetDataCount: gets the number of notes for each trading bar
PlotSymbol: plots a rectangle above the high when at least one note is available for the current bar
PrintChart: prints the note at the bottom-left corner when you move your mouse over a rectangle

Commentaries are also displayed above the rectangle symbol. You can disable this by updating the third line in the formula and replacing it with the below line:

PlotSymbol(a1, "", 1, 1, AboveHigh, colorBlack, colorBlack, PlotSymbolRectangle);








no reviews (Log in)







Other how-to articles




How to display two stocks on the same chart





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





How to display Forex economic calendar data in a chart





How to display the number of notes per stock





How to print a chart





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





How to add a trading indicator to a chart





How to plot arrows below/above candlesticks on a chart





How to download new quotes when selecting a chart







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.