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

Re: [GT] Problem with display_indicator/EMA/revision 599



I've checked my db query and it is returning the data as expected,
using a different symbol won't make any difference.

>From what i've debugged so far there are two different issues here:

1 - The change in revision 599 makes the scripts return all the
available data, where before they would only return 200 items. This
makes the --full flag redundant but i can live with that for now.

2 - The calculate_interval method in EMA fails to return any values if
it can't calculate the first value.


Because the scripts ask for the entire history, and since an EMA
cannot be calculated for the first period of the entire history, it
simply fails to return anything at all.

I remember you and Robert discussing issue #2 on the list some time
ago. I've read those messages this week.  You had mentioned some fix
which involved changing the implementation of calculate_interval in
the Indicators, and that seemed fine to me.  If you have that fix I
think now would be a good time to apply it.