# RedK Compound Ratio Moving Average (CoRa_Wave)

Compound Ratio Weighted Average (CoRa_Wave) is a moving average where the weights increase in a “logarithmically linear” way – from the furthest point in the data to the current point – the formula to calculate these weights work in a similar way to how “compound ratio” works – you start with an initial amount, then add a consistent “ratio of the cumulative prior sum” each period until you reach the end amount. The result is, the “step ratio” between the weights is consistent – This is not the case with linear-weights moving average ( WMA ), or EMA

– for example, if you consider a Weighted Moving Average ( WMA ) of length 5, the weights will be (from the furthest point towards the most current) 1, 2, 3, 4, 5 — we can see that the ratio between these weights are inconsistent. in fact, the ratio between the 2 furthest points is 2:1, but the ratio between the most recent points is 5:4 — the ratio is inconsistent, and in fact, more recent points are not getting the best weights they should/can get to counter-act the lag effect. Using the Compound ratio approach addresses that point.

a key advantage here is that we can significantly reduce the “tail weight” – which is “relatively” large in other MAs and would be main cause for lag – giving more weights to the most recent data points – and in a way that is consistent, reliable and easy to “code”

– the outcome is, a moving average line that suffers very little lag regardless of the length, and that can be relied on to track the price movements and swings closely.

other features:
===============
– An accelerator, or multiplier, has been added to further increase the “aggressiveness” of the moving average line, giving even more weights to the more recent points – the multiplier will have more effect between 1 and 5, then will have a diminishing effect after that – note that a multiplier of 0 (which effectively causes a comp. ratio of 0 to be applied) will produce a Simple Moving Average line 🙂

– We also added the ability to use an “automatic smoothing” mechanism, that user can over-ride by manually choosing how much smoothing is used. This gives more flexibility to how we can leverage this Moving Average in our charting.

– User can also select the Resolution and Source price for the CoRa_Wave. by default, they will be set to “same as chart” and hlc3

(description from author RedKTrader, all credits go to him).

Risk disclosure:

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 : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

1. • 71 days ago #

Bel outil si on ne se tape pas sur les doigts avec !
Comment ajoute-on une image avec le commentaire ?

Register or

#### Likes

Related users ' posts
Nicolas
2 months ago
3
Indicators
Ein sehr schöner Indikator, vielen Dank. Wenn ich den Indikator importiere und starte hat d...
das ist in der Tat normal, Sie müssen die Auf- und Abwärtsfarbe direkt im Parameterfenster d...
Bonjour Nicolas, merci pour cette merveille, je l'utilise en compl2ment du "magical buy sell...
Nicolas
6 months ago
3
Indicators
Hi Nicolas, thaks for your great work here, I need a scanner for the swedish OMX when ma...
Yes, sure please open a new topic in the ProScreener forum section, thank you.
Hello! Thanks for post your indicators. I'd like you to let me know how to draw lines for ...
Nicolas
8 months ago
3
Indicators
Hi Nicolas! I can´t install this indicator. it installs in a separate window not as an av...
No consigo instalarlo en el precio en PRL-version 10
Nicolas
2 years ago
2
Indicators
hi nicolas this indicator have 2 wrong borderline and islalastbarupdate. thank you can you h...
That'"s because you are not using PRT v11? Just remove lines 59 to 62
JC_Bywan
2 years ago
v11
3
Indicators
Bonjour Noobywan, si je comprends bien l'utilisation de ce code que je trouve particulièr...
Bonjour, quand la question a été posée dans le forum à celui qui avait fait la requête en am...
This Code draws only a retangle if the condition has been confirmed and NOT before (in that ...
robertogozzi
2 years ago
0
Indicators
juanj
2 years ago
v10.3
0
Indicators
Nicolas
2 years ago
v10.3
3
Indicators
"style(line,2)" C'è una guida ai parametri che si possono modificare ? Tipo stile della lin...
https://www.prorealcode.com/programming-with-prorealtime/
Tanks
2 years ago
v10.3
3
Indicators
If you need to use it in PRT v11 take a look at this topic: https://www.prorealcode.com/top...
Hi Daniele Thank you for the indicator, it looks very good. However, I have a problem so...
Anonymous Thanks very much for sharing, look forward to testing this idea out.
3 years ago
v10.3
2
Indicators
How do i attach this indicator to my mt5 platform?
You can't! All indicators here are for ProRealTime trading platform: https://www.prorealtime...
Nicolas
3 years ago
v11
12
Indicators
c'est exactement ce que je fais entre les lignes 58 et 64 pour pouvoir tracer la ligne complète
Nicolas, Ces matrices sont-elles des vecteurs unidimensionnels ou multidimensionnels? Depu...
Bonjour Nicolas et RicLg, Merci Nicolas pour cet indicateur intéressant et merci RicLg pour...
3 years ago
0
Indicators
Erbsenzaehler
3 years ago
v11
4
Indicators
Il faut l'ajouter sur le prix avec l'icône de la clé situé en haut à gauche du graphique du ...
merci de ta réponse
bonjour c est bon il fonctionne parfaitement merci beaucoup
Dow Jones
3 years ago
v10.3
0
Indicators
Zigo
3 years ago
v10.3
0
Indicators
Jan
3 years ago
93
Strategies
Hi There.. It seems the TSL stop loss is not working.. it does not respond is that correct?
Per lasciare che la strategia venga eseguita (dopo aver importato il file): Basta eliminare...
Hello Jan, hello everyone, Thanks Jan for this strategy! Since 2020, have any of you found a...
Zigo
3 years ago
v10.3
4
Indicators
Normaly it do work in version 11.
Hello to all, please does a coder can bring the indication of the price level on the chart o...
@bertrandpinoy add between line 50 and 51 : drawtext("#dnh#",barindex,low-2.618*AverageTrue...
phoentzs
3 years ago
6
Strategies
hey my friends, thank you for this great code. my problem is he make no trade open. backtest...
Can i put a Action that my start contract is smaller than 1 ? 0.3 or 0.5 ? In wich Position...
I wrote the code for M15 back then and also variants in H1 and M1. Everything works so far....
Nicolas
4 years ago
v10.3
8
Indicators
Hi Nicolas. Happy New Year. Can you please program me several MACD divergence screeners ...
Hello Nicolas, would it be possible to convert the Cloud to Pascal language? Thank you.
i want it in MT4
aglit996
4 years ago
1
Indicators
Bonsoir - Voici l'erreur qui est signalée lorsque je souhaite utiliser cet indicateur : il...

Top