How to assign a comment on a daily chart ?

Post Reply
Trend
Posts: 18
Joined: 29 Oct 2013 09:18

How to assign a comment on a daily chart ?

Post by Trend »

Good afternoon,
I tried this code but I realize that even days just appear on my graph (comments on even-numbered days are ok - but the odd days are invisible)


Express Note

Vars

calculation

if date=NumericToDate(20140307) then Highlight("textbelow:Note1","bleu");
if date=NumericToDate(20140310) then Highlight("textbelow:Note2","bleu");
if date=NumericToDate(20140311) then Highlight("textbelow:Note3","bleu");
if date=NumericToDate(20140312) then Highlight("textbelow:Note4","bleu");

interpretation

begin
end


I also tried to frame the period with a date of departure and arrival, with the same result
Maybe the "Highlight" is not compatible with NumericToDate function, or so my code is not correct ? (As in the Function book it is used with a "senti_block/senti_pass sentiment" , and I may be diverted its main use)


Yours Sincerly

Trend
User avatar
WHS Support
Posts: 2401
Joined: 14 Feb 2013 10:27

Re: How to assign a comment on a daily chart ?

Post by WHS Support »

Dear Trend,

thanks for your input regarding a possible problem with the Express function NumericToDate(). We will investigate this issue and will come back to you as soon as possible.

Kind regards,
Timo
WH SelfInvest
User avatar
WHS Support
Posts: 2401
Joined: 14 Feb 2013 10:27

Re: How to assign a comment on a daily chart ?

Post by WHS Support »

Hello Trend,

sorry for the late reply.

This problem has been solved meanwhile. The NumericToDate() function now only uses two digits instead of 4.

Example: January 1, 2014:
NumericToDate(140101) instead of NumericToDate(20140101).

Kind regards,
Timo
WH SelfInvest
Post Reply

Return to “WHS NanoTrader”