I am not sure what you are saying.  Have added some explanation and an
additional plot to demonstrate the effect of negative indicator values on
the ZIG.

 

From: [email protected] [mailto:[email protected]] On Behalf
Of Yves
Sent: Wednesday, December 16, 2009 3:55 PM
To: [email protected]
Subject: Re: [amibroker] Problem with the ZIG

 

  

He have more error in your formula !

 

Merci
 
YLTech ( Yves L. )
 
Le présent message et les documents qui y sont joints sont réservés
exclusivement au destinataire indiqué. Il est strictement interdit d'en
utiliser ou d'en divulguer le contenu. Si vous recevez le présent message
par erreur, veuillez le détruire S.V.P. et nous en aviser immédiatement afin
que nous puissions corriger nos dossiers. Merci.
 
This message and the attached documents may contain privileged or
confidential information that are intended to the addressee only. Any
unauthorized disclosure is strictly prohibited. If you happen to receive
this message by error, please delete it and notify us immediately so that we
may correct our internal records. Thank you.
 
[email protected]

----- Original Message ----- 

From: Joris Schuller <mailto:[email protected]>  

To: [email protected] 

Sent: Sunday, December 13, 2009 3:37 PM

Subject: RE: [amibroker] Problem with the ZIG [1 Attachment]

 

  

Try this: Offset the CCi by the LowestVisibleValue of CCI, compute the Zig
and then deduct the LowestVisibleValue again.
//============= with CCI restored to original value
_SECTION_BEGIN("CCI");
periods = Param( "Periods", 14, 2, 200, 1 );
PerChange = Param( "PerChange", 10, 0, 100, 1 );
CCINegOffset=LowestVisibleValue(CCI(Periods));
CCIPos=CCI( periods )-CCINegOffset;//Adjusted with min amount necessary to
habe non-negative values
Plot( CCI( periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ),
ParamStyle("Style") );
Plot(Zig(CCIPos,PerChange)+CCINegOffset,"Zig",colorGreen,5);
_SECTION_END();

From: [email protected] <mailto:amibroker%40yahoogroups.com>
[mailto:[email protected] <mailto:amibroker%40yahoogroups.com> ] On
Behalf
Of Yves
Sent: Friday, December 11, 2009 2:07 PM
To: [email protected] <mailto:amibroker%40yahoogroups.com> 
Subject: [amibroker] Problem with the ZIG

In this formula below
I'm use a ZIG on CCI Indicator
I'm change the value of the CCI because AB have a problem with 0 or negative
value
My New CCI have a value of 20 to 80
I'm would have a ZIG who's give to me 20 and 80 ONLY.
If I'm use a Zig(YL,70), i'm obtain a ZIG who's change from 20 to 78(It's no
good)
If I'm use a Zig(YL,71), i'm obtain NOTHING

WHY?
How can have a ZIG who's give a value of 20 and 80 ONLY

Thank

YLTech

_SECTION_BEGIN("CCI-MOD");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo
%g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) )
));
// I'm change the value of the CCI because AB have a problem with 0 or
negative value
Indic = ((CCI(14)+200)/5) ;
YL= IIf(Indic>80,80,IIf(Indic<20,20,Indic)) ;
ZYL= Zig(YL,70) ; //ZIG WITH PROBLEM ???????
//I'm have NOTHING IF the ZIG=71 WHY ??????????????????
Plot( YL,"Vague-CCI",colorBlue,styleLine ) ;
Plot( ZYL,"Zig-Vague-CCI",colorBlack,styleLine ) ;
_SECTION_END();

Merci

YLTech ( Yves L. )

Le présent message et les documents qui y sont joints sont réservés
exclusivement au destinataire indiqué. Il est strictement interdit d'en
utiliser ou d'en divulguer le contenu. Si vous recevez le présent message
par erreur, veuillez le détruire S.V.P. et nous en aviser immédiatement afin
que nous puissions corriger nos dossiers. Merci.

This message and the attached documents may contain privileged or
confidential information that are intended to the addressee only. Any
unauthorized disclosure is strictly prohibited. If you happen to receive
this message by error, please delete it and notify us immediately so that we
may correct our internal records. Thank you.

[email protected] <mailto:yltech%40videotron.ca> 



Reply via email to