Page 1 of 1

How to assign a comment on a daily chart ?

Posted: 15 Mar 2014 14:56
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

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

Posted: 18 Mar 2014 10:42
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

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

Posted: 17 Sep 2014 17:17
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