OPEN-SOURCE SCRIPT
Actualizado SametCond Optimizer Heatmap [RSI]

SametCond Optimizer Heatmap is a research-focused indicator built to compare multiple SametCond threshold values on the same chart and rank their historical behavior in a compact heatmap-style table.
The script uses the following base signal logic:
After each valid signal, the indicator checks whether price reaches a user-defined target percentage within a maximum number of bars. It then aggregates the results for every SametCond level within the selected range and displays the outcomes in a ranked table.
The table shows:
This tool is intended for parameter research and comparative analysis.
Instead of testing only one SametCond threshold at a time, it helps you evaluate a full threshold range and quickly see which values performed better under the current symbol and timeframe.
How to read the table
Each row represents one SametCond threshold.
The table helps answer questions such as:
Inputs
Notes
This is an analysis and optimization tool, not a complete trading strategy.
The script focuses on signals that successfully reach the defined target within the selected look-ahead window. Because of that, results should be interpreted as comparative research output rather than standalone trading advice.
Performance can vary significantly depending on symbol, timeframe, and market conditions. Use it to narrow down candidate parameter zones, then confirm those findings with your own validation and risk management process.
The script uses the following base signal logic:
- RSI crosses above its RSI moving average
- Daily RSI is below 45
- Optional filter: RSI slope must be positive
After each valid signal, the indicator checks whether price reaches a user-defined target percentage within a maximum number of bars. It then aggregates the results for every SametCond level within the selected range and displays the outcomes in a ranked table.
The table shows:
- signal count
- average bars needed to reach the target
- average profit percentage
- ranking by either speed or profit
- What this indicator is for
This tool is intended for parameter research and comparative analysis.
Instead of testing only one SametCond threshold at a time, it helps you evaluate a full threshold range and quickly see which values performed better under the current symbol and timeframe.
How to read the table
Each row represents one SametCond threshold.
The table helps answer questions such as:
- Which threshold reaches the target faster on average?
- Which threshold produces higher average profit?
- Which setting generates enough signals to be worth further testing?
Inputs
- RSI Length: RSI calculation period
- RSI MA Length: moving average length applied to RSI
- SametCond Min / Max: threshold range to evaluate
- Target %: target move measured after each signal
- Require RSI Slope > 0: optional momentum confirmation
- Max Bars To Target: maximum look-ahead window
- Max Signal History: maximum stored signal count
- Sort By: sort results by average bars or profit %
Notes
This is an analysis and optimization tool, not a complete trading strategy.
The script focuses on signals that successfully reach the defined target within the selected look-ahead window. Because of that, results should be interpreted as comparative research output rather than standalone trading advice.
Performance can vary significantly depending on symbol, timeframe, and market conditions. Use it to narrow down candidate parameter zones, then confirm those findings with your own validation and risk management process.
Notas de prensa
SametCond Optimizer Heatmap is a research-focused indicator built to compare multiple SametCond threshold values on the same chart and rank their historical behavior in a compact heatmap-style table.
The script uses the following base signal logic:
RSI crosses above its RSI moving average
Daily RSI is below 45
Optional filter: RSI slope must be positive
After each valid signal, the indicator checks whether price reaches a user-defined target percentage within a maximum number of bars. It then aggregates the results for every SametCond level within the selected range and displays the outcomes in a ranked table.
The table shows:
signal count
average bars needed to reach the target
average profit percentage
ranking by either speed or profit
What this indicator is for
This tool is intended for parameter research and comparative analysis.
Instead of testing only one SametCond threshold at a time, it helps you evaluate a full threshold range and quickly see which values performed better under the current symbol and timeframe.
How to read the table
Each row represents one SametCond threshold.
The table helps answer questions such as:
Which threshold reaches the target faster on average?
Which threshold produces higher average profit?
Which setting generates enough signals to be worth further testing?
Inputs
RSI Length: RSI calculation period
RSI MA Length: moving average length applied to RSI
SametCond Min / Max: threshold range to evaluate
Target %: target move measured after each signal
Require RSI Slope > 0: optional momentum confirmation
Max Bars To Target: maximum look-ahead window
Max Signal History: maximum stored signal count
Sort By: sort results by average bars or profit %
Notes
This is an analysis and optimization tool, not a complete trading strategy.
The script focuses on signals that successfully reach the defined target within the selected look-ahead window. Because of that, results should be interpreted as comparative research output rather than standalone trading advice.
Performance can vary significantly depending on symbol, timeframe, and market conditions. Use it to narrow down candidate parameter zones, then confirm those findings with your own validation and risk management process.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.