Price Action - Support & Resistance + MACD LONG Strategy
May 19, 2023

The Price Action - Support & Resistance + MACD LONG Strategy indicator is a comprehensive trading tool that combines structural price levels with momentum analysis to identify high-probability long entry points. By integrating dynamic support and resistance tracking with the Moving Average Convergence Divergence (MACD) oscillator, it aims to filter out noise and capture trend reversals at key market inflection points.
Usage
The strategy focuses on identifying bullish opportunities when price action interacts with established structural levels. A valid long entry is generated when the following conditions align:
- Support Interaction: The price is trading above a significant support level, indicating that the base is holding.
- Momentum Confirmation: The MACD line crosses above the signal line while the histogram is positive, signaling building bullish momentum.
Users can apply this strategy to various timeframes to identify potential swing or day trading opportunities. When a "Bullish Setup" triangle appears below a bar, it indicates that both price structure and momentum are aligned for a potential upward move. The script automatically calculates exit points based on the user-defined percentage values for risk management.
Details
The script executes a dual-layer validation process:
- Price Action Layer: It dynamically tracks the highest and lowest price points over the session to establish resistance and support baselines. This provides a visual representation of the current trading range.
- Momentum Layer: It utilizes a standard MACD calculation (26, 100, 9). The crossover of the MACD and signal lines serves as a secondary confirmation, ensuring that the trade is taken in the direction of increasing velocity.
The strategy includes built-in execution logic that handles entry, stop loss, and take profit orders automatically, making it suitable for backtesting various asset classes.
Settings
- Support Level Strength: Adjusts the sensitivity for calculating the support floor based on price lows.
- Resistance Level Strength: Adjusts the sensitivity for calculating the resistance ceiling based on price highs.
- Stop Loss Level (%): Defines the percentage distance from the entry price to place the protective stop loss order.
- Take Profit Level (%): Defines the percentage distance from the entry price to place the limit order for profit-taking.
FAQ
How do I use this indicator for different assets?
You can adjust the Support and Resistance strength inputs alongside the SL/TP percentages to suit the volatility of the specific asset you are trading, such as Forex, Crypto, or Stocks.
Can I change the MACD parameters?
The current version uses optimized momentum settings (26, 100, 9), but the core logic relies on the relationship between the MACD line and the Signal line to confirm entries.
How do I access this tool?
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.

