RafaelZioni

lazy weis MTF

RafaelZioni Mis à jour   
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
Notes de version:
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 .
Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?