All indicators

Progressive Profit Taking with Trailing Stop

Dec 18, 2017

Static chart image
Money ManagementTrailing-Stop

The Progressive Profit Taking with Trailing Stop indicator provides a comprehensive exit management system that automates multi-stage profit taking and trailing stop-loss adjustments from a manual entry point. It helps traders secure gains dynamically while protecting capital through a volatility-adjusted trailing mechanism.

Usage

The Usage section describes how the script can be used, examples should be provided in this section. This tool is designed to manage a trade once an entry has been established at a specific timestamp.

  • Trade Initialization: Users set the exact start date and time to match their manual entry. The script then begins calculating the trailing stop and profit targets from that specific point.
  • Trailing Stop Management: The indicator tracks the highest price reached since entry. As the price moves favorably, the trailing stop (displayed as the Trail Price) moves upward, maintaining a user-defined percentage distance from the peak.
  • Progressive Profit Taking: Instead of exiting a full position at once, the script identifies partial profit opportunities. This is triggered when the price crosses below an EMA, provided that the price has also climbed by a specific "Trailing profit interval" percentage.
  • Full Position Exit: A final profit target serves as a hard exit. Once price hits this percentage-based goal relative to the entry, the script signals a full closure.

Details

The script utilizes request.security to allow for multi-timeframe analysis, meaning you can track stops or profit triggers on higher timeframes while viewing a lower timeframe chart. The trailing stop logic is based on the "Trailing Parameter" source (typically the High), ensuring the stop only moves in the direction of the trade. The progressive profit mechanism uses an EMA crossunder as a momentum filter to ensure profits are taken when price starts to soften after reaching a new percentage tier.

Settings

Time Settings

  • Start Year/Month/Day/Hour/Minute: Defines the exact bar where the trade execution began.

Trailing Stop Settings

  • Trail Percent: The percentage distance from the highest price reached that defines the stop-loss level.
  • Trailing Parameter: The price source (High, Close, etc.) used to calculate the peak for trailing.
  • Use current chart resolution for trailing stop?: Toggles between using the current chart timeframe or a custom one for stop calculations.

Stop Trigger Settings

  • Trigger for stoploss: The price source used to determine if the Trail Price has been breached.
  • Use current chart resolution for stop trigger?: Determines the timeframe used for the stop-loss trigger.

Profit Taking Settings

  • Trigger for profit taking: The price source used for the EMA crossunder detection.
  • EMA length for profit taking: The lookback period for the EMA used to signal partial exits.
  • Trailing profit interval: The required percentage increase between consecutive partial profit-taking events.
  • Profit target: The total percentage gain required to close the entire position.
  • Use current chart resolution for taking profit?: Determines the timeframe used for profit-taking calculations.

FAQ

How do I set the indicator to start at my specific entry? You must input the exact year, month, day, and time into the script settings to match the candle where your trade was opened.

What is the difference between "Take Profit" and "Close Profit"? "Take Profit" signals a progressive or partial exit based on EMA crosses and percentage steps, while "Close Profit" signals the final exit at your ultimate price target.

How can I access the Progressive Profit Taking with Trailing Stop indicator? 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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

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