PMax (Profit Maximizer) is a trend-following indicator that plots a moving average and an ATR-based trailing stop on the price chart. It shows trend direction and marks a Buy when the moving average crosses above the PMax line and a Sell when it crosses below. Because the stop distance is measured in ATR, the line adapts to market volatility instead of using a fixed percentage.
PMax is a lagging, trend-following tool. In sideways markets it flips often and produces losing signals, and a signal on the last bar can change until that bar closes. Combine it with market structure, volume or a higher-timeframe filter.
Indie port for TakeProfit of the open-source Pine Script v4 indicator published on TradingView in February 2021. The logic follows the original: moving average, ATR trailing stop, direction flip and crossing signals. Values were compared with TradingView on the same candles and matched. The two long/short highlighter fills of the original are merged into one color-switching fill, and TradingView alertcondition() is replaced by platform alerts. Last updated: October 2026.
Original indicator: Profit Maximizer (PMax) by KivancOzbilgic, TradingView. © KivancOzbilgic. Original licensed under the Mozilla Public License 2.0 (https://mozilla.org/MPL/2.0/). This is an independent Indie port of the published open-source script.
This indicator is a technical analysis tool for educational and informational purposes, not financial advice or a trading recommendation. Signals are calculated from past prices, can lag, repeat and fail, and do not guarantee future results. Trading financial instruments, especially with leverage, involves a high risk of loss. Test any settings on history and a demo account first, and never risk money you cannot afford to lose.
Tags: trend, trendfollowing, trailingstop, atr, movingaverage, pmax, signals, buysell, ema, volatility, crypto, forex Image: not needed
Comments