> For the complete documentation index, see [llms.txt](https://docs.algopro.us/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.algopro.us/tradingview-indicators/algopro-signals-and-backtester.md).

# AlgoPro Signals & Backtester

AlgoPro Signals has an indicator and strategy backtest version

## AlgoPro Signals Indicator & Strategy Guide

<figure><img src="https://2124228689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FckRyZjoqncHPyeWKArF8%2Fuploads%2FZfMbP5BNjgVyLO3Qxm1h%2FUntitled45.png?alt=media&amp;token=a4dafe28-a471-441c-b2f5-b11d5480e89e" alt=""><figcaption></figcaption></figure>

### Overview

AlgoPro Signals is a multi-purpose TradingView system designed to connect live chart analysis, trade signals, historical testing, and strategy optimization inside one consistent framework.

Instead of using one indicator for live analysis and a completely different script for backtesting, AlgoPro Signals provides:

* An **Indicator version** for real-time chart analysis and signal monitoring.
* A **Strategy version** for historical backtesting, performance analysis, and optimization.

Both versions use the same core entry systems, filters, strength controls, trade-management logic, and visual framework.

This allows you to build a setup visually with the Indicator, apply the same settings to the Strategy, and test how that configuration performed historically.

No more blindly trading indicator signals or manually reviewing hundreds of historical trades one by one.

***

## 1. Indicator vs. Strategy

### AlgoPro Signals Indicator

The Indicator version is designed for live chart analysis and signal monitoring.

It can display:

* Long entry signals
* Short entry signals
* Entry System exits
* Trend Fusion bands
* Volatility boundaries
* Active trade levels
* Market overview information
* Current signal status
* Simulated performance information

Use the Indicator when you want to:

* Analyze current market conditions
* Monitor live signals
* View trend direction
* Confirm market alignment
* Create signal alerts
* Follow the system without opening TradingView’s Strategy Tester

***

### AlgoPro Signals Strategy

The Strategy version uses the same core signal logic, but it submits simulated TradingView strategy orders.

This allows you to:

* View historical trades
* Compare different settings
* Measure net profit
* Review win rate
* Review profit factor
* Measure drawdown
* Compare average wins and losses
* Review individual trades
* Test different markets
* Test different timeframes
* Optimize entry, filter, and exit settings

The Strategy version is designed for research and testing.

It does not guarantee future performance.

***

## 2. Adding AlgoPro Signals to TradingView

1. Open a chart in TradingView.
2. Click **Indicators** in the top toolbar.
3. Open **Invite-only scripts**.
4. Select either:
   * **AlgoPro Signals**
   * **AlgoPro Signals Strategy**
5. Click the gear icon beside the script name.
6. Configure the Entry System, filters, and trade-management settings.
7. Click **OK** to apply the settings.

To access historical backtesting data, make sure you add the Strategy version rather than the Indicator version.

***

## 3. Recommended Workflow

A practical workflow is:

1. Choose a market.
2. Choose a timeframe.
3. Add the Indicator version.
4. Select an Entry System.
5. Adjust long and short Entry Strength.
6. Decide whether to use standard candles or Heikin Ashi calculations.
7. Decide whether to enable MTF Agreement.
8. Configure the MTF Trend Fusion filter.
9. Choose TP/SL Mode or Swing Mode.
10. Configure targets and stops.
11. Review the Indicator visually.
12. Add the Strategy version.
13. Apply the same settings.
14. Open TradingView’s Strategy Tester.
15. Review the results.
16. Test additional date ranges.
17. Test unseen market data before considering live use.

Avoid selecting settings based only on the highest historical profit.

A stronger setup should also have:

* Reasonable drawdown
* Sufficient trade count
* Stable performance
* Acceptable losing streaks
* Consistent behavior across different market conditions

***

## 4. Entry System Settings

The Entry System section controls where long and short signals originate.

### Entry System

The Entry System dropdown selects the primary signal engine.

Available options include:

* Momentum Reversal
* Structure Break
* Volatility Break
* Volume Trend
* Range Breakout
* Adaptive Trend
* SuperTrend
* Pivot SuperTrend
* Band Breakout
* Zero-Lag Trend
* Pivot Trend
* Adaptive Range
* ATR Trigger
* RSI Momentum

Each Entry System responds differently to price movement.

There is no single best Entry System for every asset, timeframe, or market condition.

***

### Entry System Behavior

| Entry System      | General Behavior                                           |
| ----------------- | ---------------------------------------------------------- |
| Momentum Reversal | Searches for momentum cycles and directional reversals     |
| Structure Break   | Triggers when price breaks recent structural highs or lows |
| Volatility Break  | Uses volatility-adjusted trailing levels                   |
| Volume Trend      | Combines trend movement with volume or momentum pressure   |
| Range Breakout    | Detects movement outside an adaptive price range           |
| Adaptive Trend    | Uses an adaptive price-tracking trend model                |
| SuperTrend        | Uses ATR-based directional trend changes                   |
| Pivot SuperTrend  | Combines confirmed pivots with ATR trend logic             |
| Band Breakout     | Uses volatility bands and directional follow-line behavior |
| Zero-Lag Trend    | Uses reduced-lag trend estimation with volatility bands    |
| Pivot Trend       | Uses pivot and channel behavior to identify trend changes  |
| Adaptive Range    | Uses adaptive smoothing and directional state changes      |
| ATR Trigger       | Uses an ATR-based trailing trigger                         |
| RSI Momentum      | Uses smoothed RSI momentum with adaptive bands             |

These descriptions explain the general purpose of each model.

The internal calculations are handled automatically.

***

## 5. Entry Strength

### Entry Strength — Long

Controls the sensitivity of long signals.

Lower values generally produce:

* Faster long signals
* More frequent long signals
* More sensitivity to short-term movement
* More potential noise

Higher values generally produce:

* Slower long signals
* Fewer long signals
* Greater selectivity
* More confirmation before entry

***

### Entry Strength — Short

Controls the sensitivity of short signals.

Lower values generally produce:

* Faster short signals
* More frequent short signals
* More sensitivity to downside movement

Higher values generally produce:

* Slower short signals
* Fewer short signals
* More selective downside entries

Long and short strength values are independent.

This allows the system to account for markets that behave differently during bullish and bearish conditions.

#### Example

A setup may use:

* Long Strength: 55
* Short Strength: 40

This makes long signals more selective while allowing short signals to react faster.

The same value does not need to be used for both directions.

***

## 6. Confirmation Candles

Confirmation Candles controls how many qualifying candles are required before Trend Fusion confirms a new bullish or bearish state.

A value of:

* **1** provides the fastest confirmation.
* **2** requires two consecutive qualifying candles.
* **3 or more** creates a slower and more selective trend confirmation.

Higher values can reduce rapid trend changes, but they also delay entries.

This setting can also affect delayed entries when a raw Entry System signal is waiting for the Trend Fusion filter to align.

***

## 7. Calculate On Heikin Ashi

When enabled, the signal calculations use Heikin Ashi candle data instead of standard candle data.

Potential benefits include:

* Smoother trend detection
* Reduced candle noise
* Fewer rapid directional changes
* Cleaner trend transitions

Important considerations:

* Heikin Ashi prices are synthetic.
* Heikin Ashi candles are calculated from standard market prices.
* The displayed Heikin Ashi open and close are not always tradable prices.
* Backtest fills must still be interpreted carefully.

Use Heikin Ashi to smooth the signal logic, not as a guarantee that every historical price was available for execution.

***

## 8. Pending Signal Expiration Bars

This setting controls how long a confirmed raw entry signal can remain active while waiting for other requirements.

Those requirements may include:

* MTF Agreement
* Trend Fusion alignment
* Trading session permission
* Flat-position status

### Value of 0

The raw entry signal must satisfy all enabled requirements on the same bar.

If the Entry System produces a long signal while the filter is bearish, the signal is discarded.

### Value Greater Than 0

The signal remains pending for the selected number of bars.

#### Example

* A long signal appears.
* Trend Fusion is still bearish.
* Pending Signal Expiration is set to 5.
* Trend Fusion becomes bullish three bars later.
* The pending long may then be accepted.

Pending signals can increase the number of qualified entries, but they may enter several candles after the original signal.

***

## 9. MTF Agreement

MTF Agreement requires the selected Entry System to have the same directional bias on another timeframe.

### Require MTF Agreement

When disabled:

* The chart-timeframe Entry System can trigger without confirmation from another timeframe.

When enabled:

* Long entries require long agreement from the selected Agreement TF.
* Short entries require short agreement from the selected Agreement TF.

***

### Agreement TF

Selects the timeframe used for directional confirmation.

#### Example

* Chart timeframe: 5 minutes
* Agreement TF: 60 minutes

A 5-minute long signal is accepted only while the 60-minute Entry System bias is also long.

***

### Confirmed Higher-Timeframe Behavior

When the Agreement TF is higher than the chart timeframe, AlgoPro Signals uses the most recently completed higher-timeframe state.

It does not rely on the unfinished higher-timeframe candle.

This helps prevent live signals from changing after a chart refresh simply because the higher-timeframe candle was still developing.

#### Example

On a 5-minute chart using 1-hour agreement:

* The system uses the previous fully closed 1-hour state.
* It does not use the currently forming 1-hour candle.
* The agreement state updates only when the next 1-hour candle becomes confirmed.

This behavior is more stable, but naturally more delayed.

***

### Same or Lower Agreement Timeframes

When the Agreement TF is equal to or lower than the chart timeframe, the system uses the available confirmed calculation for that timeframe.

The special previous-candle protection is only required when the Agreement TF is higher than the chart timeframe.

***

## 10. MTF Trend Fusion Filter

The MTF Trend Fusion filter is separate from the Entry System.

The Entry System produces the raw signal.

Trend Fusion determines whether current market conditions allow that signal to become a valid entry.

### Use MTF Trend Fusion As Filter

When enabled:

* Long entries are allowed only during a bullish Trend Fusion state.
* Short entries are allowed only during a bearish Trend Fusion state.

When disabled:

* Trend Fusion does not block entries.
* The band may still be displayed visually.

This filter is commonly used to reduce countertrend signals.

***

## 11. Trend Fusion Timeframe Mode

Trend Fusion combines calculations from three timeframes.

### Auto Higher

Uses the chart timeframe and two automatically selected higher timeframes.

Example on a 3-minute chart:

* 3-minute
* 5-minute
* 15-minute

This mode generally produces:

* Slower confirmation
* Broader trend context
* Fewer directional changes

***

### Auto Middle

Uses:

* One lower timeframe
* The chart timeframe
* One higher timeframe

This provides a balanced view around the current chart timeframe.

***

### Auto Lower

Uses:

* The chart timeframe
* Two automatically selected lower timeframes

This mode generally produces:

* Faster confirmation
* More responsive trend changes
* Greater sensitivity to short-term movement

***

### Manual

Allows you to manually select:

* TF 1
* TF 2
* TF 3

Use Manual mode when you want full control over the three Trend Fusion timeframes.

#### Example

On a 5-minute chart:

* TF 1: 5 minutes
* TF 2: 15 minutes
* TF 3: 60 minutes

***

## 12. Trend Fusion Components

Trend Fusion can combine multiple calculation types.

### Use MA In Filter

Includes a moving-average component in the Trend Fusion calculation.

This is generally the primary trend-smoothing component.

***

### MTF MA Type

Available moving-average types include:

* SMA
* EMA
* WMA
* HMA
* RMA
* VWMA
* DEMA
* TEMA
* THMA
* JMA

#### General Characteristics

| Moving Average | General Behavior                        |
| -------------- | --------------------------------------- |
| SMA            | Smooth and simple, but slower           |
| EMA            | More responsive to recent price         |
| WMA            | Applies greater weight to recent values |
| HMA            | Smoother with reduced lag               |
| RMA            | Wilder-style smoothing                  |
| VWMA           | Includes volume weighting               |
| DEMA           | Reduced-lag EMA variation               |
| TEMA           | Faster triple-EMA variation             |
| THMA           | Triple Hull-style smoothing             |
| JMA            | Adaptive low-lag smoothing              |

Different moving-average types can significantly change the timing of the filter.

***

### Use VWAP In Filter

Includes a VWAP component in Trend Fusion.

VWAP can help determine whether price is trading above or below a volume-weighted reference.

***

### MTF VWAP Mode

#### Rolling VWAP

Calculates VWAP across a rolling lookback period.

This creates a continuously adapting reference.

#### Daily VWAP

Resets the VWAP calculation at the beginning of each trading day.

Daily VWAP is commonly used for intraday markets.

***

### Use Linear Regression In Filter

Adds a linear-regression trend estimate to Trend Fusion.

This can help measure the direction of the recent price path.

Adding more components can make the filter more selective or slower.

***

### Use Range Midline In Filter

Adds the midpoint of the recent high-low range.

This can help determine whether price is trading in the upper or lower section of its recent range.

***

## 13. Filter Length

Filter Length controls the main lookback used by the enabled Trend Fusion components.

Lower values generally produce:

* Faster response
* More sensitivity
* More frequent trend changes

Higher values generally produce:

* Smoother trend behavior
* Slower response
* Fewer trend changes

***

## 14. Filter Smoothing

Filter Smoothing applies additional smoothing to the final combined Trend Fusion line.

Lower values produce:

* Faster movement
* Less lag
* More noise

Higher values produce:

* Smoother movement
* More lag
* Fewer rapid changes

Filter Length and Filter Smoothing work together.

***

## 15. Volatility Settings

### Volatility Length

Controls the volatility measurement used to build the outer Trend Fusion boundary.

### Volatility Multi

Controls how far the outer volatility buffer is placed from the Fusion line.

Lower values create:

* Narrower buffers
* Faster bullish and bearish confirmations
* More frequent trend changes

Higher values create:

* Wider buffers
* Slower trend confirmations
* Stronger trend requirements

***

## 16. How Trend Fusion Changes Direction

A bullish confirmation generally requires:

* Price above the upper volatility buffer
* A bullish calculated candle
* The selected number of Confirmation Candles

A bearish confirmation generally requires:

* Price below the lower volatility buffer
* A bearish calculated candle
* The selected number of Confirmation Candles

After confirmation, the trend state remains active until the opposite side confirms.

This means the trend can remain bullish or bearish while price temporarily moves back inside the volatility area.

***

## 17. Strategy Management

The Strategy Management section controls how accepted signals become trades and how open positions close.

### Enable Trade Management

When enabled, the selected trade-management mode is active.

This can include:

* Take profit
* Stop loss
* Swing stop
* Trailing stop movement
* Break-even movement
* Progressive stop movement
* Maximum bars in trade

When disabled:

* TP/SL management is disabled.
* Swing stops are disabled.
* Break-even movement is disabled.
* Progressive movement is disabled.
* Time-based exits are disabled.

Trades may still close through Entry System exit signals if those are enabled.

***

## 18. Trade Mode

Available modes:

* TP/SL Mode
* Swing Mode

***

## 19. Use Entry System Exits

When enabled, the Entry System’s opposite exit event can close an open trade.

#### Example

* A long trade is open.
* The Entry System produces its long-exit event.
* The long trade closes.

When disabled:

* Entry System exits do not close trades.
* Trades must close through Trade Management, session close, reversal logic, or another enabled exit.

Entry System exits can be combined with TP/SL Mode or Swing Mode.

***

## 20. Allow Opposite Signal To Reverse Open Trade

When disabled:

* An opposite entry signal is ignored while a trade is open.
* The current trade must close before the opposite direction can enter.

When enabled:

1. An opposite signal is received.
2. The current trade is closed.
3. The system waits until the position is confirmed flat.
4. The opposite trade is opened.

The system does not attempt to hold a true long and short hedge at the same time.

This sequential close-then-open behavior is more reliable than submitting an immediate net reversal.

***

## 21. Trade Cooldown Bars

Controls how many bars must pass after a trade closes before another trade can open.

A value of 0 disables the cooldown.

#### Example

* A trade closes on bar 100.
* Cooldown is set to 3.
* New entries are blocked for the next 3 bars.

This can help reduce rapid re-entry during choppy conditions.

***

## 22. Close Trade After Bars

Closes an open trade after the selected number of bars.

A value of 0 disables the time-based exit.

This can be useful for:

* Intraday strategies
* Short-duration setups
* Removing trades that remain open without reaching TP or SL

***

## 23. TP/SL Mode

TP/SL Mode uses a defined target and stop structure.

### Take Profit Method

Available methods:

* ATR
* Percentage
* Risk Reward

### TP Value — Long

Controls the long target using the selected method.

### TP Value — Short

Controls the short target using the selected method.

Long and short values can be configured independently.

***

## 24. ATR Take Profit

The target is calculated using ATR.

#### Example

* ATR: 10 points
* Long TP Value: 2
* Approximate target distance: 20 points

ATR targets automatically adapt to volatility.

***

## 25. Percentage Take Profit

The target is placed a percentage away from the entry.

#### Example

* Entry: 100
* TP Value: 2
* Long target: approximately 102
* Short target: approximately 98

***

## 26. Risk Reward Take Profit

The target is calculated from the initial stop distance.

#### Example

* Stop distance: 10 points
* TP Value: 2
* Target distance: 20 points
* Risk/reward ratio: 2:1

Risk Reward mode requires a valid initial stop calculation.

***

## 27. Stop Loss and Swing Settings

The same Stop Loss Method and values are used as the foundation for standard stops and Swing Mode.

### Stop Loss Method

Available methods:

* ATR
* Percentage
* High/Low
* Moving Average

### SL Value — Long

Controls the long stop using the selected method.

### SL Value — Short

Controls the short stop using the selected method.

***

## 28. ATR Stop

Places the stop using an ATR multiple.

#### Example

* ATR: 10 points
* Long SL Value: 2
* Approximate stop distance: 20 points

***

## 29. Percentage Stop

Places the stop a percentage away from entry.

#### Example

* Entry: 100
* SL Value: 1.5
* Long stop: approximately 98.5
* Short stop: approximately 101.5

***

## 30. High/Low Stop

Uses a recent structural high or low.

The SL Value is interpreted as the lookback length.

#### Example

* Long SL Value: 10
* Long stop references the lowest low from the previous 10 bars.

For short trades, the stop references the recent highest high.

***

## 31. Moving Average Stop

Uses a moving average as the stop reference.

The SL Value is interpreted as the moving-average length.

### SL MA Type

Selects the moving-average type used by the Moving Average stop.

The available moving-average types are the same as those used by Trend Fusion.

***

## 32. Stop Loss Cap

### Use SL Cap

Limits how far the calculated stop can be placed from the entry.

This is useful when:

* ATR becomes unusually large
* A structural stop is extremely wide
* A moving-average stop is far from price

### SL Cap %

Sets the maximum stop distance as a percentage of entry price.

#### Example

* Calculated stop distance: 5%
* SL Cap: 3%
* Final stop distance is limited to approximately 3%

***

## 33. Trailing the Standard Stop

These settings apply to TP/SL Mode.

### Trail Standard SL — Long

Allows the long stop to trail as the selected stop reference improves.

### Trail Standard SL — Short

Allows the short stop to trail as the selected stop reference improves.

When disabled:

* The initial stop remains fixed unless break-even or progressive movement changes it.

When enabled:

* The stop can tighten as price moves favorably.
* The stop should not loosen away from the trade.

***

## 34. Trail Smooth

Trail Smooth controls smoothing applied to the trailing stop.

Higher values produce:

* Smoother movement
* Slower adjustment
* Fewer sudden stop changes

Lower values produce:

* Faster adjustment
* More responsive movement
* More sensitivity to short-term price changes

Long and short values are configured separately.

***

## 35. Trail Speed

Trail Speed controls how aggressively the stop moves toward the latest trailing reference.

Lower values produce slower movement.

Higher values produce faster movement.

Very high values may cause the stop to tighten quickly and can increase early exits.

***

## 36. Swing Mode

Swing Mode replaces a fixed target-based exit with a dynamically tightening stop.

The stop can be based on:

* ATR
* Percentage
* High/Low
* Moving Average

Swing Mode uses the same:

* Stop Loss Method
* Long and short SL values
* Moving-average type
* Smoothing
* Trail speed
* Stop cap

For a long trade:

* The stop may move upward.
* It should not move downward after tightening.

For a short trade:

* The stop may move downward.
* It should not move upward after tightening.

Swing Mode is designed for users who want to stay in larger directional moves rather than exit at a fixed profit target.

***

## 37. Break-Even Management

Break-even controls are configured separately for long and short trades.

### Move SL To BE — Long

Enables break-even movement for long trades.

### BE % — Long

Controls how much progress toward the target is required before the long stop moves to entry.

#### Example

* Entry: 100
* Target: 110
* BE %: 50
* Break-even activates near 105

### Move SL To BE — Short

Enables break-even movement for short trades.

### BE % — Short

Controls target progress required before the short stop moves to entry.

The default break-even offset is zero, so the stop moves to approximately the original entry price.

***

## 38. Progressive Stop Movement

Progressive Stop Movement tightens the stop in stages as price advances toward the target.

### Progressive SL — Long

Enables progressive movement for long trades.

### Every TP % — Long

Controls the progress interval.

#### Example

* Every TP %: 25
* Adjustments can occur at:
  * 25%
  * 50%
  * 75%
  * 100%

### Move SL % Of TP — Long

Controls how far the stop advances at each step relative to the full target distance.

The short settings work the same way in the opposite direction.

Progressive movement can lock in profit before the final target is reached.

***

## 39. Trading Session Filter

### Use Trading Session Filter

Restricts new entries to a selected session.

When disabled:

* Entries can occur at any time available on the chart.

When enabled:

* New entries are permitted only during the selected session.

***

### Allowed Session

Defines the permitted trading window.

#### Example

* 0930–1600

This commonly represents the regular U.S. equity session.

***

### Timezone

Available choices include:

* Exchange
* UTC
* America/New\_York
* America/Chicago
* America/Denver
* America/Los\_Angeles
* Europe/London
* Europe/Berlin
* Asia/Tokyo
* Asia/Hong\_Kong
* Australia/Sydney

#### Exchange

Uses the symbol’s exchange timezone.

This is usually the simplest option when the trading session is based on the instrument’s native exchange.

***

### Close Open Trade At Session End

When enabled:

* Any open trade is closed when the chart leaves the allowed session.

When disabled:

* No new entries occur outside the session.
* Existing trades may remain open.

This option only applies when the Trading Session Filter is enabled.

***

***

## Indicator Alerts

The Indicator version can be used to create alerts from its signal conditions.

General process:

1. Configure the Indicator.
2. Click **Create Alert** in TradingView.
3. Choose AlgoPro Signals as the condition.
4. Select the desired signal condition.
5. Use **Once Per Bar Close** where available.
6. Configure notifications.
7. Create the alert.

Bar-close alerts are recommended because entry signals are confirmed on closed candles.

When settings are changed, recreate the alert so TradingView uses the updated configuration.

***

## Strategy Order-Fill Alerts

The Strategy version includes separate message fields for:

* Open Long Command
* Open Short Command
* Close Long Command
* Close Short Command

These fields can be used with TradingView strategy order-fill alerts.

To create an order-fill alert:

1. Add AlgoPro Signals Strategy to the chart.
2. Configure the strategy.
3. Open **Create Alert**.
4. Select AlgoPro Signals Strategy.
5. Choose **Order fills only**.
6. Enter a webhook URL if required.
7. Set the message to:

`{{strategy.order.alert_message}}`

8. Create the alert.

The message fields inside the Strategy settings determine the content sent with each order event.

***

***
