This is extension to Adoptive Supertrend Pivots indicator published here:
In this version, we make use of both high time frame and lower time frame pivots for efficient trailing of stops in case of bull run such as BTC. If we take example of BTC, no new pivot lows formed from 25th December. This means, our trailing stop is also stuck at ridiculously low level of 20k whereas BTC has nearly hit high of 35k.
Our approach to solve this is by looking at lower time-frame pivots for deriving our trailing stop-loss if stop-loss is too wide from the close price. If the stop-loss isn't wide and new daily pivot lows are forming every now and then, then this indicator will work same as the earlier version of Pivots based Adoptive Supertrend.
There seems to be issue in calculating lower time-frame Pivots and moving stop based on that while being in higher time-frame. Hence, we need to shift to lower time frame chart while making all the calculations such as ATR are done on higher time-frame.
Hence, if you are looking to trade on daily chart, it is advisable to use this indicator on 1H, 2H or 4H chart while keeping parameter HTFResultion set to 1D
Parameters are explained as below:
HTF Resolution : Main resolution on which we need to apply supertrend calculation based on pivots. ATR and Pivot HTF are calculated on this resolution.
Stop Distance Threshold : This is the minimum stop distance from close price in terms of percentage after which we can look for lower time-frame pivots for calculation of trailing stop. If stop loss keeps less than this percent, then lower time frame pivots are not used for calculating trailing stop loss.
ATR Parameters : We use only higher time-frame ATR. Hence, ATR is calculated based on just one ATR Period for both cases. But, we can chose to have different ATR Multiplier for HTF and LTF. Using slightly higher ATR multiplier for lower time-frame than that of higher time-frame is advisable.
Pivot Lengths : You can use different pivot lengths for higher and lower time-frames. We have removed Left and right pivot lengths for keeping it simple. Both will have same value based on selected pivot length for respective time-frames. Using higher Pivot length for lower time-frame is advisable to avoid frequent trailing.
Ce script est publié en code source fermé et vous pouvez l'utiliser librement. Vous pouvez le préférer pour l'utiliser sur un graphique. Vous ne pouvez pas visualiser ou modifier son code source.
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.