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

Re: [amibroker] Ribbon and how to plot up and down



PureBytes Links

Trading Reference Links

Jerry:
 
I think you are mixing up C of stock with C of trin.  See if this works:
 
tri = foreign( ...
triup = tri > ref(tri, -1);
tridn = tri < ref(tri, -1);
 
plot(10, "", iif(triup, ... ), style..., 0, 100);
plot(tri, ...
plot(c, ...
 
Bill
 
 
----- Original Message -----
From: "Jerry Gress" <pleasenospamplease@xxxxxxxxxxx>
Sent: Sunday, April 15, 2007 2:15 PM
Subject: [amibroker] Ribbon and how to plot up and down

> Hi All,
>
> Been wrestling with this awhile. Below is the code I have to plot a ribbon
> based on the close being higher or lower than the proceeding close on a 2
> minute chart. This is using the Ny Trin as the symbol. Like to use it on
> other indicators and symbols. Seems like my better trades or when I'm in syc
> with the trin direction. However, the close ups and or close down does not
> match the ribbon. Any help would be appreciated.
>
>
> Tri = Foreign("Trin-Nyse-Nyse-Ind","Close");
>
> Plot(tri,"Trin",colorDarkRed,styleOwnScale|styleLine);
>
> Triup = Ref(C,0) > Ref(C,-1);
> Tridn = Ref(C,0) < Ref(C,-1);
>
> Plot( 2,"Ribbon",IIf( Tridn, colorRed, IIf(  Triup, colorGreen ,15)),
> styleOwnScale|styleArea|styleNoLabel );
>
>
>
>
> Under Help  'Using graph styles, colors, titles and parameters in
> Indicators' New parameters make it also easy to plot ribbons, for example:
>
> Plot( Close, "Price", colorBlue, styleCandle );
> Plot( 2, /* defines the height of the ribbon in percent of pane width */
> "Ribbon",
> IIf( up, colorGreen, IIf( down, colorRed, 0 )), /* choose color */
> styleOwnScale|styleArea|styleNoLabel, -0.5, 100 );
>
> What does the -0.05 and 100 do?
>
>
> Jerry Gress
> Stockton, Ca.
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>
http://www.amibroker.com/devlog/
>
> For other support material please check also:
>
http://www.amibroker.com/support.html

> Yahoo! Groups Links
>
> <*> To visit your group on the web, go to:
>   
http://groups.yahoo.com/group/amibroker/
>
> <*> Your email settings:
>    Individual Email | Traditional
>
> <*> To change settings online go to:
>   
http://groups.yahoo.com/group/amibroker/join
>    (Yahoo! ID required)
>
> <*> To change settings via email:
>   
mailto:amibroker-digest@xxxxxxxxxxxxxxx
>   
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
>
> <*> 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/

>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 269.0.0/754 - Release Date: 4/9/2007 10:59 PM
>
>
__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___