QuantNomad

Parabolic SAR Strategy (on close) [QuantNomad]

Created a Parabolic SAR strategy where price has to close under/above the level before for it to reverse. This way it should be a bit more stable and protect you from false breakouts.
It was impossible to adjust the built-in "sar" function so I implemented PSAR from scratch. So if you're interested in how it's work inside you can check the code and probably adjust to your need if you have a custom modification of PSAR in your mind.
Supprimer des scripts favoris Ajouter aux scripts favoris
My YouTube: https://qntly.com/youtube
My Discord: https://qntly.com/discord
My Telegram Channel: https://qntly.com/tel
My TradingView Essential Course: https://qntly.com/tve
My Pro Indicators: https://qntly.com/proind

Commentaires

hmmm study based on this gives a repaint warning, any reason for that?
Répondre
Is it possible to adjust the script so that the starting point of the new trend is the respective closing price instead of the high/low?
Répondre
why not to use when=crossunder(psar, close) for long (crossover(psar, close) for short ) using built-is sar function ?
Répondre
@pabloses, Because in built-in sar function you have condition included that on touch it will revert. As result your receive both trend up/down levels in same var calculated with "touching" logic. So there is no way to use standard sar function for that.
+1 Répondre
pabloses QuantNomad
@QuantNomad, Thanks, I understand. Your script actually ignores wicks.
Répondre
Great!
Répondre
Accueil Filtre d'actions Filtre Forex Filtre Crypto Calendrier économique Comment ça marche Caractéristiques du graphique Prix Parrainer un ami Règles de conduite Centre d'aide Solutions site web & courtier Widgets Solutions de cartographie Bibliothèque de graphiques allégés Blog & News Twitter
Profil Paramètres du Profil Compte et Facturation Parrainer un ami Mes tickets au support Centre d'aide Idées Publiées Suiveurs Suivi Messages privés dialogue en ligne Se Déconnecter