OPEN-SOURCE SCRIPT

Murreys Math Lines Box OR Ratio Pivots

Actualizado
I'm publishing my second script, though nothing extraordinary, I believe there is user group for Murry Math indies and the only "proper one" (According to my usage) I found was of RicardoSantos, here is the link :
[RS]Murrey's Math Lines Box


He developed that script in 2014 and it is in need of update to Pine V4 and I'm doing the needful as its user.

All the updates from my end are listed below:
1. Updated to Pine V4
2. Automatic octave selection
3. In auto mode one can switch octave
4. This script is color coded with intention of use on dark theme, one can change the colors to use it on white background with simple few clicks as pinelines have been used

Other thing I want to add is that usage of this is not very clear to many users, so I'll do little explaining here;
Lets start with what is Octave? Octave is basically distance between square of two whole numbers, this is hard-fast method to calculate, Murry has made it far more complicated to use practically. In mathematical formula terms it could be something like this for script trading at 11890 (CMP)
Step 1: Square Root of CMP i.e Square Root of 11890 = 109.041 = Rounded to 109

Step 2: You can either take one whole number higher or lower than 109, which is 108 or 110. We will take 108

Step 3: Square of 108 = 11664 and Square of 109 = 11881

Step 4: Octave => Distance between (Lowlevel) 11664 and (Higherlevel) 11881

I've automated it so you don't need to calculate, but there is also manual entry possible if you want to calculate octaves yourself, there are different ways to calculate and some like to just take High and Low's of the day or week or month, whatever you like. When I used it I did it strictly this way, so automation is based on it. This is very subjective matter so don't ask to change the calculation of this, if I started doing that every second person would ask me to modify it to different calculation..and thats...just not possible to do.

This is output for calculation we just did above
imagen

This is octave shift option (Which basically shifts to next whole number square in above calculation)
imagen

Normal nomenclature on octaves and important color codes

+2/8: Extreme overbought = Blue Color and solid line
+1/8: OverBought
8/8: Hardest line to rise above (overbought) = White Color and solid line
7/8: Fast reverse line (weak)
6/8: Pivot reverse line = Yellow Color and solid line
5/8: Upper trading range
----------------------------------------
4/8: Major reversal line = Green Color and solid line
----------------------------------------
3/8: Lower trading range
2/8: Pivot reverse line = Blue Color and solid line
1/8: Fast reverse line (weak)
0/8: Hardest line to fall below (oversold) = White Color and solid line
-1/8: Oversold
-2/8: Extreme Oversold = Yellow Color and solid line

Other lines that I've not mentioned color codes for are minor and are usually plotted in dotted format.

Resources on complete technique to trade and importance of levels (highly recommended to read carefully before trading), if you don't know how to get this for free don't worry you can just google Murrey math and you will find it somewhere, its just that it would be in little scattered manner.
scribd.com/doc/77471173/Murrey-Math-Lessons-Complete

Enjoy!
Notas de prensa
Update : This was a code from long long time ago and pine functionality has changed so many of the users are getting error related to max_bars_back referencing length. To avoid such a possible problem all together, I've replaced line.new function with plot function.



This is an opensource code, so I've left the editing to your choice in the plot function, change it as you wish to use it.

Regards!
BOXmurreymurreymathmurreymathlinesoctavepivotPivot PointsratioratiopivotsTrend Analysis

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?


También en:

Exención de responsabilidad