PROTECTED SOURCE SCRIPT

BRT Support MA [STRATEGY] v3

110
BRT Support MA Strategy v3

Strategy Description

BRT Support MA Strategy v3
— a trading system based on a dynamic support/resistance level with an integrated loss compensation system through hedging.

Unique Approach
The strategy uses an adaptive Support MA level that changes color depending on market conditions:

🟢 Green — bullish state (long positions)
🔴 Red — bearish state (short positions)

Key Feature: integrated hedging system with dynamic volume calculation that compensates losses from unsuccessful main positions.

Trading Logic

Main Positions (Limit Orders)

  • LONG: limit order at Support MA level when the line is green
  • SHORT: limit order at Support MA level when the line is red
  • TP: fixed percentage from entry price
  • No stop-losses — losses are managed through the hedging system


Hedging System

Activated when Support MA color changes (market state shift):

  • Opens a position in the opposite direction
  • Hedge volume is calculated dynamically to compensate main position losses
  • Has its own TP level


Hedge Goal: cover the loss from the main position and exit at breakeven or with minimal profit.

Settings

Parameter Description
Support MA Length Period for dynamic level calculation
Support MA Timeframe Timeframe for multi-timeframe analysis
Main TP (%) Take Profit for main positions
Hedge TP (%) Take Profit for hedging positions
Base Volume (USDT) Base position volume including leverage

Commission: 0.04%

Visualization

  • *Support MA (thick line) — dynamic entry level, changes color by market state
    *TP levels — displayed in data window


Optimization:

  1. Backtest on at least 6 months of historical data
  2. Adjust TP parameters for asset volatility
  3. Adapt volume to your deposit size and risk management



⚠️ CRITICAL RISK WARNING

🚨 LIQUIDATION RISK WITH INSUFFICIENT MARGIN


WARNING! The strategy uses dynamic calculation of hedging position volumes.
Hedge volume can SIGNIFICANTLY exceed the main position volume, as it is calculated to fully compensate accumulated losses.

THIS MEANS:

  • When hedge activates, it may require several times more margin than the main position
  • With insufficient deposit size, opening a hedge position can lead to immediate liquidation of the entire account
  • The larger the main position loss, the larger the required hedge volume
  • When using high leverage, liquidation risk increases exponentially


DEPOSIT REQUIREMENTS:

  • Deposit must be at least 10 times larger than the set base position volume
  • Always maintain significant free margin reserve (minimum 50% of deposit)
  • Use conservative leverage (no higher than 3-5x)


If your deposit size is insufficient to cover possible hedging positions, DO NOT USE this strategy in live trading.

⚠️ GENERAL DISCLAIMER
FOR BACKTESTING AND EDUCATION ONLY


This code is intended EXCLUSIVELY for:

  • Testing on historical data
  • Studying approaches to trading system development
  • Educational purposes


  • The Author BEARS NO RESPONSIBILITY
for:

  • Financial losses from live trading use
  • Account liquidation due to insufficient margin
  • Strategy performance on live accounts
  • Any losses, direct or indirect


IMPORTANT:

  • Past results do not guarantee future performance
  • Backtest ≠ live trading (no slippage, partial fills, liquidity changes)
  • Leveraged trading carries extremely high risk of total capital loss
  • Not financial advice
  • Consult with a financial advisor before making trading decisions


By using this code, you accept full responsibility for your actions and possible account liquidation.

Technical Details

  • Pine Script: v5
  • License: Mozilla Public License 2.0
  • Author: MaxBRFZCO
  • Order Processing: on bar close
  • Pyramiding: disabled



For questions and suggestions, use comments under the publication.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.