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

Re: [amibroker] display of entry/exits



PureBytes Links

Trading Reference Links

Ace,
It is because you ask to print the date ONLY when H==HHV(H,p5) in 
your WriteIf hypothesis.
You may know the time/value with ValueWhen() function.
Example

bars=400;
Cond= H==HHV(H,bars);
Plot(C,"",colorBlack,64);
PlotShapes(8*Cond,colorYellow);
Title="The "+WriteVal(bars,1.0)+"-bar High was "+WriteVal(ValueWhen
(Cond,H))+" and occurred on "+WriteVal(ValueWhen(cond,DateTime
()),formatDateTime);

Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "acesheet" <acesheet@xxxx> wrote:
> 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



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/