All indicators

Price Action Trend and Margin Equity

Feb 12, 2025

Static chart image
Price Action BasedDynamic OverlaysSignalsCandlestickChannelsMoney ManagementPatterns

The Price Action Trend and Margin Equity indicator is a comprehensive market analysis tool that integrates price pattern identification with advanced money management calculations and trend visualization. It simplifies the trading process by automatically detecting key price action signals and calculating required position sizing based on user-defined risk parameters.

Usage

The indicator can be used as a primary system for identifying entries and managing trade risk. By combining trend filtering with pattern recognition, it aims to highlight high-probability setups.

  • Money Management: Users can define their risk tolerance through the "Position loss %" and "Total Capital" settings. The tool calculates either the required leverage (to meet a risk target) or the required capital (when using fixed leverage) for each signal.
  • Pattern Identification: The script identifies Pin Bars, Engulfing (Outside) Bars, PPR (Pivot Point Reversal) Bars, and Inside Bars. These are highlighted directly on the candles.
  • Trade Execution: When a pattern is detected, the indicator plots entry, stop loss, and take profit lines on the chart.
  • Trend Filtering: By enabling the trend cloud filter, the indicator will only display price action signals that align with the current market direction, reducing noise in sideways markets.

Details

The indicator utilizes a "Trend Cloud" based on highest and lowest values over a specific lookback period to determine market bias. The logic for pattern detection is as follows:

  • Pin Bar: A candle where one shadow is at least twice the length of the body and the opposite shadow.
  • Inside Bar: A candle where the high and low are completely contained within the range of the previous candle.
  • Outside Bar (Engulfing): A candle where the high and low exceed the previous candle's range and it closes outside that range.
  • PPR Bar: A reversal pattern where the current candle closes above the high (for bullish) or below the low (for bearish) of the previous candle.

Settings

Money Management

  • Position loss %: The maximum percentage of your total capital you are willing to risk on a single trade.
  • Use fixed leverage: Toggles between calculating required leverage or using a static leverage value.
  • Set Leverage: The fixed leverage value used for capital requirements calculation.
  • Total Capital: Your overall equity used to calculate position sizes.

Price Action Settings

  • Turn Patterns On/Off: Individual toggles for Pin Bars, Outside Bars, Inside Bars, and PPR Bars.
  • Pattern Colors: Custom color settings for each specific candlestick pattern.
  • Show line: Toggles the visibility of entry, stop, and take profit levels.
  • Pin entry: Sets the entry point for Pin Bars (Head, Close, or 50% level).
  • Stop/Take Factors: Multipliers to adjust the distance of stop loss and take profit levels relative to the pattern size.
  • Use trend for Price Action: Filters all signals to only show those following the Trend Cloud direction.

Trend Settings

  • Show Cloud Trend: Toggles the visibility of the trend cloud.
  • Cloud Lookback Period: The period used to calculate the highs and lows for the trend direction.
  • Cloud Colors/Transparency: Customization options for the visual appearance of the trend cloud.

FAQ

How do I access Price Action Trend and Margin Equity?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

What do the labels on the chart mean?

Labels appear at the stop loss level. "X:" represents the required leverage to maintain your risk percentage, and "$:" represents the specific capital amount needed for the position if using fixed leverage.

Why are some signals not showing up?

If "Use trend for Price Action" is enabled, the indicator will hide any patterns that contradict the direction of the Trend Cloud. Ensure this setting is off if you want to see all detected patterns.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.