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

[amibroker] Re: Resricting calculations to the first 6 periods of occurrence FOR DT



PureBytes Links

Trading Reference Links

Thank you ...you are the greatest


-- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> 
wrote:
> Eugene,
> you may have less than 6 cascade pattern bars.
> When the pattern [or the 6 bars] is over, the highest high is
>  ValueWhen(Cond1==0 AND Ref(Cond1,-1),Ref(HHV(H,6),-1))
> See the
> 
> Cond=C>Ref(C,-4);
> Cond1=Cond AND BarsSince(NOT(Cond))<=6;
> Plot(C,"",4*Cond1+1,64);
> Plot(ValueWhen(Cond1==0 AND Ref(Cond1,-1),Ref(HHV(H,6),-1)),"",4,1);
> if it gives what you want.
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "Eugene" <johngalt1234@xxxx> 
wrote:
> > Basic pattern
> > C>ref(c,-4)
> > 
> > I want to be able to caluculate the highest high in the first 6 
> > periods of the occurrence of this pattern?
> > 
> > TIA


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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