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

Re: [amibroker] Re: How can i display a weekly conditioned ribbon on the daily chart????



PureBytes Links

Trading Reference Links

hi,
 
not sure what constraints you use but I believe that if you use something like:
 
BuyMode = PDI(14) >= MDI(14) AND ROC(ADX(14),1) >= 0;
ShortMode = PDI(14) < MDI(14) AND ROC(ADX(14),1) < 0;
then this would exclude certain parts of the array since when the ADX is rising it doesn't mean the price is also rising. Rather it means somthing like the trend is strengthening and this could be up or down. You will only see green and red colors when using e.g.:
 
BuyMode = PDI(14) >= MDI(14);
ShortMode = PDI(14) < MDI(14);
 
regards, Ed
 
 

 
----- Original Message -----
From: memester57
Sent: Thursday, December 11, 2008 11:31 AM
Subject: [amibroker] Re: How can i display a weekly conditioned ribbon on the daily chart????

Thanks but this would not appear to be the reason. DMI and ADX
calculated to 2 decimal places so incidences of them being == would be
very rare indeed. In any case, if it was so then the monthly ribbon
in both the weekly and monthly displays would be the same and thay are
not, the only sinner is the one in the smaller timeframe window (same
for the weekly ribbon in the daily window). The monthly ribbon in the
CSL example shows this condition since April 2004 to current.

Changed the code just in case and it made no difference. Thanks anyway.

--- In amibroker@xxxxxxxxxps.com, "monitorit" <monitorit@x..> wrote:
>
> 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 amibroker@xxxxxxxxxps.com, "memester57" <gjude@> 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 amibroker@xxxxxxxxxps.com, "Tamer Gamal" <tgamal1@> wrote:
> > >
> > >
> > > Worked just fine.........thx man
> > >
> > >
> > >
> > > --- In amibroker@xxxxxxxxxps.com, "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: amibroker@xxxxxxxxxps.com
> > > > 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???
> > > >
> > >
> >
>

__._,_.___

**** 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

*********************************




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

__,_._,___