PureBytes Links
Trading Reference Links
|
Oops - sorry I missed the original poster's intent there. He wants to program the lines, not just draw them. Graham is correct ( as usual ;)) - my reply was aimed at just drawing short lines, not programming them.
Pete, Brisbane, Australia
--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> If you already have the line formula, you could just use an iif statement to
> null out what you do not want. Here is an example of one way to do it.
>
> Plot( iif( barindex()<barcount-2, null, ref(H,-1) ), "", colorred, styleline
> ); Plot( iif( barindex()<barcount-3, null, ref(H,-2) ), "", colororange,
> styleline );
>
> Cheers,
> Graham
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/
|