OPEN-SOURCE SCRIPT

Mbah Mul Reversal

Inputs:

showCRB1 and showCRB2 are boolean inputs to toggle the display of CRB1 (Bearish Reversal) and CRB2 (Bullish Reversal) signals.
numCandles is an integer input to specify the number of candles to consider.
Historical Data:

The script retrieves the previous candle's open, close, high, and low prices using request.security.
CRB1 (Bearish Reversal):

Checks if the previous candle was bullish (close_prev > open_prev).
Checks if the current high is higher than the previous high.
Checks if the current close is within a specific range or lower than the previous open.
If all conditions are met, it places a "SELL" label above the current high.
CRB2 (Bullish Reversal):

Checks if the previous candle was bearish (close_prev < open_prev).
Checks if the current low is lower than the previous low.
Checks if the current close is within a specific range or higher than the previous open.
If all conditions are met, it places a "BUY" label below the current low.
Bill Williams IndicatorsCandlestick analysisChart patterns

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明