Entry plugins system

Entry Plugins in Pine Algo - choose additional entry signal sources (plugins) and adapt the strategy to different market styles and filters.

Pine Algo

Pine Algo umożliwia rozwijanie i optymalizowanie strategii automatycznych w PineScript na platformie TradingView.

The Entry Plugins section extends Pine Algo’s functionality with additional entry filters that act as external confirmations of trading signals. They allow you to significantly improve entry precision, reduce the number of false trades, and adapt the strategy to your trading style, regardless of the operating mode (DCA or Sniper).

The system supports two parallel entry plugins, which can operate independently or together. Each plugin is a separate filter, and their logic is combined to give users full control over position opening conditions.

How Entry Plugins Work

Each plugin analyzes the selected data source and compares it with the current trade direction. If the plugin is enabled, the strategy will only open a position if the plugin’s condition is met. If the condition is not met, the entry is skipped - even if the main strategy signal indicates an entry.

This allows Pine Algo to act more selectively, reacting only to confirmed signals. It is especially useful on highly volatile markets, where false price impulses are frequent and filtering entries directly improves result stability.

Plugin Configuration

Each of the two available plugins has an identical set of configurable parameters:

  • Enabled - toggles the plugin on or off. When disabled, the filter does not affect the strategy logic. Enabling it makes Pine Algo consider its signals when evaluating entry timing.
  • Source - defines the data source from which the plugin reads signals.
  • Reverse - reverses the plugin’s logic. When active, a signal normally considered positive (e.g., bullish) is treated as negative, and vice versa. This allows flexible adaptation of plugins that operate on different logic than the main Pine Algo signal.

Plugin Interaction

Both plugins operate in parallel, and their logic is combined using a logical AND:

  • If only one plugin is enabled, its confirmation is sufficient.
  • If both plugins are active, both must confirm the signal.
  • If none are active, Pine Algo operates in basic mode without entry filters.

This design allows easy switching between a conservative style (both plugins active, strictly confirming signals) and a more flexible style (one plugin active or no filters). Users can decide how strict the strategy should be and how much it should rely on base signals.

Use in DCA and Sniper Modes

In DCA Mode: Plugins act as filters to limit excessive additional purchases under unfavorable conditions. Example: if the main signal suggests an additional entry but an active plugin detects downward momentum or lack of trend confirmation, the position is not increased. This preserves capital stability and prevents overly aggressive position scaling.

in Sniper Mode Plugins play a crucial role in trade selection. It is recommended to use at least one plugin to confirm entries with additional signals, for example, based on trend, market strength indicators (RSI, MACD) or volume. This ensures that the strategy opens only positions meeting extra technical conditions, significantly increasing precision and effectiveness.

Example: Filtering Entries Using Moving Averages

One of the most common and effective uses of entry plugins is filtering trades with moving averages. This allows opening positions only when the market aligns with the trend direction, improving stability and reducing trades against the main price movement.

Example configuration:

1) Add the Moving Averages [psyll] plugin to your chart. This dedicated Pine indicator generates Above/Below Price signals based on the price relative to selected moving averages (e.g., EMA 50, SMA 500).

2) In the Moving Averages [psyll] plugin settings, configure your moving average signal.

3) Open the Entry Plugins section in Pine Algo [psyll] settings.

4) In the Source field, select the signal from the Moving Averages [psyll] plugin, e.g., Above/Below Price. Pine Algo will then open positions only when the price is on the correct side of the moving averages - i.e., in line with the trend.