{
  "id": 2328,
  "rank": 1029,
  "name": "Pine Script – Strategy",
  "aka": [],
  "family": "B",
  "subtype": "B8",
  "one_liner": "A basic strategy using MACD, RSI, and Stochastic with breakout conditions for long and short entries.",
  "market_regime": "trending|ranging|volatile",
  "timeframes": [
    "any"
  ],
  "symbols": [
    "XAUUSD"
  ],
  "sessions": [
    "any"
  ],
  "indicators": [
    {
      "name": "EMA",
      "params": {
        "period": 21
      },
      "applied_to": "close"
    },
    {
      "name": "Bollinger Bands",
      "params": {
        "period": 20,
        "deviations": 2
      },
      "applied_to": "close"
    },
    {
      "name": "MACD",
      "params": {
        "fast_period": 12,
        "slow_period": 26,
        "signal_period": 9
      },
      "applied_to": "close"
    },
    {
      "name": "RSI",
      "params": {
        "period": 14
      },
      "applied_to": "close"
    },
    {
      "name": "Stochastic",
      "params": {
        "period": 14
      },
      "applied_to": "close"
    }
  ],
  "entry_long": [
    "mymacdLine > 0 AND rsiValue < 30 AND stochD < 20"
  ],
  "entry_short": [
    "mymacdLine < 0 AND rsiValue > 70 AND stochD > 80"
  ],
  "exit_rules": [
    "IF NOT OnMarket AND longcondition2 THEN",
    "sl = 1000 - deltaTPSL",
    "BUY contratto CONTRACTS AT MARKET",
    "SET STOP PLOSS sl",
    "SET TARGET PPROFIT tp",
    "ENDIF",
    "IF NOT OnMarket AND shortcondition2 THEN",
    "sl = 1000 - deltaTPSL",
    "SELLSHORT contratto CONTRACTS AT MARKET",
    "SET STOP PLOSS sl",
    "SET TARGET PPROFIT tp",
    "ENDIF"
  ],
  "filters": [],
  "stop_loss": "500 - deltaTPSL",
  "take_profit": "1000 + deltaTPSL",
  "position_size": "2 contracts per trade",
  "evidence_type": "source_code",
  "completeness": 80.0,
  "signal_warnings": null,
  "claim_warnings": null,
  "opacity_warnings": null,
  "build_warnings": null,
  "canonical": "https://prismaticalgos.com/compendium/algo/2328-pine-script-strategy",
  "snapshot": "2026-10-31 15:46 UTC",
  "source_url": "https://www.prorealcode.com/topic/conversione-della-strategia-dal-software-di-trading-pine-script/",
  "limitations": "These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms."
}
