TradingView
rumpypumpydumpy
Jul 26, 2019 7:07 AM

Rumpy's Murrey Math Lines & VWAPs - (pine v4) 

Bitcoin / US Dollar Perpetual Inverse Swap ContractBitMEX

Description

Murrey Math lines based on weekly closes plus VWAP and pine v4 goodies. Options for adjusting label visibility and disabling vwaps individually.

--------------------------------------

If you find it useful please consider a tip/donation :

BTC - 3BMEXEDyWJ58eXUEALYPadbn1wwWKmf6sA


--------------------------------------

With only MMLs :

Release Notes

  • Added fix for use on lower TFs
  • Added option to mark weekly intervals with background color
  • Added weekly close prices to info panel


To use on lower timeframes such as 3m, first go to a higher TF (15m, 1h, etc) and copy down the weekly close prices listed in the info panel.

Then enter the values into the indicator options and enable the manual setting. This will allow you to generate identical Murrey Lines that appear on higher TFs on lower TFs that don't have historical data available far back enough to do the calculations.

It will however ONLY generate the correct lines for the CURRENT week. They will appear across the entire chart, however they are ONLY valid back to the beginning of the current weekly interval (use the indicator option to mark the chart location).

Release Notes

Small tweak so manual closes are plotted and labelled

Release Notes

Added some basic methods to predict future Murrey Lines. Uses the new pine 4 line functions. Under certain conditions it can be accurate.

include current close : will be roughly accurate if current weekly closes near the current close, will be mostly useful near the end of the current week.
previous 3 weeks only : if ranging and weekly is expected to close within the last 3 week's close range
custom : if you have other TA for S/R you could approximate the likely Murrey Lines based on the highest/lowest of the previous 3 weeks and your S/R levels

Comments
Black-Hawk2024
This is an extremly nice indicator. Well done. Can you add alerts for like any alerts ,each time any of the vwaps pivots are toched an alert is triggered?
mauryashivnarayan4
Can you add daily timeframe in Murray math....plz
CryptoArch_
Good work. Well done.
syrinxflunki
Absolutely lovely sir ; published something similar recently, but your Murrey lines are super, can't see them on 3m TF tho.. be a TV thing..
rumpypumpydumpy
@syrinxflunki, yeah, script needs 4 weeks of chart to calc the Murrey lines, looks like when you're on a lower TF like 3m, you can't pull the weekly close with security function call if it's before the start of the available 3m chart, even if it actually exists on the weekly TF. See on the 8m for eg it starts rendering eventually :/

you could add na() conditionals to lines 71 & 72 to ignore the values if they're na, so it uses 2 or 3 weeks instead of 4 if you really want it on lower TFs



rumpypumpydumpy
@syrinxflunki, Updated with a manual work around for lower TFs

syrinxflunki
@rumpypumpydumpy, Thank you !
rumpypumpydumpy
I don't know why the preview squishes up the panels, can be adjusted easily in the options :
More