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@xxx> 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
>