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();

Reply via email to