Joao, from your message I infer you are using a data base to store the market data, not flat files. Can you please try a flat file just to make sure that works for you. To the points below... 1. Your point is a little confusing. Are you talking about how much data is fetched from storage, or how many data items the script examines? Certainly the latter did not change. The default is to look at the last 200, --full tells to look at all items. As for how much data is retrieved from storage, the flag is --max-loaded-items. 2. If the calculate_interval cannot compute a first value, it will return an empty graph. That is not changed also. If your data is too short for computing the first step of EMA, which is the n-day SMA usually, you will not get any data. It would be good to provide me with the data you test, so I can test exactly the same... Th. ________________________________ From: João Costa [mailto:joaocosta AT zonalivre.org] Sent: Fri 7/25/2008 6:41 AM To: devel AT geniustrader.org Subject: 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.
<<winmail.dat>>