PureBytes Links
Trading Reference Links
|
<FONT face=Tahoma
size=2>pats=Sum(C>Ref(C,-4),9);patb=Sum(C<Ref(C,-4),9);pers=BarsSince(pats==9);perb=BarsSince(patb==9);Lv=LLV(Ref(L,-pers),9);Hv=HHV(Ref(H,-perb),9);Plot(IIf(BarIndex()>LastValue(BarIndex())-8,LastValue(LV),Null),"TDST
High",colorBrightGreen,styleLine);Plot(
IIf(BarIndex()>LastValue(BarIndex())-8,LastValue(HV),Null),"TDST
low",colorRed,styleLine);//shows across last 9 bars. Used '8' because of AB
plotting artifact adds one bar on left.
-CS
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
epintoem
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, July 16, 2003 8:26
PM
Subject: [amibroker] IB Code help
pats=Sum(C>Ref(C,-4),9);patb=Sum(C<Ref(C,-4),9);pers=BarsSince(pats==9);perb=BarsSince(patb==9);Lv=LLV(Ref(L,-pers),9);Hv=HHV(Ref(H,-perb),9);Plot(Lv,"TDST
High",colorBrightGreen,styleLine);Plot(hV,"TDST
low",colorRed,styleLine);the plot of the line is not coming as I
intended...I just want a horizontal line at LV and HV not
connected.How would I paint the 9 bars that make up the condition
pers?TIASend
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|