The QMA is a moving average that can be compared to a Jurik one. I did not find a lot of information on it on the web, but it seems to be at the same time, smooth and fast. But I also found it to have considerable overshoot that could be a problem in some case.
Anyway, this code has been translated from a multicharts version by a request on the french forum, so here it is.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
//PRC_Fractional-Bar Quick Moving Average | indicator //08.05.2017 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge // --- settings Len = 50 //period // --- Series = customclose Peak = Len / 3 Num = 0 Denom = 0 for j = 1 to (Len + 1) do if j <= Peak then DataArray = j / Peak else DataArray = (Len + 1 - j) / (Len + 1 - Peak) Num = Num + Series[j - 1] * DataArray Denom = Denom + DataArray endif next if Denom <> 0 then QMA = Num / Denom else QMA = Series endif return qma |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Il manque 2 slash devant len dans le code dur car la variable ne marche pas
bonne journée