How to show alert on the chart?
Author: tradercn
Creation Date: 11/6/2011 7:52 PM
profile picture

tradercn

#1
I love the different MACD combination system very much. So I updated my daily chart manually (the data source is txt files, it is EOD data) and run the strategy manually. But today I found a problem.
On one chart, the buying signal was triggered on Nov 4, I was supposed to buy at the open of Nov 4. But unfortunately, I saw the buying signal after Nov 4th, so I missed the buying signal. Can I show the alert on the chart right at the day which buying signal is triggered, for example Nov 3rd? Or, I want to show the buying alert one day before BuyATMarket(bar+1), how can I do it please? Thanks.
profile picture

Cone

#2
When you're trading EOD, you should automatically look at the Alerts tab for Alerts. It shows the number of Alerts without even without clicking on the tab.

Anyway, you can display anything you like on the chart, just about anywhere you want. See the "Cosmetic Chart" methods in the QuickRef (F11). Also, see "Alert object" there too, which gives you plenty of examples of how to access information in an Alert.
profile picture

tradercn

#3
Thanks for your help, Cone. I showed the text with DrawText successfully. But how to remove it please? Thanks.
profile picture

Eugene

#4
You don't remove DrawText. Instead, you simply do not draw it when it's not appropriate to do so (no condition has been met).
profile picture

tradercn

#5
Good idea, I will try. Thanks.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).