Black Friday: 2 years for the price of 1.Or 3 months for the price of 1. On Pro.2 d 6 hleftSee plans →
Free tool

Consistency rule calculator

Type your profit, your biggest day and the rule's share. The calculator gives your share, the profit that meets the rule and the day cap that keeps it. Below it: the biggest day's share in back-to-back example evaluations of one MNQ breakout at 1 to 5 micros from 4 November 2024 to 22 October 2026. Written in Pine Script? Paste it here: a free account with no card runs it on CME Group futures with $2.50 a contract and a tick of slippage charged.

Free plan · unlimited backtests · no card
Consistency rule calculatorNo day above a share of the profit
Biggest day's share
37.5%
A 30% rule
Not met
Profit that meets it
$3,000
Day cap by the target
$900

Your biggest day is 37.5% of your profit. To meet a 30% rule with no bigger day your profit needs to reach $3,000: $600 more. A day capped at $900 keeps the rule once the $3,000 target is reached.

The share is your biggest day divided by your profit. Example numbers: check how your own plan words its rule.

Paste your script

Pine v6, as TradingView has it.

Consistency rule calculatorNo day above a share of the profit
Biggest day's share
37.5%
A 30% rule
Not met
Profit that meets it
$3,000
Day cap by the target
$900

Your biggest day is 37.5% of your profit. To meet a 30% rule with no bigger day your profit needs to reach $3,000: $600 more. A day capped at $900 keeps the rule once the $3,000 target is reached.

The share is your biggest day divided by your profit. Example numbers: check how your own plan words its rule.

A consistency rule caps your biggest day at a share of your profit. The share is your biggest day divided by your profit.

$900 on your biggest day and $2,400 made is 37.5%. A 30% rule is met at 30% or less. To meet it with no bigger day your profit needs to reach $900 ÷ 30% = $3,000: $600 more.

We counted the share in back-to-back example evaluations of one MNQ opening range breakout over two years. At 1 micro all 3 attempts that reached the $3,000 target met a 40% or a 50% rule and 2 of the 3 met 30%. The bigger the size the bigger the biggest day's share: 23.8% of the profit at the median at 1 micro and 72.4% at 5 micros. At 5 micros 7 of 46 met a 50% rule and none met 30%. You decide what size to trade.

The biggest day's share at each size

Each example evaluation starts at $50,000 on a futures day and reaches the target at $3,000 up. It ends on the drawdown when the balance touches a floor $2,000 under the highest closing balance. A day down $1,000 is stopped. A day runs from the 18:00 New York reopen to the next. The biggest day's share is counted when the attempt reaches the target. These are example numbers.

SIZEREACHED THE TARGETBIGGEST DAY'S SHARE AT THE MEDIANMET 30%MET 40%MET 50%IN ONE DAY
1 micro323.8%2330
2 micros1440.6%16101
3 micros2253.0%0391
4 micros3658.7%0074
5 micros4672.4%0177

Met counts the attempts whose biggest day was at or under the share. In one day counts the attempts that reached the target on their first day. A share above 100% means the other days lost money: the highest at 5 micros was 129.8%.

What it would take to meet the rule

For an attempt above the share the calculator asks for more profit with no bigger day. These are the medians for the attempts above each share.

SIZEMORE FOR 30%MORE FOR 40%MORE FOR 50%
1 micro$55 (1 above it)none above itnone above it
2 micros$1,121 (13 above it)$1,093 (8 above it)$653 (4 above it)
3 micros$2,353 (22 above it)$1,166 (19 above it)$864 (13 above it)
4 micros$3,020 (36 above it)$1,470 (36 above it)$968 (29 above it)
5 micros$4,289 (46 above it)$2,475 (45 above it)$1,743 (39 above it)

A day that stops at the rule's share of the target keeps the rule when the target is reached: 30% of a $3,000 target is $900. The Pine Script code for the cap is on our consistency rule page. What each size did against the drawdown and the daily loss is on our micros on a 50K page.

The script as it ran

MNQ opening range breakout with a micros input

A 15-minute opening range from 9:30 New York. A close through it after a close inside it enters from 9:45 to 12:00. One trade a day. The stop sits at the range's other side and the target at 2R. Flat on the 15:55 New York bar or the session's last bar. The Contracts input sets the micros: 1 as published.

Trades
500
Won
45.4%
Profit factor
1.00
Net
−0.2%
Worst drawdown
−17.6%
Worst trade
−$749

MNQ1! · 5-minute · 4 Nov 2024 → 22 Oct 2026 · $2.50 a contract each side and a tick of slippage · 1 micro on a $50,000 account

+$8,255 from 4 November 2024 to 23 February 2026, −$8,380 from 24 February 2026 to 22 October 2026 on 1 micro.

Pine Script v6 · 64 linesRun this script
//@version=6
// Suggested timeframe: 5-minute
strategy("MNQ opening range breakout, flat before the session ends", overlay=true, initial_capital=50000, default_qty_type=strategy.fixed, default_qty_value=1,
     commission_type=strategy.commission.cash_per_contract, commission_value=2.5, slippage=1, margin_long=0, margin_short=0)

// ── Flat before the session ends ─────────────────────────────────────────────────────────────────
flatOn = input.bool(true, "Flat before the session ends", group="Session end")
flatAt = input.session("1555-1600", "Flat from (New York)", group="Session end")

// Name the clock: with no zone, hour() and minute() read the exchange's clock, Chicago on CME's NQ
// and ES, an hour behind New York. session.islastbar also catches a holiday's early close
flatNow = flatOn and (not na(time(timeframe.period, flatAt, "America/New_York")) or session.islastbar)

// From the flat time on: no order left waiting and every trade closed at the bar's close
if flatNow
    strategy.cancel_all()
    strategy.close_all("Flat", immediately=true)

// ── The example strategy: a 15-minute opening range breakout, one trade a day ──────────────────
// Your own entries go here, behind "not flatNow"
orSess    = input.session("0930-0945", "Opening range (New York)", group="Strategy")
tradeSess = input.session("0945-1200", "Entry window (New York)", group="Strategy")
rMult     = input.float(2.0, "Target (R)", minval=0.5, step=0.5, group="Strategy")
// The size: MNQ micros a trade. One micro is $2 a point: a stop's dollars grow with every micro
micros    = input.int(1, "Contracts (MNQ micros)", minval=1, group="Strategy")

inOR    = not na(time(timeframe.period, orSess, "America/New_York"))
inTrade = not na(time(timeframe.period, tradeSess, "America/New_York"))

var float orHigh      = na
var float orLow       = na
var int   tradesToday = 0
var float stopLevel   = na
var float targetLevel = na
if session.isfirstbar
    orHigh      := na
    orLow       := na
    tradesToday := 0
if inOR
    orHigh := na(orHigh) ? high : math.max(orHigh, high)
    orLow  := na(orLow) ? low : math.min(orLow, low)

// The setup: the first close through the range after a close inside it. The stop sits at the
// range's other side and the target at rMult times the risk
rangeSet   = not inOR and not na(orHigh)
longSetup  = rangeSet and close > orHigh and close[1] <= orHigh
shortSetup = rangeSet and close < orLow and close[1] >= orLow
canTrade   = inTrade and strategy.position_size == 0 and tradesToday < 1 and not flatNow

if canTrade and longSetup and orLow < close
    stopLevel   := orLow
    targetLevel := close + (close - orLow) * rMult
    strategy.entry("Long", strategy.long, qty=micros)
    strategy.exit("Long exit", from_entry="Long", stop=stopLevel, limit=targetLevel)
    tradesToday += 1
else if canTrade and shortSetup and orHigh > close
    stopLevel   := orHigh
    targetLevel := close - (orHigh - close) * rMult
    strategy.entry("Short", strategy.short, qty=micros)
    strategy.exit("Short exit", from_entry="Short", stop=stopLevel, limit=targetLevel)
    tradesToday += 1

plot(rangeSet ? orHigh : na, "Range high", color=color.new(#16A56A, 0), style=plot.style_linebr)
plot(rangeSet ? orLow : na, "Range low", color=color.new(#E5484D, 0), style=plot.style_linebr)

Free account

No card, no time limit.

$0
  • Unlimited backtests, costs charged, with the out-of-sample check
  • The Pine script audit and the full trade list
  • The Pine Copilot writes and edits your script
  • 50 AI credits a day
The Alpha Charts terminal a free account opens: the Pine Copilot beside the chart

Prop Ready opens all two years of futures minute bars on a computer for $39 paid once and has 7 days money back. Pro adds the optimiser and every AI tool and has 30 days money back. See the plans

Questions

How do I calculate a consistency rule?

Divide your biggest day by your profit. $900 on your biggest day and $2,400 made is 37.5%. A rule of no day above 30% is met when the share is 30% or less. Check how your own plan words its rule.

How much more profit do I need to meet the consistency rule?

Divide your biggest day by the rule's share and take away what you have made. $900 ÷ 30% is $3,000: $600 more with no day above $900.

What is the most I can make in one day under a consistency rule?

Once the target is reached no day may be above the rule's share of the profit. A day capped at that share of your profit target keeps the rule: 30% of a $3,000 target is $900. Our consistency rule page has the Pine Script code for that cap.

Does trading more micros make the consistency rule harder?

On our test it did. The biggest day was 23.8% of the profit at the median at 1 micro and 72.4% at 5 micros. At 5 micros 7 of 46 attempts that reached the target met a 50% rule. At 1 micro all 3 did.

Why can the biggest day be more than the whole profit?

Because the other days lost money. At 5 micros the highest share was 129.8%.

Can I run it myself?

Yes. Run opens the script on MNQ 5-minute bars in the Alpha Charts terminal. On a computer, a free account with no card runs it as published on all two years. Its Contracts input sets the micros. A changed input or line makes it your own script: a free account then tests the newest 30 days of a futures chart under an hour. Prop Ready ($39 paid once) opens all two years for 30 days. The rules check in the terminal takes your own numbers for the target, the daily loss and the drawdown.

Is a backtest a prediction?

No. It is what a strategy's rules would have done on past prices with costs charged. Live fills, news and your own execution differ. Read it as a test of the rules and not as a forecast.

Every number comes from Alpha Charts' tester on MNQ 5-minute bars from 4 November 2024 to 22 October 2026. The counts were made on 27 November 2026. Alpha Charts is software for testing trading scripts and gives no investment advice. It is not a prop firm and is not connected with any. A backtest shows what rules would have done on past data. It does not show what they will do. Our methodology is in Data and methodology. Updated 27 November 2026.

Test your Pine Script freeFree account, no cardPaste your script