OPEN-SOURCE SCRIPT

PG MCX Silver Long V6 - MTF Momentum + Profit Trailing

1 398
Overview

This strategy combines quantitative signal generation with strict risk management rules—specifically engineered to prevent over-trading and capital drawdowns during choppy or unfavorable market regimes.

Key Features
Custom Trade Signals: Evaluates market conditions to trigger precise, rule-based entries.

Pyramiding Limits: Built-in dynamic position sizing parameters to ensure account exposure remains controlled.

Loss-Based Cooldown Mechanism: Automatically detects consecutive losing trades and enforces a temporary cooldown period to pause new entries and preserve capital.

Real-Time Alerting: Integrated alert conditions (alertcondition) designed to trigger immediate webhook or push notifications whenever a strategy state or cooldown is initiated.

How It Works
Entry Logic: Calculates raw entry signals based on the core indicator parameters and validates whether the current open position size is within the allowed pyramiding cap (maxPyramiding).

Cooldown Guardrail:
If the strategy hits 2 consecutive losses, useCooldown triggers a lockout phase, blocking any new long/short orders until conditions stabilize.

Alerts:
Triggers automated notifications to keep you informed of strategy state transitions without needing to monitor the chart 24/7.

Settings & Inputs Max Pyramiding:
Set the maximum allowable scale-in limit for open positions.

Use Cooldown:
Toggle the automated loss-cooldown circuit breaker on or off.

Consecutive Loss Limit:
Customize the threshold of losing trades before pausing entry logic.

Disclaimer
For educational and backtesting purposes only. Past performance does not guarantee future results. Always conduct your own risk management and forward testing before applying strategies to live accounts.

免責事項

これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。