PureBytes Links
Trading Reference Links
|
Thanks for the help Tony....
What the purpose of the question is to get
a) The high value of the most recent bar meeting the condition
b) The high value of the previous bar meeting the condtion whose value
is higher than the most recent bar.
c) the number of bars between those two
TIA
--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx>
wrote:
>
> For indicator Builder...
>
> highlights the ref(h,-1) Bar....pattern must be completed before the
ref(h
> -1) bar highlights
>
> pat=Ref(H,-1) > Ref(H,-2) AND Ref(H,-1) > H AND C > Ref(C,-2);
> Cond1=Ref(pat,1);
> Plot(C,"",IIf(Cond1,colorYellow,colorBlack),styleCandle);
>
> For AA window...
> n last quotations and n=1....click explore
>
> // # of patterns
> pat=Ref(H,-1) > Ref(H,-2) AND Ref(H,-1) > H AND C > Ref(C,-2);
> pat1=Cum(pat);
>
> //# of bars
> bars=Cum(1);
>
> //% Pattern
> Cond1=(Cum(pat)/Cum(1))*100;
>
> Filter=pat > 0;
> AddColumn(pat1,"#Pat",1);
> AddColumn(bars,"#Bars",1);
> AddColumn(Cond1,"%Pat",1.2);
>
> Anthony
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Save Smiley. Help put Messenger back in the office.
http://us.click.yahoo.com/4PqtEC/anyFAA/i5gGAA/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/
|