{
  "schema_version": "1.0",
  "signal_id": "three-down-days-in-an-uptrend",
  "slug": "three-down-days-in-an-uptrend",
  "family": "price-structure",
  "registry_version": 1,
  "registered_on": "2026-09-05",
  "computed_at": "2026-09-05T09:40:52Z",
  "code_commit": "283c309",
  "data_as_of": "2026-08-06",
  "universe_as_of": "point-in-time",
  "sample_grade": "STRONG",
  "headline_horizon": 5,
  "title": "Three down days in an uptrend",
  "plain_english": "The stock closed lower three sessions running while still trading above its fifty-day average price.",
  "definition": "close[t] < close[t-1] < close[t-2] < close[t-3]\nAND close[t] > sma(close, 50)[t]",
  "headline_parameters": {
    "streak": 3,
    "ma_length": 50
  },
  "sample": {
    "n_raw": 107013,
    "n_eff": 79956.3,
    "deff": 1.338,
    "rho": 0.0117,
    "m_bar": 29.97,
    "n_eff_raw_design": 16259.7,
    "rho_raw_design": 0.1927,
    "deff_raw_design": 6.581,
    "distinct_stocks": 2181,
    "distinct_dates": 3571,
    "date_range": [
      "2011-10-03",
      "2026-08-05"
    ],
    "censoring_rate": 0.00408,
    "max_quarter_share": 0.0437,
    "max_stock_share": 0.0018,
    "max_sector_share": null,
    "control_rung_distribution": {
      "0": 0.7501,
      "1": 0.2196,
      "2": 0.03,
      "3": 0.0002,
      "4": 0.0
    },
    "mean_controls_per_event": 19.31
  },
  "horizons": [
    {
      "days": 1,
      "n_eff": 80479.8,
      "hit_rate": 0.4517,
      "control_hit_rate": 0.4139,
      "lift": 0.0378,
      "lift_ci95": [
        0.0338,
        0.0417
      ],
      "lift_ci_method": "cluster_bootstrap_date_block_B10000_BCa",
      "lift_p_value": 0.0001,
      "median_change": -0.0021,
      "control_median_change": -0.00357,
      "excess_median": 0.00147,
      "trimmed_mean_change": -0.00073,
      "spread": {
        "p10": -0.0299,
        "p25": -0.0154,
        "p75": 0.012,
        "p90": 0.0299
      },
      "mfe": 0.0154,
      "mae": -0.0149,
      "break_even_hit_rate": 0.5556,
      "break_even_assumptions": {
        "bracket": 0.02,
        "round_trip_cost": 0.002225,
        "impact": 0.0
      },
      "benchmark_median_change": 0.0,
      "interval_includes_zero": false,
      "interval_check": {
        "bootstrap_half_width": 0.00397,
        "analytic_clustered_half_width": 0.00324,
        "wilson_on_n_eff_half_width": 0.00344,
        "ratio_bootstrap_to_analytic": 1.224,
        "ratio_bootstrap_to_wilson_on_rate": 1.153
      },
      "n_eff_raw_design": 19522.5
    },
    {
      "days": 3,
      "n_eff": 80715.4,
      "hit_rate": 0.4869,
      "control_hit_rate": 0.4499,
      "lift": 0.0371,
      "lift_ci95": [
        0.0317,
        0.0425
      ],
      "lift_ci_method": "cluster_bootstrap_date_block_B10000_BCa",
      "lift_p_value": 0.0001,
      "median_change": -0.00093,
      "control_median_change": -0.00375,
      "excess_median": 0.00282,
      "trimmed_mean_change": 0.00167,
      "spread": {
        "p10": -0.0485,
        "p25": -0.0239,
        "p75": 0.0239,
        "p90": 0.0545
      },
      "mfe": 0.028,
      "mae": -0.0257,
      "break_even_hit_rate": 0.5556,
      "break_even_assumptions": {
        "bracket": 0.02,
        "round_trip_cost": 0.002225,
        "impact": 0.0
      },
      "benchmark_median_change": -0.00137,
      "interval_includes_zero": false,
      "interval_check": {
        "bootstrap_half_width": 0.00544,
        "analytic_clustered_half_width": 0.00319,
        "wilson_on_n_eff_half_width": 0.00345,
        "ratio_bootstrap_to_analytic": 1.707,
        "ratio_bootstrap_to_wilson_on_rate": 1.578
      },
      "n_eff_raw_design": 16697.8
    },
    {
      "days": 5,
      "n_eff": 79956.3,
      "hit_rate": 0.4964,
      "control_hit_rate": 0.4634,
      "lift": 0.033,
      "lift_ci95": [
        0.0278,
        0.0384
      ],
      "lift_ci_method": "cluster_bootstrap_date_block_B10000_BCa",
      "lift_p_value": 0.0001,
      "median_change": -0.0003,
      "control_median_change": -0.00346,
      "excess_median": 0.00316,
      "trimmed_mean_change": 0.00379,
      "spread": {
        "p10": -0.0612,
        "p25": -0.03,
        "p75": 0.0323,
        "p90": 0.0728
      },
      "mfe": 0.0369,
      "mae": -0.0333,
      "break_even_hit_rate": 0.5556,
      "break_even_assumptions": {
        "bracket": 0.02,
        "round_trip_cost": 0.002225,
        "impact": 0.0
      },
      "benchmark_median_change": -0.00336,
      "interval_includes_zero": false,
      "interval_check": {
        "bootstrap_half_width": 0.00527,
        "analytic_clustered_half_width": 0.00319,
        "wilson_on_n_eff_half_width": 0.00347,
        "ratio_bootstrap_to_analytic": 1.653,
        "ratio_bootstrap_to_wilson_on_rate": 1.522
      },
      "n_eff_raw_design": 16259.7,
      "distribution": {
        "bin_lo": -0.14633,
        "bin_hi": 0.19417,
        "bin_width": 0.01362,
        "event_share": [
          0.00365,
          0.00541,
          0.0086,
          0.01302,
          0.02101,
          0.03207,
          0.04793,
          0.06829,
          0.09333,
          0.1162,
          0.12697,
          0.11597,
          0.09378,
          0.07014,
          0.05159,
          0.03731,
          0.02685,
          0.01965,
          0.01373,
          0.01042,
          0.00732,
          0.00623,
          0.00406,
          0.00361,
          0.00286
        ],
        "control_share": [
          0.00442,
          0.00679,
          0.01029,
          0.01583,
          0.02395,
          0.03618,
          0.05272,
          0.07457,
          0.09843,
          0.11912,
          0.12759,
          0.11045,
          0.08663,
          0.06429,
          0.0472,
          0.03385,
          0.02466,
          0.01763,
          0.01307,
          0.00959,
          0.00718,
          0.00567,
          0.00408,
          0.00329,
          0.00254
        ]
      }
    },
    {
      "days": 10,
      "n_eff": 80531.1,
      "hit_rate": 0.5088,
      "control_hit_rate": 0.4841,
      "lift": 0.0246,
      "lift_ci95": [
        0.02,
        0.0292
      ],
      "lift_ci_method": "cluster_bootstrap_date_block_B10000_BCa",
      "lift_p_value": 0.0001,
      "median_change": 0.00144,
      "control_median_change": -0.00074,
      "excess_median": 0.00218,
      "trimmed_mean_change": 0.00856,
      "spread": {
        "p10": -0.084,
        "p25": -0.0409,
        "p75": 0.0498,
        "p90": 0.109
      },
      "mfe": 0.0542,
      "mae": -0.0471,
      "break_even_hit_rate": 0.5556,
      "break_even_assumptions": {
        "bracket": 0.02,
        "round_trip_cost": 0.002225,
        "impact": 0.0
      },
      "benchmark_median_change": -0.00879,
      "interval_includes_zero": false,
      "interval_check": {
        "bootstrap_half_width": 0.00461,
        "analytic_clustered_half_width": 0.00317,
        "wilson_on_n_eff_half_width": 0.00345,
        "ratio_bootstrap_to_analytic": 1.452,
        "ratio_bootstrap_to_wilson_on_rate": 1.335
      },
      "n_eff_raw_design": 16330.6
    },
    {
      "days": 20,
      "n_eff": 85240.7,
      "hit_rate": 0.5106,
      "control_hit_rate": 0.4923,
      "lift": 0.0183,
      "lift_ci95": [
        0.0135,
        0.0235
      ],
      "lift_ci_method": "cluster_bootstrap_date_block_B10000_BCa",
      "lift_p_value": 0.0001,
      "median_change": 0.00238,
      "control_median_change": 0.00049,
      "excess_median": 0.00188,
      "trimmed_mean_change": 0.01432,
      "spread": {
        "p10": -0.1205,
        "p25": -0.0597,
        "p75": 0.0747,
        "p90": 0.1635
      },
      "mfe": 0.0797,
      "mae": -0.0667,
      "break_even_hit_rate": 0.5556,
      "break_even_assumptions": {
        "bracket": 0.02,
        "round_trip_cost": 0.002225,
        "impact": 0.0
      },
      "benchmark_median_change": -0.02187,
      "interval_includes_zero": false,
      "interval_check": {
        "bootstrap_half_width": 0.00499,
        "analytic_clustered_half_width": 0.00309,
        "wilson_on_n_eff_half_width": 0.00336,
        "ratio_bootstrap_to_analytic": 1.616,
        "ratio_bootstrap_to_wilson_on_rate": 1.488
      },
      "n_eff_raw_design": 16692.2
    }
  ],
  "gates": [
    {
      "id": "n_eff",
      "label": "Effective sample size",
      "threshold": ">= 100",
      "observed": "79956",
      "passed": true
    },
    {
      "id": "distinct_dates",
      "label": "Distinct event dates",
      "threshold": ">= 60",
      "observed": "3571",
      "passed": true
    },
    {
      "id": "distinct_stocks",
      "label": "Distinct securities",
      "threshold": ">= 25",
      "observed": "2181",
      "passed": true
    },
    {
      "id": "calendar_span",
      "label": "Calendar span",
      "threshold": ">= 5 years",
      "observed": "14.8 years",
      "passed": true
    },
    {
      "id": "quarter_share",
      "label": "Largest share in one quarter",
      "threshold": "<= 20.0%",
      "observed": "4.4%",
      "passed": true
    },
    {
      "id": "stock_share",
      "label": "Largest share from one security",
      "threshold": "<= 5.0%",
      "observed": "0.2%",
      "passed": true
    },
    {
      "id": "censoring",
      "label": "Censoring rate",
      "threshold": "<= 2.0%",
      "observed": "0.4%",
      "passed": true
    },
    {
      "id": "control_match",
      "label": "Events on relaxation rung 3-4",
      "threshold": "<= 20.0%",
      "observed": "0.0%",
      "passed": true
    }
  ],
  "multiple_testing": {
    "variants_in_grid": 25,
    "tests_on_site": 1125,
    "bh_fdr_q": 0.1,
    "passes_fdr": true,
    "adjusted_p": 0.00018,
    "raw_p": 0.0001
  },
  "years": [
    {
      "year": 2011,
      "n_eff": 327.9,
      "lift": 0.0334
    },
    {
      "year": 2012,
      "n_eff": 2874.0,
      "lift": 0.0324
    },
    {
      "year": 2013,
      "n_eff": 2405.7,
      "lift": 0.035
    },
    {
      "year": 2014,
      "n_eff": 4155.0,
      "lift": 0.0323
    },
    {
      "year": 2015,
      "n_eff": 3699.1,
      "lift": 0.032
    },
    {
      "year": 2016,
      "n_eff": 3907.8,
      "lift": 0.0308
    },
    {
      "year": 2017,
      "n_eff": 5804.5,
      "lift": 0.0387
    },
    {
      "year": 2018,
      "n_eff": 4123.3,
      "lift": 0.021
    },
    {
      "year": 2019,
      "n_eff": 3662.9,
      "lift": 0.0169
    },
    {
      "year": 2020,
      "n_eff": 5300.1,
      "lift": 0.0384
    },
    {
      "year": 2021,
      "n_eff": 7481.4,
      "lift": 0.0492
    },
    {
      "year": 2022,
      "n_eff": 6083.8,
      "lift": 0.0334
    },
    {
      "year": 2023,
      "n_eff": 7265.3,
      "lift": 0.049
    },
    {
      "year": 2024,
      "n_eff": 8540.1,
      "lift": 0.0272
    },
    {
      "year": 2025,
      "n_eff": 6843.9,
      "lift": 0.0143
    },
    {
      "year": 2026,
      "n_eff": 4273.8,
      "lift": 0.0279
    }
  ],
  "regimes": [
    {
      "trend": "above",
      "vol_tercile": 1,
      "n_eff": 216.8,
      "lift": -0.0492
    },
    {
      "trend": "above",
      "vol_tercile": 2,
      "n_eff": 176.1,
      "lift": 0.0592
    },
    {
      "trend": "above",
      "vol_tercile": 3,
      "n_eff": 2058.7,
      "lift": 0.0368
    },
    {
      "trend": "below",
      "vol_tercile": 1,
      "n_eff": 24036.2,
      "lift": 0.0367
    },
    {
      "trend": "below",
      "vol_tercile": 2,
      "n_eff": 28200.4,
      "lift": 0.0229
    },
    {
      "trend": "below",
      "vol_tercile": 3,
      "n_eff": 24945.6,
      "lift": 0.0414
    }
  ],
  "robustness": {
    "split_half_same_sign": true,
    "split_half": {
      "first": 0.0355,
      "second": 0.0304
    },
    "years_positive": 16,
    "years_total": 16,
    "non_overlapping_lift": 0.027,
    "sector_matched_lift": null,
    "cost_adjusted_lift": 0.0331,
    "censoring_worst_case_lift": 0.0312,
    "parameter_grid_median_lift": 0.033,
    "knife_edge": false,
    "parameter_grid": {
      "axis_a": "streak",
      "axis_b": "ma_length",
      "cells": [
        {
          "a": 1,
          "b": 40,
          "lift": 0.0217,
          "n_eff": 549578.0
        },
        {
          "a": 1,
          "b": 45,
          "lift": 0.0223,
          "n_eff": 560294.0
        },
        {
          "a": 1,
          "b": 50,
          "lift": 0.0226,
          "n_eff": 569406.0
        },
        {
          "a": 1,
          "b": 55,
          "lift": 0.0226,
          "n_eff": 576587.0
        },
        {
          "a": 1,
          "b": 60,
          "lift": 0.023,
          "n_eff": 583259.0
        },
        {
          "a": 2,
          "b": 40,
          "lift": 0.0284,
          "n_eff": 238896.0
        },
        {
          "a": 2,
          "b": 45,
          "lift": 0.0291,
          "n_eff": 246901.0
        },
        {
          "a": 2,
          "b": 50,
          "lift": 0.0293,
          "n_eff": 253790.0
        },
        {
          "a": 2,
          "b": 55,
          "lift": 0.0291,
          "n_eff": 259324.0
        },
        {
          "a": 2,
          "b": 60,
          "lift": 0.0291,
          "n_eff": 264253.0
        },
        {
          "a": 3,
          "b": 40,
          "lift": 0.033,
          "n_eff": 97515.0
        },
        {
          "a": 3,
          "b": 45,
          "lift": 0.0332,
          "n_eff": 102587.0
        },
        {
          "a": 3,
          "b": 50,
          "lift": 0.033,
          "n_eff": 107013.0
        },
        {
          "a": 3,
          "b": 55,
          "lift": 0.0325,
          "n_eff": 110661.0
        },
        {
          "a": 3,
          "b": 60,
          "lift": 0.0326,
          "n_eff": 113836.0
        },
        {
          "a": 4,
          "b": 40,
          "lift": 0.0394,
          "n_eff": 37607.0
        },
        {
          "a": 4,
          "b": 45,
          "lift": 0.0398,
          "n_eff": 40455.0
        },
        {
          "a": 4,
          "b": 50,
          "lift": 0.0401,
          "n_eff": 42937.0
        },
        {
          "a": 4,
          "b": 55,
          "lift": 0.0393,
          "n_eff": 44967.0
        },
        {
          "a": 4,
          "b": 60,
          "lift": 0.0391,
          "n_eff": 46846.0
        },
        {
          "a": 5,
          "b": 40,
          "lift": 0.0428,
          "n_eff": 13707.0
        },
        {
          "a": 5,
          "b": 45,
          "lift": 0.0442,
          "n_eff": 15096.0
        },
        {
          "a": 5,
          "b": 50,
          "lift": 0.0453,
          "n_eff": 16418.0
        },
        {
          "a": 5,
          "b": 55,
          "lift": 0.0445,
          "n_eff": 17463.0
        },
        {
          "a": 5,
          "b": 60,
          "lift": 0.0432,
          "n_eff": 18437.0
        }
      ]
    },
    "entry_delayed_lift": 0.0165,
    "placebo_lift": -0.0015
  },
  "control_seed": 42,
  "control_stats": {
    "events": 107238,
    "events_with_controls": 107238,
    "unmatched": 0,
    "mean_controls_per_event": 19.33
  },
  "cost_assumption_source": {
    "generated_at": "2026-09-05T04:19:20Z",
    "cash_equity_rate_version": "2026-09-05"
  },
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "method_url": "https://learnnifty.com/base-rates/methodology/",
  "disclaimer": "Historical frequencies only. Not investment advice, a recommendation or a price target. LearnNifty is not registered with SEBI as an Investment Adviser or Research Analyst."
}