Ex-Dividend date? |
Post Reply |
Author | |
kneighbour
Regular Joined: 12 Feb 2005 Location: Australia Posts: 57 |
Post Options
Quote Reply
Topic: Ex-Dividend date? Posted: 14 Feb 2005 at 7:15pm |
I would like to display a vertical line on the chart for the Ex dividend date for all securiteis. I tried this [target=Price] While this compiles - when I try to add this as an indicator, it comes up with an error message. No doubt I am doing it wrong. I suspect that I am mixing two scales - price and time, and that this method is not possible. Any ideas how i can do this?
|
|
Peter
BullCharts Staff Joined: 09 Sep 2004 Location: Australia Posts: 241 |
Post Options Quote Reply Posted: 15 Feb 2005 at 9:52am |
You can achieve this with:
[target=Price; name=ExDate] [linestyle=marker; marker=type1] security.ExDate<=now and not hist(security.ExDate<=now,1); A few notes:
|
|
kneighbour
Regular Joined: 12 Feb 2005 Location: Australia Posts: 57 |
Post Options Quote Reply Posted: 15 Feb 2005 at 6:26pm |
That is excellent. The verticalmarker linestyle will be better, but that suits me just fine for now. Thanks. |
|
Peter
BullCharts Staff Joined: 09 Sep 2004 Location: Australia Posts: 241 |
Post Options Quote Reply Posted: 17 Feb 2005 at 3:29pm |
You might find this helpful as well. It'll display the date of the ExDate at the end of the chart.
[target=Price] [linestyle=text] [textalign=Above,Right] "Ex:" + DayOfMonth(Security.ExDate) + "/" + Month(Security.ExDate) + "/" + Year(Security.ExDate); if(barnumber=lastvalue(barnumber),hhv(H,5),undefined); |
|
Post Reply |
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |