OPEN-SOURCE SCRIPT
RJ Trend Engine (Final Version)

Title: RJ Trend Engine (Hybrid Core)
Description:
A Note from the Modifier (Rohit Jadhav)
This indicator is for all retail traders who are looking for a disciplined, rule-based approach to the market. This script began with the excellent open-source work of the original author, aybarsm. I, Rohit Jadhav, have modified and added several powerful features with one main goal: to create a tool that can help fellow traders navigate the market with more confidence.
We know how challenging it can be, especially when emotions like fear and greed take over. Many of us face losses, and everyone deserves access to good tools to succeed. That is why this indicator is published as Open Source for everyone to use, study, and learn from.
This is a community project. If you have suggestions for improvement, please share them. Let's help each other succeed.
Thank you, and happy trading!
Recommended Usage & Settings
IMPORTANT NOTE: The default settings of this indicator have been specifically calibrated and backtested for the Nifty 50 index on a 5-minute timeframe.
While the indicator can be used on any symbol, its performance will vary. Assets with different volatility, such as Bank Nifty, Forex, or individual stocks, will likely require different settings for the PSAR, Supertrend, and ADX to be effective. Users are encouraged to backtest and adjust the parameters to find the optimal settings for the asset they are trading.
Core Components
The "RJ Trend Engine" uses a hybrid core of three indicators that must all agree before a signal is generated in its default mode:
Parabolic SAR (PSAR): Acts as the primary timing and entry trigger.
Supertrend: Serves as the main trend filter.
ADX (Average Directional Index): Functions as a "power" filter to confirm trend strength.
Three Systems in One Indicator
This indicator's true power lies in its flexibility. You can switch between three distinct strategies using the checkboxes in the settings.
1. Balanced Mode (Default - Recommended)
This is the standard, disciplined mode designed for capital protection. It requires a signal from all three core indicators to align perfectly.
How to use: Ensure both "Allow Aggressive Reversal Trades?" and "Use Dynamic (Trailing) Take Profit?" are UNTICKED.
2. Aggressive Reversal Mode (Experimental)
This higher-risk mode is designed to catch sharp, V-shaped reversals. It will generate a signal on a PSAR flip and a strong ADX, even if the Supertrend has not yet confirmed.
How to use: TICK the "Allow Aggressive Reversal Trades?" box.
3. Dynamic Take Profit (Experimental)
This feature changes the exit logic from a fixed target to the live Bollinger Band, which moves with market volatility. This can be useful for highly volatile assets like Bank Nifty.
How to use: TICK the "Use Dynamic (Trailing) Take Profit?" box.
Features
Multi-Mode Strategy: Switch between disciplined and aggressive trading styles.
Flexible Take Profit: Choose between a fixed, calculated TP or a dynamic, trailing TP.
Clear BUY/SELL Signals: Labels appear on the chart when all conditions are met.
Built-in Stop Loss: Automatically calculates an initial Stop Loss based on the ATR.
Customizable Alerts: Fully configured for creating custom alerts for all entry and exit signals.
Disclaimer: This indicator is a tool to assist in your decision-making process. It is not financial advice. All trading involves risk, and you should always use your own judgment and risk management.
Description:
A Note from the Modifier (Rohit Jadhav)
This indicator is for all retail traders who are looking for a disciplined, rule-based approach to the market. This script began with the excellent open-source work of the original author, aybarsm. I, Rohit Jadhav, have modified and added several powerful features with one main goal: to create a tool that can help fellow traders navigate the market with more confidence.
We know how challenging it can be, especially when emotions like fear and greed take over. Many of us face losses, and everyone deserves access to good tools to succeed. That is why this indicator is published as Open Source for everyone to use, study, and learn from.
This is a community project. If you have suggestions for improvement, please share them. Let's help each other succeed.
Thank you, and happy trading!
Recommended Usage & Settings
IMPORTANT NOTE: The default settings of this indicator have been specifically calibrated and backtested for the Nifty 50 index on a 5-minute timeframe.
While the indicator can be used on any symbol, its performance will vary. Assets with different volatility, such as Bank Nifty, Forex, or individual stocks, will likely require different settings for the PSAR, Supertrend, and ADX to be effective. Users are encouraged to backtest and adjust the parameters to find the optimal settings for the asset they are trading.
Core Components
The "RJ Trend Engine" uses a hybrid core of three indicators that must all agree before a signal is generated in its default mode:
Parabolic SAR (PSAR): Acts as the primary timing and entry trigger.
Supertrend: Serves as the main trend filter.
ADX (Average Directional Index): Functions as a "power" filter to confirm trend strength.
Three Systems in One Indicator
This indicator's true power lies in its flexibility. You can switch between three distinct strategies using the checkboxes in the settings.
1. Balanced Mode (Default - Recommended)
This is the standard, disciplined mode designed for capital protection. It requires a signal from all three core indicators to align perfectly.
How to use: Ensure both "Allow Aggressive Reversal Trades?" and "Use Dynamic (Trailing) Take Profit?" are UNTICKED.
2. Aggressive Reversal Mode (Experimental)
This higher-risk mode is designed to catch sharp, V-shaped reversals. It will generate a signal on a PSAR flip and a strong ADX, even if the Supertrend has not yet confirmed.
How to use: TICK the "Allow Aggressive Reversal Trades?" box.
3. Dynamic Take Profit (Experimental)
This feature changes the exit logic from a fixed target to the live Bollinger Band, which moves with market volatility. This can be useful for highly volatile assets like Bank Nifty.
How to use: TICK the "Use Dynamic (Trailing) Take Profit?" box.
Features
Multi-Mode Strategy: Switch between disciplined and aggressive trading styles.
Flexible Take Profit: Choose between a fixed, calculated TP or a dynamic, trailing TP.
Clear BUY/SELL Signals: Labels appear on the chart when all conditions are met.
Built-in Stop Loss: Automatically calculates an initial Stop Loss based on the ATR.
Customizable Alerts: Fully configured for creating custom alerts for all entry and exit signals.
Disclaimer: This indicator is a tool to assist in your decision-making process. It is not financial advice. All trading involves risk, and you should always use your own judgment and risk management.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.