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

[amibroker] Multiple timeframe ribbon for range bars



PureBytes Links

Trading Reference Links

Hello,

I am trying to create a multiple interval ribbon showing three 
different range bar intervals in one panel.  So far, I've come close, 
but my code is only plotting one rangebar interval on the pane.  
Below is the code.....can someone tell me how I can get all three 
rangebar interval ribbons to plot in the same pane?

I use 375 as my base range bar interval, and I am using 3 range bar 
intervals....375, 250 and 125.

Thank you,

_SECTION_BEGIN("Section 1");
TimeFrameMode( 4 ); //range bar mode
TimeFrameSet(375); //range bar interval
uptrend = O < C-1;
downtrend = C < O-1;
Plot( 10, /* defines the height of the ribbon in percent of pane width
*/"ribbon",
IIf( uptrend, colorGreen, IIf( downtrend, colorRed, 1 )), /* choose 
color */
styleOwnScale|styleArea|styleNoLabel, 0, 100 );

TimeFrameRestore(); 
_SECTION_END();


_SECTION_BEGIN("Section 2");
TimeFrameMode(4);
TimeFrameSet(250); 
uptrend = O < C-1;
downtrend = C < O-1;
Plot( 10, /* defines the height of the ribbon in percent of pane width
*/"ribbon",
IIf( uptrend, colorGreen, IIf( downtrend, colorRed, 1 )), /* choose 
color */
styleOwnScale|styleArea|styleNoLabel, 0, 150 );

TimeFrameRestore(); 
_SECTION_END();

_SECTION_BEGIN("Section 3");
TimeFrameMode( 4 ); 
TimeFrameSet( 125 ); 
uptrend = O < C-1;
downtrend = C < O-1;
Plot( 10, /* defines the height of the ribbon in percent of pane width
*/"ribbon",
IIf( uptrend, colorGreen, IIf( downtrend, colorRed, 1 )), /* choose 
color */
styleOwnScale|styleArea|styleNoLabel, 0, 150 );

TimeFrameRestore(); 
 _SECTION_END();


------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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/