Your problem likely related to fact that there are 9 possible alternatives - not 4. You're leaving out PDI==MDI and ADX unchanged (ie, not rising or falling). So 3 x 3. Most of the default colors will be because ADX is unchanged on those bars. D
--- In [email protected], "memester57" <[EMAIL PROTECTED]> wrote: > > I have also applied your ribbon and it's works well - mostly. I > display daily, weekly and monthly charts side by side and use the > ribbon on a DMI pane (weekly ribbon on daily display and monthly > ribbon on weekly display) with 4 conditions governing ribbon colours > (PDI>MDI, MDI>PDI and ADX rising or falling for each alternative). > > These conditions cover all possible combinations and yet for some > symbols this outside timeframe ribbon displays a default colour (i.e. > not one of the condition colours) for sometimes lengthy periods of > time where the same ribbon in the 'normal' timeframe is correct (CSL > is a good example). I initially thought it may have been missing data > (suspended days etc) but it doesn't seem to be the case, though as it > varies from symbol to symbol but is consistent for each individual > symbol it does appear to be some data issue. > > Any clues? > > --- In [email protected], "Tamer Gamal" <tgamal1@> wrote: > > > > > > Worked just fine.........thx man > > > > > > > > --- In [email protected], "Edward Pottasch" <empottasch@> > > wrote: > > > > > > hi, > > > > > > here is an example: > > > > > > > > > TimeFrameSet(inWeekly); > > > BuyMode = MACD(12,26) > Signal(12,26,9); > > > ShortMode = MACD(12,26) < Signal(12,26,9); > > > TimeFrameRestore(); > > > > > > BuyMode = TimeFrameExpand( BuyMode, inWeekly ); > > > ShortMode = TimeFrameExpand( ShortMode, inWeekly ); > > > > > > SetChartOptions(0, chartShowDates); > > > Plot(C,"Last=",colorBlack,64); > > > > > > weeklyRibbon = IIf(BuyMode, colorBrightGreen, > > IIf(ShortMode,colorRed,colorBlue)); > > > Plot( 3,"",weeklyRibbon ,styleOwnScale|styleArea|styleNoLabel,0,100); > > > > > > > > > > > > ----- Original Message ----- > > > From: Tamer Gamal > > > To: [email protected] > > > Sent: Sunday, December 07, 2008 12:25 PM > > > Subject: [amibroker] How can i display a weekly conditioned ribbon > > on the daily chart???? > > > > > > > > > Dear all, > > > > > > If someone can help me! > > > > > > i want to display a weekly ribbon on the daily chart. > > > the weekly ribbon is green when macd in buy mode, red when sell > mode. > > > i would like to display it on daily chart. > > > > > > any ideas??? > > > > > >
