Extreme Scalping
Oct 8, 2019

The Extreme Scalping tool provides a high-frequency trading framework based on linear regression deviations to identify short-term mean reversion opportunities.
Usage
The strategy identifies potential entry points when the price deviates significantly from a projected linear regression line. It is designed for fast-paced market environments where traders seek to capture small price movements (pips/ticks).
- Long Entry: Triggered when the current closing price is below the forecasted linear regression value minus a specified gap.
- Short Entry: Triggered when the current closing price is above the forecasted linear regression value plus a specified gap.
- Directional Filtering: Users can restrict the script to only take long positions or only take short positions depending on their bias or higher time frame trends.
- Exit Logic: The script utilizes fixed Take Profit and Stop Loss values, which are essential for managing the high turnover typical of scalping strategies.
Details
The script utilizes a linear regression calculation (ta.linreg) to estimate where the price "should" be based on a specific lookback period and offset. By comparing the actual price to this theoretical value, it calculates a "gap." When the price exceeds this gap, it assumes the price is overextended and will revert toward the regression line.
Because of the high frequency of trades, users are advised to manage their backtesting window carefully using the built-in date filters to avoid script calculation limits on lower time frames like the 1-minute chart.
Settings
General Settings
- Source: The price data used for the linear regression calculation (e.g., Close).
- Length: The lookback period for the linear regression.
- Offset: The displacement applied to the linear regression forecast.
- Gap Ticks: The distance (in ticks) from the regression line required to trigger a signal.
- Fixed TP: The target profit amount in ticks.
- Fixed SL: The stop loss amount in ticks.
- Use Fixed SL/TP: Toggles whether to use the specific TP/SL inputs or default values.
- Direction of order: Filters signals to "ALL", "BUY ONLY", or "SELL ONLY".
Custom Backtesting Dates
- Custom Backtesting Dates: Enables or disables the date range filter.
- Start/Stop Year, Month, Day, Hour: Defines the specific window of time for the strategy to execute and calculate performance.
FAQ
How do I interpret the lines on the chart? The middle line represents the linear regression forecast, while the upper and lower lines represent the "Gap" thresholds. Entries occur when the price crosses outside these boundary lines.
Is this strategy suitable for all time frames? While it can be applied to any time frame, it is optimized for "Extreme Scalping," which typically implies very low time frames like 1-minute or 5-minute charts.
How can I access Extreme Scalping? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

