Topic: Moving average WTF

Hello
I have a 4h strategy with a weekly moving average WTF. All works well in FSB but when I try to use it on FST the moving average is always zero! It works if I change the period to daily. I've already tried to increase the number of bars but it doesn't help. Any ideas?
Thanks
Nuno

Re: Moving average WTF

What's the period and how many bars you have?

Re: Moving average WTF

footon wrote:

What's the period and how many bars you have?

Period around 160 and shift 70 but I tried with 5000 bars to see if it worked.

Re: Moving average WTF

To have MA of 160 on weekly needs 160 bars;
on daily 160*5;
on h4 160*5*6;
on h1 160*5*24;
on m30 160*5*48;
on m15 160*5*96;
on m5 160*5*288;
on m1 160*5*1440.

Pretty self-explanatory, there's your problem (or should I say FST's)...

Re: Moving average WTF

footon wrote:

To have MA of 160 on weekly needs 160 bars;
on daily 160*5;
on h4 160*5*6;
on h1 160*5*24;
on m30 160*5*48;
on m15 160*5*96;
on m5 160*5*288;
on m1 160*5*1440.

Pretty self-explanatory, there's your problem (or should I say FST's)...

I though FST would be able to get the feed from another chart to reduce the number of bars. I think I'll have to find an alternative then.

Re: Moving average WTF

It is a problem! It has been lately on my radar also. When developer is back, I'll bring this to his attention.

In the meantime there could be a couple of workarounds, nothing what a coder can't handle, maybe Ahmed can throw something together until this gets fixed by the developer.

Re: Moving average WTF

In fact I didn't report the problem properly. In FSB the problem also exists. If period < 90 the calculation is correct, otherwise it's not. Given that my timeframe is 4h, anything that requires more than 1800 bars won't work.