PureBytes Links
Trading Reference Links
|
Typed to fast. Should have said C = H = L, and V = 0;
--- In amibroker@xxxxxxxxxxxxxxx, "Bruce" <brucer@xxx> wrote:
>
> Just checking in and might be able to point down a productive path.
>
> Guideline - when you get an answer that ends up empty, is null, etc., then wrap the calculation in a NZ() function to see if that is the problem.
>
> In your example, consider what happens if C = H = L.
>
> III = (2*C-H-L)/(H-L)*V;
> III = Sum(III,21);
>
> The bar that has C = H = L will have III set to 0/0 which is undefined. So, the Sum() has a effective null in the series which propagates to everything after that. Make it -
>
> III = Nz( (2*C-H-L)/(H-L)*V );
>
> - BruceR
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "NW Trader" <ta4charts@> wrote:
> >
> > Hi Mi,
> >
> > Graph0 is old (very old) code, retained for backwards compatibility. If used you must also use other statements with it. The Plot statement incorporates all necessary arguments and should be used. Try:
> >
> > Plot(III, "III Indicator), colorblue, styleline, 0,0,0,0);
> >
> > Should plot now (unless your background is blue, in which case change the colorblue to coloryellow).
> >
> > Peace and Justice --- Patrick
> > ----- Original Message -----
> > From: Mi
> > To: amibroker@xxxxxxxxxxxxxxx
> > Sent: Wednesday, January 27, 2010 1:34 PM
> > Subject: [amibroker] Re: SUM(???????????)
> >
> >
> > Hi Patrick
> >
> > thanks for your answer, here is the whole code
> >
> > III = Sum((2*C-H-L)/(H-L)*V,21);
> > Graph0=III;
> >
> > that's all, very simple and O, H, L, C and V isn't 0. So I have no more idea what to do.
> >
> > Regards
> >
> > Mi
> >
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "NW Trader" <ta4charts@> wrote:
> > >
> > > Hi Mi,
> > >
> > > In your first statement, several possible reasons could cause a value of 0. If your data has a 0 for the C, H, L or V then you are multiplying by 0 which will return 0. If H equals L then H-L will equal 0.
> > >
> > > When I code your first line and apply it randomly to stocks in my database, I do not get 0. Are you using Forex or some data that carries out to 4 decimal places? Have you set AB to display data at 4 decimal places (Tools -> Miscellaneous )?
> > >
> > > Maybe provide the entire code and something else will suggest a solution.
> > >
> > > Peace and Justice --- Patrick
> > > ----- Original Message -----
> > > From: Mi
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Sent: Wednesday, January 27, 2010 11:50 AM
> > > Subject: [amibroker] SUM(???????????)
> > >
> > >
> > > Hi all,
> > >
> > > III = Sum((2*C-H-L)/(H-L)*V,21);
> > >
> > > Please can anybody tell me why III is {EMPTY}
> > > I tried already this doesn't worked at all
> > > III = (2*C-H-L)/(H-L)*V;
> > > III = Sum(III,21);
> > >
> > >
> > > Thanks for your help
> > >
> > >
> > >
> > >
> > > ------------------------------------
> > >
> > > **** IMPORTANT PLEASE READ ****
> > > This group is for the discussion between users only.
> > > This is *NOT* technical support channel.
> > >
> > > TO GET TECHNICAL SUPPORT send an e-mail directly to
> > > SUPPORT {at} amibroker.com
> > >
> > > TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> > > http://www.amibroker.com/feedback/
> > > (submissions sent via other channels won't be considered)
> > >
> > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > > http://www.amibroker.com/devlog/
> > >
> > > Yahoo! Groups Links
> > >
> >
> >
> >
> >
> > ------------------------------------
> >
> > **** IMPORTANT PLEASE READ ****
> > This group is for the discussion between users only.
> > This is *NOT* technical support channel.
> >
> > TO GET TECHNICAL SUPPORT send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> > http://www.amibroker.com/feedback/
> > (submissions sent via other channels won't be considered)
> >
> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> >
> > Yahoo! Groups Links
> >
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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:
amibroker-digest@xxxxxxxxxxxxxxx
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/
|