Auto Order Block by D. Brigaglia

dadoesploso Mis à jour   
This indicator finds trend following engulfings, and draws order blocks based on the 1st candle's range (the first candle of the engulfing pattern).
It does filter the trend with simple moving averages of 21 and 55 periods, but it doesn't filter for retracements in the trend (you should consider only the order blocks that are coming from engulfings after a retracement)
Notes de version: - Lenght of the orderblocks visual representation extended to 50 periods;
- Rectangles are now based on the candle's body instead of the candle's range;
- Rectangles representing order blocks are now transparent, so the price action that occurs through them is now more visible;
- Color of the rectangle now tells if the trend is generally up or down, filtering the appropriate orderblocks (bullish OBs are blue, bearish are red);

The criteria by which the trend is defined is the sma(21) and sma(55) reciprocal position: if sma21 > sma55 the script considers the actual condition an uptrend. Viceversa it does consider a downtrend situations in which sma55 > sma21. These periods where chosen because I am a fan of Fibonacci numbers and I usually use these two simple moving averages to get an idea of the short-mid term trend direction, however you can set your own periods: just change the numbers in line 10 and 16 of the code.
Notes de version: Hello traders, in the latest version I completely dropped the moving averages and candlestick pattern concepts, using the ATR to estimate sharp price moves. The orderblocks shown are nothing more than the range of small candles that printed just before a sharp move in the opposite direction (suggesting that the institutionals accumulated positions with limit orders in the small candle, while the retail moved the price with market orders).
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 ?