Price Action Trading Strategy
Apr 28, 2023

The Price Action Trading Strategy tool aims to identify and trade immediate breakouts of the previous candle's range to capture momentum in real-time.
Usage
The strategy operates on a candle-by-candle basis, identifying potential trend shifts or continuations based on high and low breaches.
- Long Entries: Occur when the current price exceeds the high of the previous candle, signaling upward momentum.
- Short Entries: Occur when the current price drops below the low of the previous candle, signaling downward momentum.
- Exits: The strategy includes built-in exit logic where long positions are closed if the price drops below the previous low, and short positions are closed if the price rises above the previous high.
This script is best used on timeframes where candle ranges represent significant market moves and should be paired with trend-following filters to avoid "whipsaw" price action in sideways markets.
Details
The strategy is built on the core principle of price action breakouts. By comparing the current candle's high and low to the high[1] and low[1] (the previous candle), the script determines market sentiment.
- If
high > high[1], the market is exhibiting a "higher high," often used as a basic bullish confirmation. - If
low < low[1], the market is exhibiting a "lower low," used as a basic bearish confirmation.
The script utilizes the strategy.entry and strategy.close functions to manage positions automatically based on these binary conditions.
Settings
As this is a pure price action script based on raw candle data, there are no external input parameters. The logic is hardcoded to the previous candle's range:
- Previous High (prevHigh): The high value of the immediately preceding candle.
- Previous Low (prevLow): The low value of the immediately preceding candle.
FAQ
How do I use the Price Action Trading Strategy?
You can apply it to any chart; the strategy will automatically plot buy and sell entries based on whether the current candle breaks the previous candle's extremes.
On which timeframes does this work best?
The strategy is highly sensitive to market noise. It generally performs more reliably on higher timeframes (like 1H, 4H, or Daily) where candle breakouts are more significant.
How can I get access to this script?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.