OPEN-SOURCE SCRIPT
업데이트됨 B-Xtrender By Neal inspired from @Puppytherapy

Thanks to @puppytherapy for creating the original B-Xtrender indicator, available at this link: B-Xtrender by QuantTherapy
I played around the code to have entry and exit condition. The B-Xtrender QuantTherapy
indicator is a momentum-based tool designed to help traders identify potential trade opportunities by tracking shifts in market momentum. Using a smoothed momentum oscillator, it detects changes in trend direction and provides clear signals for entry and exit points.
Features
Inputs
Entry and Exit Logic
Visualization
Default Style
Use Cases
This indicator doesn't indicate that it will work perfectly. More updates on the way.
I played around the code to have entry and exit condition. The B-Xtrender QuantTherapy
indicator is a momentum-based tool designed to help traders identify potential trade opportunities by tracking shifts in market momentum. Using a smoothed momentum oscillator, it detects changes in trend direction and provides clear signals for entry and exit points.
Features
- Momentum Detection:
Tracks market momentum using the BX-Trender Oscillator.
Green bars indicate bullish momentum, while red bars indicate bearish momentum.
Lighter shades of green/red reflect weakening momentum. - Entry and Exit Signals:Entry Condition: A long trade is triggered when the oscillator changes from red to green.
Exit Condition: A long trade exit is triggered when the oscillator changes from green to red. - Dynamic PnL Calculation:
Automatically calculates profit or loss in percentage (%) when a trade is exited.
Positive PnL values are prefixed with `+`, and negative values are shown as `-`. - Clear Visualization:
Bar chart-style oscillator in a separate pane for better trend visualization.
Trade labels on the main price chart for clear entry and exit points.
Inputs
- Short-Term Momentum Parameters:Short - L1: Length of the first EMA for short-term momentum calculations.
Short - L2: Length of the second EMA for short-term momentum calculations.
Short - L3: RSI smoothing period applied to the short-term momentum. - Long-Term Momentum Parameters:
- Long - L1: Length of the EMA for long-term momentum calculations.
- Long - L2: RSI smoothing period applied to the long-term momentum.
- Long - L1: Length of the EMA for long-term momentum calculations.
Entry and Exit Logic
- Entry Condition:
A long trade is triggered when:
The BX-Trender Oscillator changes from red to green.
This shift indicates bullish momentum. - Exit Condition:
A long trade exit is triggered when:
The BX-Trender Oscillator changes from green to red.
This shift indicates a loss of bullish momentum or the start of bearish momentum. - PnL Calculation:
When exiting a trade, the indicator calculates the profit or loss as a percentage of the entry price.- Example:
- A profit is displayed as +5.67%.
- A loss is displayed as -3.21%.
- A profit is displayed as +5.67%.
- Example:
Visualization
- Oscillator Bars:Green Bars: Represent increasing bullish momentum.
Light Green Bars: Represent weakening bullish momentum.
Red Bars: Represent increasing bearish momentum.
Light Red Bars: Represent weakening bearish momentum.
Just make sure that you checked off the B-Xtrend oscillator off from the style so chart can be active - Trade Labels:Entry Labels: Displayed below the candle with the text Entry, long [price].
Exit Labels: Displayed above the candle with the text Exit [+/-PnL%]. - Bar Chart Pane:
The oscillator is displayed in a separate pane for clear trend visualization.
Default Style
- Oscillator Colors:Green for bullish momentum.
Red for bearish momentum.
Light green and light red for weaker momentum. - Trade Labels:
- Green labels for entries.
- Red labels for exits, with percentage PnL displayed.
- Green labels for entries.
Use Cases
- Momentum-Based Entries:
Detects shifts in momentum from bearish to bullish for precise trade entry points. - Trend Reversal Detection:
Identifies when bullish momentum weakens, signaling an exit opportunity. - Visual Simplicity:
Offers an intuitive way to track trends with its bar chart-style oscillator and clear trade labels.
This indicator doesn't indicate that it will work perfectly. More updates on the way.
릴리즈 노트
Just updated the name 릴리즈 노트
Revamped the entry and exit conditions to hitch a ride on the smoother line, ditching the old sluggish histogram method. Now this bad boy reacts quicker than a caffeine-fueled trader, jumping into trades faster than your finger can hit the "buy" button. Testing proved it's not just faster—it's like trading on turbo mode compared to the original snail-paced oscillator-based approach. 🚀릴리즈 노트
Updated the logic to make sure it is visually appealing so that it can only show the last 5 trades 릴리즈 노트
Added the alert condition 오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.