INVITE-ONLY SCRIPT
已更新 LuxAlgo - Backtester (S&O)

The S&O Backtester is an innovative strategy script that encompasses features + optimization methods from our Signals & Overlays™ toolkit and combines them into one easy-to-use script for backtesting the most detailed trading strategies possible.
Our Signals & Overlays™ toolkit is notorious for its signal optimization methods such as the 'Optimal Sensitivity' displayed in its dashboard which provides optimization backtesting of the Sensitivity parameter for the Confirmation & Contrarian Signals.
This strategy script allows even more detailed & precise backtests than anything available previously in the Signals & Overlays™ toolkit; including External Source inputs allowing users to use any indicator including our other paid toolkits for take profit & stop loss customization to develop strategies, along with 10+ pre-built filters directly Signals & Overlays™' features.
🔶 Features
🔶 Settings
🔶 Usage
Backtests are not necessarily indicative of future results, although a trader may want to use a strategy script to have a deeper understanding of how their strategy responds to varying market conditions, or to use as a tool for identifying possible flaws in a strategy that could potentially be indicative of good or bad performance in the future.
A strategy script can also be useful in terms of it's ability to generate more complete & configurable alerts, giving users the option to integrate with external processes.
In the chart below we are using default settings and built-in optimization parameters to generate the highest win rate.

Results like the above will vary & finding a strategy with a high win rate does not necessarily mean it will persist into the future, however, some indications of a well-optimized strategy are:
In the chart below we are using the Trend Catcher feature from Signals & Overlays™ as a filter for standard Confirmation Signals + exits on a higher timeframe.
By filtering bullish signals only when the Trend Catcher is bullish, as well as bearish signals for when the Trend Catcher is bearish, we have a highly profitable strategy created directly from our flagship features.

While the Signals & Overlays features being used as built-in filters can generate interesting backtests, the provided External Sources can allow for even more creativity when creating strategies. This feature allows you to use many indicators from TradingView as filters or to trigger take-profit/stop-loss events, even if they aren't from LuxAlgo.
The chart below shows the HyperWave Oscillator from our Oscillator Matrix™ being used for take-profit exit conditions, exiting a long position on a profit when crossing 80, and exiting a short position when crossing 20.

🔶 Counter Trade Mode
Our thesis has always firmly remained to use Confirmation Signals within Signals & Overlays™ as a supportive tool to find trends & use as extra confirmation within strategies.
We included the counter-trade mode as a logical way to use the Confirmation signals as direct entries for longs & shorts within more contrarian trading strategies. Many traders can relate to using a trend-following indicator and having the market not respect its conditions for entries.
This mode directly benefits a trader who is aware that market conditions are generally not-so-perfect trends all the time. Acknowledging this, allows the user to use this to their advantage by introducing countertrend following conditions as direct entries, which tend to perform very well in ranging markets.
The big downfall of using counter-trade mode is the potential for very large max-drawdowns during trending market conditions. We suggest for making a strategy to consider introducing stop-loss conditions that can efficiently minimize max-drawdowns during the process of backtesting your creations.
Sensitivity Optimization
Within the Signals & Overlays™ toolkit, we allow users to adjust the Confirmation Signals with a Sensitivity parameter.
We believe the Sensitivity paramter is the most realistic way to generate the most actionable Confirmation Signals that can navigate various market conditions, and the Confirmation Signals algorithm was designed specifically with this in mind.
This script takes this parameter and backtests it internally to generate the most profitable value to display on the dashboard located in the top right of the chart, as well as an optimization table if users enable it to visualize it's backtesting.
In the image below, we can see the optimization table showing permutations of settings within the user-selected Sensitivity range.

The suggested best setting is given at the current time for the backtesting window that's customizable within the indicator. Optimized settings for technical indicators are not indicative of future results and the best settings are highly likely / guaranteed to change over time.
Optimizing signal settings has become a popular activity amongst technical analysts, however, the real-time beneficial applications of optimizing settings are limited & best described as complicated (even with forward testing).
🔶 Strategy Properties (Important)
We strongly recommend all users to ensure they adjust the Properties within the script settings to be in line with their accounts & trading platforms of choice to ensure results from strategies built are realistic.
🔶 How to access
You can see the Author's Instructions below to learn how to get access on our website.
Our Signals & Overlays™ toolkit is notorious for its signal optimization methods such as the 'Optimal Sensitivity' displayed in its dashboard which provides optimization backtesting of the Sensitivity parameter for the Confirmation & Contrarian Signals.
This strategy script allows even more detailed & precise backtests than anything available previously in the Signals & Overlays™ toolkit; including External Source inputs allowing users to use any indicator including our other paid toolkits for take profit & stop loss customization to develop strategies, along with 10+ pre-built filters directly Signals & Overlays™' features.
🔶 Features
- Full Sensitivity optimization within the dashboard to find the Best Win rates or Best Profits.
- Counter Trade Mode to reverse signals in undesirable market conditions (may introduce higher drawdowns)
- Built-in filters for Confirmation Signals w/ Indicator Overlays from Signals & Overlays™.
- Built-in Confirmation exit points are available within the settings & on by default.
- External Source Input to filter signals or set custom Take Profits & Stop Losses.
- Optimization Matrix dashboard option showing all possible permutations of Sensitivity.
- Option to Maximize for Winrate or Best Profit.
🔶 Settings
- Sensitivity signal optimizations for the Confirmation Signals algorithm
- Buy & Sell conditions filters with Indicator Overlays & External Source
- Take Profit exit signals option
- External Source for Take Profit & Stop Loss
- Sensitivity ranges
- Backtest window default at 2,000 bars
- External source
- Dashboard locations
🔶 Usage
Backtests are not necessarily indicative of future results, although a trader may want to use a strategy script to have a deeper understanding of how their strategy responds to varying market conditions, or to use as a tool for identifying possible flaws in a strategy that could potentially be indicative of good or bad performance in the future.
A strategy script can also be useful in terms of it's ability to generate more complete & configurable alerts, giving users the option to integrate with external processes.
In the chart below we are using default settings and built-in optimization parameters to generate the highest win rate.
Results like the above will vary & finding a strategy with a high win rate does not necessarily mean it will persist into the future, however, some indications of a well-optimized strategy are:
- A high number of closed trades (100+) with a consistently green equity curve
- An equity curve that outperforms buy & hold
- A low % max drawdown compared to the Net Profit %.
- Profit factor around 1.5 or above
In the chart below we are using the Trend Catcher feature from Signals & Overlays™ as a filter for standard Confirmation Signals + exits on a higher timeframe.
By filtering bullish signals only when the Trend Catcher is bullish, as well as bearish signals for when the Trend Catcher is bearish, we have a highly profitable strategy created directly from our flagship features.
While the Signals & Overlays features being used as built-in filters can generate interesting backtests, the provided External Sources can allow for even more creativity when creating strategies. This feature allows you to use many indicators from TradingView as filters or to trigger take-profit/stop-loss events, even if they aren't from LuxAlgo.
The chart below shows the HyperWave Oscillator from our Oscillator Matrix™ being used for take-profit exit conditions, exiting a long position on a profit when crossing 80, and exiting a short position when crossing 20.
🔶 Counter Trade Mode
Our thesis has always firmly remained to use Confirmation Signals within Signals & Overlays™ as a supportive tool to find trends & use as extra confirmation within strategies.
We included the counter-trade mode as a logical way to use the Confirmation signals as direct entries for longs & shorts within more contrarian trading strategies. Many traders can relate to using a trend-following indicator and having the market not respect its conditions for entries.
This mode directly benefits a trader who is aware that market conditions are generally not-so-perfect trends all the time. Acknowledging this, allows the user to use this to their advantage by introducing countertrend following conditions as direct entries, which tend to perform very well in ranging markets.
The big downfall of using counter-trade mode is the potential for very large max-drawdowns during trending market conditions. We suggest for making a strategy to consider introducing stop-loss conditions that can efficiently minimize max-drawdowns during the process of backtesting your creations.
Sensitivity Optimization
Within the Signals & Overlays™ toolkit, we allow users to adjust the Confirmation Signals with a Sensitivity parameter.
We believe the Sensitivity paramter is the most realistic way to generate the most actionable Confirmation Signals that can navigate various market conditions, and the Confirmation Signals algorithm was designed specifically with this in mind.
This script takes this parameter and backtests it internally to generate the most profitable value to display on the dashboard located in the top right of the chart, as well as an optimization table if users enable it to visualize it's backtesting.
In the image below, we can see the optimization table showing permutations of settings within the user-selected Sensitivity range.
The suggested best setting is given at the current time for the backtesting window that's customizable within the indicator. Optimized settings for technical indicators are not indicative of future results and the best settings are highly likely / guaranteed to change over time.
Optimizing signal settings has become a popular activity amongst technical analysts, however, the real-time beneficial applications of optimizing settings are limited & best described as complicated (even with forward testing).
🔶 Strategy Properties (Important)
We strongly recommend all users to ensure they adjust the Properties within the script settings to be in line with their accounts & trading platforms of choice to ensure results from strategies built are realistic.
🔶 How to access
You can see the Author's Instructions below to learn how to get access on our website.
發行說明
- Added the ability to place take profits and stop loss orders- New take profit/stop loss alert
- Added the ability to disable the optimisation dashboard, effectively disabling the optimiser allowing for faster computations
- Fixed a bug causing using external sources as filter to discard other filter conditions
- Fixed a bug causing certain exit alerts to not trigger
- Fixed a bug causing the optimization dashboard to not update on some occasions
- Minor changes
發行說明
ChangedChanged signal algorithm
Users can now disable exit on an opposite signal.
Minor changes
Fixed
Fixed trend catcher filter inconsistencies
Fixed sell stop loss alert message not returning correct message.
發行說明
LuxAlgo Premium Backtesting System BETA v2.1Added
- Added new session filter
- Users can now display take profits/stop losses levels
Changed
- Changed alert system based on order fills and placeholders
Fixed
- Fixed built-in exits generating losses when using filters
發行說明
Fixed incorrect behavior of session filter for short entries.發行說明
- Added new external source filter condition- Exit Buy/Sell TP/SL can now use multiple external sources
發行說明
- Fixed tp/sl levels adjusting with no triggered trade.- Fixed alert on short tp/sl returning wrong tp/sl values.
- Improved Optimal Sensitivity when using take profits/stop losses.
- Added warmup period to improve Optimal Sensitivity results.
發行說明
Minor Changes發行說明
- Fixed an error affecting script loading issue發行說明
- Added ability to use entire historical data for backtesting- New AI classifier filter
- New placeholders for exit tp/sl
- More changes
發行說明
New in version 1.1:Added ability to backtest signals using autopilot algorithm. Users can now set take profits/stop losses using ticks away from the price preceding an entry. The entry price is now visible. New styling options.
發行說明
New in version 1.2. Added Automated take profit/stop loss placement. Added more condition operators for exit take profit/stop loss.發行說明
Added- New advanced optimization dashboard
- Added ability to optimize profit factor and maximum drawdown
- New trailing stop loss
- Added ability to backtest contrarian signals
- Added Reversal Zones conditions
- Added ability to specify if market orders can be opened only if there are no existing positions
- Added ability to use price placeholders in the numerical input field of the second external source setting
- New {prefix} placeholder
Changed
- Changed main backtesting logic, now allowing to use conditions from overlays to trigger entries
- {ticker} placeholder will no longer return a symbol prefix
- Minor changes
Fixed
- Fixed previous take profit/stop loss values being returned on a new entry alert message
- Fixed wrong messages being returned in certain actions taken by the strategy
Removed
- Removed "Auto" take profits/stop losses
發行說明
- Fixed an issue preventing the backtesting window toggle from working發行說明
- Fixed AI classifier model not classifying sell signals- Adjusted initialization to allow the same signal generation on the first data points compared to V1
- Trailing stop loss is now initially set on the entry price
- Dashboard will now be indicating when the optimizer is not available
- Minor changes
發行說明
- Overlays can now have their settings changed- Updated Trend Tracer algorithm
- Minor changes
發行說明
- Added ability to backtest a time window specified using dates- Added ability to partially exit trades
- New "Potential Ratio (φ)" statistic
發行說明
Added new Long/Short "Time Exits". Fixed wrong behavior in the optimizer for successive long/shorts positions. Minor changes發行說明
- New trade based price forecasting feature發行說明
Trade based forecasts will no longer disappear after a trade is exited發行說明
- Added forecast method for setting take profits. This method will use user set percentiles of forecasts as take profits levels- Added "Step Up/Down" conditions for "Neo Cloud"
- Forecasts data tracking will now ignore exits in a strategy.
發行說明
- Added one additional external condition to the long/short entry conditions- Minor changes
發行說明
- Added ability to prevent simultaneous trades from triggering at the same time發行說明
- Fixed issue with reversal zones conditions preventing other conditions of being applied發行說明
- Fixed short exit time using exit long message 發行說明
- Added Confirmation/Contrarian Uptrend/Downtrend conditions- Renamed Smart Trail conditions
- Minor changes
僅限邀請腳本
只有經作者授權的使用者才能訪問此腳本,且通常需付費。您可以將此腳本加入收藏,但需先向作者申請並獲得許可後才能使用 — 點擊此處了解更多。如需更多詳情,請依照作者說明或直接聯繫LuxAlgo。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Get instant access in the Ultimate Plan on https://luxalgo.com/backtesting-system
提醒:在請求訪問權限之前,請閱讀僅限邀請腳本指南。
Get access to our exclusive tools: luxalgo.com
Join our 150k+ community: discord.gg/lux
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Join our 150k+ community: discord.gg/lux
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
僅限邀請腳本
只有經作者授權的使用者才能訪問此腳本,且通常需付費。您可以將此腳本加入收藏,但需先向作者申請並獲得許可後才能使用 — 點擊此處了解更多。如需更多詳情,請依照作者說明或直接聯繫LuxAlgo。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Get instant access in the Ultimate Plan on https://luxalgo.com/backtesting-system
提醒:在請求訪問權限之前,請閱讀僅限邀請腳本指南。
Get access to our exclusive tools: luxalgo.com
Join our 150k+ community: discord.gg/lux
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Join our 150k+ community: discord.gg/lux
All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。