[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] display of entry/exits



PureBytes Links

Trading Reference Links

Hello,

Date() returns currently selected date only (selected using Vertical line )

You should use this code instead:

 "5 Year High: "+WriteVal(HHV(H,p5),8.2)+" Occured on "+WriteVal( ValueWhen(H==HHV(H,p5), DateTime() ), formatDateTime );

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "acesheet" <acesheet@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, June 26, 2004 6:37 AM
Subject: [amibroker] Why won't this print the date?


> Folks,
> 
> Can anyone suggest a solution to this problem?
> 
> I'm trying to write this to either the Guru Commentary or the 
> Interpretation windows, but it will only print a date when the 5 
> year high is hit on the current day. I'd like to find out how when 
> in the past a 5 year high was hit if today isn't that high.
> 
> "5 Year High: "+WriteVal(HHV(H,p5),8.2)+" Occured on "+WriteIf(H==HHV
> (H,p5),Date(),"NA");
> 
> Like Isaid I get "NA" most of the time if the current day isn't the 
> day of the 5y High.
> 
> Thanks,
> 
> -ace
> 
> 
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/