RafaelZioni

lazy weis MTF

RafaelZioni Updated   
So here was my problem and the way we fix it . We all know lazy bear weis model of volume . if we make it to MTF then we use security and it will repaint all over . since its hard to convert it to version 3 in order to fix the problem ,then it was impossible so far to make it a good MTF model.
By changing the length to time function we do not need to use the security and by this we can create an MTF model with no repaint ( i hope).

Now in setting you see int2 (now its on 60 min) , this you can change to any min value that you want. TV will consider it as length and not as time and by this way you can manipulate it to be an MTF model of your choosing . The int1 is minimum min always need to be smaller then int2

lets say you want 5 min chart and on 10 min time frame. so set it as int1=1 and int=15. if you want 45 min frame on the 5 min so set int 2 to 45
if you want it to be daily just set it to 1440 ,
I hope you like this solution
Release Notes:
Ok I add addition of smooth length so you can calibrate the enter and exit better
I think the model need also take profit (not in script)
so far it seems not to repaint .
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?