Strategy settings

Check the Pine Algo strategy settings: configure entry parameters, capital management, position scaling and tailor the solution to your trading style.

Pine Algo

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

Pine Algo Strategy [psyll] is a comprehensive technical analysis automation tool, designed for users of the Psyll.com platform and TradingView. It combines flexible configuration with high signal accuracy and full control over its operation. Every element of the algorithm is designed to allow both rapid testing (backtesting) and full integration with the Psyll Webhook, enabling automatic execution of real orders on exchanges.

Settings are thematically grouped, making it easy to navigate from visual sections to advanced logic options, filters, plugins, and operation modes.

Display

This section controls all visual elements of the strategy directly visible on the TradingView chart. It facilitates data interpretation and provides a real-time view of the algorithm’s operational status.

  • Show signal table - enables the display of a table with the latest signals, their type (buy/sell), and the time they occurred. Allows quick analysis of when the strategy generated trading decisions.
  • Show strategy table - presents a summary of key strategy parameters and results: number of trades, accuracy, total profit, and current status.
  • Bullish / Bearish colors - color settings for bullish and bearish signals, customizable to personal preference or chart style.

Runtime

This section sets the time during which the strategy is active.

  • Start - specifies the start date and time of the strategy.
  • End - defines the end date and time of its activity.

System

The core of the algorithm configuration, determining how signals are interpreted and how the strategy behaves.

  • Mode - selects the strategy’s operating mode.
    • DCA (Dollar-Cost Averaging) - automatic cost-averaging mode. The strategy buys additional positions after price drops to lower the average purchase price. Drop Percent defines the percentage drop at which the next position is purchased. Purchases can be limited using TradingView pyramiding to control the number of layers.
    • Sniper - precision entry mode. Each signal is treated as an independent trade without averaging. Drop Percent acts as a stop loss, closing the position at the defined percentage drop from entry. Recommended to use additional plugins such as RSI, volume, trend or official Pine Algo plugins for signal confirmation.
  • Direction - Long, Short, or Source (automatic based on input data).
  • Direction Source - data source from Pine Algo plugin or another indicator.
  • Reverse Source - reverses signal logic.

Entry

This section defines how the strategy enters positions.

  • Confirmation - number of candles to confirm the signal.
  • Drop Percent - Key parameter with different meanings depending on the mode:
    • DCA: percentage drop from last purchase for additional entry.
    • Sniper: stop loss percentage from entry price.
  • Drop Multiplier - modifies Drop Percent for subsequent DCA entries.

Signal Smooth

Smooths signals to reduce the impact of noise and micro-fluctuations.

  • Enabled - toggle smoothing.
  • Type - moving average type for smoothing (EMA, SMA, HMA, FRAMA, JURIK, etc.).
  • Length - smoothing period.

Signal Validator

Validates signals before sending them to the strategy engine.

  • Lowest length - period to detect local signal extremes.
  • MA type - moving average type used for validation.
  • MA length - length of the moving average.

RSI Direction Filter

Ensures trading aligns with chosen RSI direction.

  • Enabled - toggle filter.
  • Type - Growing or Falling RSI.
  • Confirmation - number of candles to confirm direction.
  • Source - data source (close, hl2, etc.).
  • Length - RSI period.

RSI Level Filter

Restricts entries to specific RSI levels.

  • Enabled - toggle filter.
  • Type - Below or Above.
  • Level - threshold value (e.g., 40, 60).
  • Source / Length - standard RSI settings.

Entry Plugins

Allows connecting external filters (plugins) for trade entries.

  • Enabled - activate plugin.
  • Source - plugin data source.
  • Reverse - reverse plugin logic.

Exit

Manages closing positions and realizing profits or losses.

  • Force - force immediate closure when profit target is reached. (The Confirmation parameter is ignored when closing orders.)
  • Mode - Default or Extended exit logic.
  • Percent - profit target percentage to start exit search.
  • Confirmation - number of candles to confirm exit.

Exit Reductor

Reduces risk and stabilizes algorithm during exits.

  • Locker - locks exit price at a certain level.
  • Type - reduction type (after position change or from first entry).
  • Value - percentage adjustment

Exit Plugins

Additional filters for position exits.

  • Enabled - activate plugin.
  • Source - plugin data source.
  • Reverse - reverse plugin logic.