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

[amibroker] Ribbon and how to plot up and down



PureBytes Links

Trading Reference Links

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/