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

Re: [amibroker] Re: HighestSince function



PureBytes Links

Trading Reference Links

Rakesh,
Select any bar and

Cond=Cross(MACD(),0);
Plot(C,"",colorBlack,64);
PlotShapes(Cond*shapeDownTriangle,colorRed);
x=Cum(1);
t1=ValueWhen(Cond,x,1);
t2=ValueWhen(Cond,x,2);
From2To1=x>=SelectedValue(t2) AND x<=SelectedValue(t1);
Cperiod=IIf(From2To1,C,Null);
PlotShapes(shapeSmallCircle*(From2To1),colorYellow);
HC=Highest(Cperiod);Plot(HC,"HC",colorPink,1);
GraphXSpace=2;
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "rakeshsahgal" <rakeshsahgal@xxxx> 
wrote:
> Group,
> 
> The manual states that this function is used to find the highest 
value
> of an array since the nth occurence of a condition e.g. highestsince
(
> Cross( macd(), 0 ), Close, 1 ) . Now if I want to find the highest
> close  subequent to the occurence where n=2 and prior to the 
occurence
> where n=1 i.e. the interveining highest value, how do I got about
> that?
> 
> 
> Thanks in advance for any help,
> 
> Regards
> 
> 
> 
> Rakesh



------------------------ 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/