ClickAPIs
Examples · Where should a MSFT long put its stop and targets?

Examples / Everyday

Where should a MSFT long put its stop and targets?

Level 2 · EverydayPOST/v1/entry-exit

What it answers

ATR, chandelier and swing-low stops, targets at 1R, 2R and 3R and at the nearest resistance, the position size that risks 1% of a $100k account, and how often the same rules hit the stop or the 2R target first over 10 years.

Request

Input POST /v1/entry-exit
{
  "symbol": "MSFT",
  "account_size": 100000
}
Open in playground

Response

Output 200 OK
{
  "ok": true,
  "data": {
    "symbol": "MSFT",
    "as_of": "2026-11-12",
    "side": "long",
    "entry": 521.89,
    "atr": 15.3264,
    "atr_pct": 0.029367,
    "stops": {
      "atr": {
        "price": 491.2372,
        "distance": 0.058734
      },
      "chandelier": {
        "price": 513.1707,
        "distance": 0.016707
      },
      "swing": {
        "price": 519.4374,
        "distance": 0.0047
      }
    },
    "stop_method": "atr",
    "stop": 491.2372,
    "risk_per_share": 30.6528,
    "risk_pct": 0.058734,
    "targets": [
      {
        "r_multiple": 1.0,
        "price": 552.5428,
        "move": 0.058734
      },
      {
        "r_multiple": 2.0,
        "price": 583.1957,
        "move": 0.117469
      },
      {
        "r_multiple": 3.0,
        "price": 613.8485,
        "move": 0.176203
      }
    ],
    "level_target": {
      "price": 540.97,
      "move": 0.036559,
      "reward_risk": 0.622,
      "kind": "resistance"
    },
    "nearest_resistance": 540.97,
    "nearest_support": 513.9694,
    "position_size": {
      "account_size": 100000.0,
      "risk_per_trade": 0.01,
      "cash_at_risk": 1000.0,
      "shares": 32,
      "notional": 16700.48,
      "notional_pct_of_account": 0.167
    },
    "historical": {
      "rule": "enter at every close, stop by method, target 2.0R, max 60 bars",
      "years": 10,
      "by_stop_method": [
        {
          "method": "atr",
          "trades": 2574,
          "target_first": 0.5117,
          "stop_first": 0.4507,
          "neither_within_max_bars": 0.0377,
          "median_bars_to_target": 20.0,
          "median_bars_to_stop": 7.0,
          "expectancy_r": 0.6124,
          "breakeven_win_rate": 0.3333
        },
        {
          "method": "chandelier",
          "trades": 2050,
          "target_first": 0.501,
          "stop_first": 0.4556,
          "neither_within_max_bars": 0.0434,
          "median_bars_to_target": 16.0,
          "median_bars_to_stop": 5.0,
          "expectancy_r": 0.5937,
          "breakeven_win_rate": 0.3333
        },
        {
          "method": "swing",
          "trades": 2391,
          "target_first": 0.4287,
          "stop_first": 0.4203,
          "neither_within_max_bars": 0.151,
          "median_bars_to_target": 16.0,
          "median_bars_to_stop": 4.0,
          "expectancy_r": 0.5499,
          "breakeven_win_rate": 0.3333
        }
      ]
    },
    "parameters": {
      "atr_period": 14,
      "atr_mult": 2.0,
      "chandelier_bars": 22,
      "chandelier_mult": 3.0
    },
    "notes": [
      "atr stop: entry -/+ atr_mult x ATR. chandelier: highest high (lowest low) of chandelier_bars -/+ chandelier_mult x ATR. swing: the nearest confirmed swing low (high) of the last 30 bars beyond the entry, padded by 0.1 ATR.",
      "Historical hit rates use the same stop rules at every past close; a bar that touches both stop and target counts as a stop (conservative)."
    ],
    "interval": "1day"
  },
  "meta": {
    "op": "entry-exit",
    "units": 3,
    "cost_usd": 0.0,
    "billing": "internal",
    "free_call": false,
    "free_calls_left": 0,
    "balance_usd": 5.0,
    "ms": 306,
    "interval": "1day",
    "data_as_of": "2026-11-12",
    "partial_last_bar": false
  }
}

How to read it

stop and risk_pct define the trade; position_size.shares is what to buy. historical.by_stop_method[].expectancy_r above 0 means the rule made money on average in the past.

Parameters and limits: Entry & exit plan reference. Analytics, not advice.