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

[amibroker] Re: IB Code help



PureBytes Links

Trading Reference Links

Thanks for the code...

It still does not give me horizontal lines ...

and I am unable to paint the bars meeting the condition.





--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> Try this, it may require some mods to wrok properly, but could be a 
starting
> point
> 
> pats=Sum(C>Ref(C,-4),9);
> patb=Sum(C<Ref(C,-4),9);
> pers=BarsSince(pats==9);
> perb=BarsSince(patb==9);
> 
> for( i = 1; i <= 3; i++ )
> {
> Lv=LLV(Ref(L,-pers),9);
> Hv=HHV(Ref(H,-perb),9);
> LvPlot = ValueWhen(L==Lv,Lv);
> hvPlot = ValueWhen(H==Hv,Hv);
> Plot(LvPlot,"TDST High",colorBrightGreen,styleLine);
> Plot(HVPlot,"TDST low",colorRed,styleLine);
> }
> 
> 
> Cheers,
> Graham
> http://groups.msn.com/ASXShareTrading
> http://groups.msn.com/FMSAustralia
> 
> 
> -----Original Message-----
> From: epintoem [mailto:epintoem@x...] 
> Sent: Thursday, 17 July 2003 11:57 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: IB Code help
> 
> 
> I wanted to plot the last three occurrences of LV and HV?
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> > You could use Lastvalue, or SelectedValue, or ValueWhen depending
> on at what
> > bar you want the line to show
> > eg
> > Lv=Lastvalue( LLV(Ref(L,-pers),9) ) ;
> > 
> > Cheers,
> > Graham
> > http://groups.msn.com/ASXShareTrading
> > http://groups.msn.com/FMSAustralia
> > 
> > 
> > -----Original Message-----
> > From: epintoem [mailto:epintoem@x...]
> > Sent: Thursday, 17 July 2003 11:26 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > 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?
> > 
> > TIA
> > 
> > 
> > 
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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/
> 
> 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Control Hunger EZ with fast acting oral EZ Appetite Suppressant Spray
from VitaminBoost.com. 1 Month Supply - 2oz., 80 sprays: $19.97.
http://www.challengerone.com/t/l.asp?cid=2866&lp=ezappetite3.html
http://us.click.yahoo.com/aSJFwB/XWXGAA/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/