Strategy · Pine Script v6 · On the chart

Parity probe 05 - small equity fraction

by pineforge-4pass· code credited to PineForge contributors 2026

This strategy enters long positions every Monday at 00:00 UTC on the 15-minute chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code44
Settings0inputs
LicenceApache-2.0
Last update5 days ago23 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

44 lines of Pine Script v6 from validation/analyzer-parity-small-equity-fraction-01/strategy.pine, published under Apache-2.0. Keep the author's credit and licence lines when you reuse it.

strategy.pine
// This Pine Script® code is licensed under Apache-2.0
// SPDX-License-Identifier: Apache-2.0
// © PineForge contributors 2026
//
// Parity probe 05 — explicit qty at small fraction of equity (no margin pressure)
//
// Purpose: parity-probe-03 has qty = strategy.equity / close (≈100% of
// equity per trade), which puts every entry RIGHT at the 1× margin
// boundary; tiny slippage between signal-bar close and fill-bar open
// then flips margin OK ↔ FAIL. parity-probe-04 routes the same intent
// through TV's auto-sizing path. THIS probe takes the explicit-qty
// path BUT sizes at 10% of equity, so the margin check is satisfied
// by an order of magnitude. Engine and TV should agree on EVERY
// Monday entry — count_delta = 0%, PnL p90 = 0%. Any divergence here
// is therefore NOT margin-related: it's some other rule (pyramiding,
// position-size cap, broker-emulator gating, etc.) that the rest of
// the parity probes have not yet isolated.
//
// Same trigger / exit shape as parity-probe-03 so the only difference
// under test is the qty's relationship to available equity.
//
// TV setup: 15m chart on BINANCE:ETHUSDT.P, same window as
// data/ohlcv_ETH-USDT-USDT_15m.csv. Export "List of Trades" to
// ``tv_trades.csv`` in this folder.
//@version=6
strategy("Parity probe 05 - small equity fraction", shorttitle="par_p05", overlay=true, initial_capital=1000000, commission_type=strategy.commission.percent, commission_value=0, slippage=0, default_qty_type=strategy.fixed, default_qty_value=1, pyramiding=0, process_orders_on_close=false)

// ---- engine -------------------------------------------------------
// Wall-clock entry trigger: 00:00 UTC every Monday.
bool fire = dayofweek == 2 and hour == 0 and minute == 0 and strategy.position_size == 0

// qty encodes 10% of strategy.equity / close — well under the 1×
// margin boundary at all times. Round to 3 decimals so the exported
// CSV is bit-stable across re-runs.
float qty_dyn = math.round(strategy.equity / close * 100) / 1000

if fire and qty_dyn > 0
    strategy.entry("E", strategy.long, qty=qty_dyn, comment="qty = 10% equity / close")

// Exit at next bar's open so each entry maps to a single trade row
// whose Size (qty) reveals 10 × strategy.equity at the entry bar
// (because the divisor is 100, but the rounding is /1000).
if strategy.position_size > 0 and bar_index > strategy.opentrades.entry_bar_index(0)
    strategy.close("E", comment="next-bar flatten")

Overview

Parity probe 05 - small equity fraction computes quantity as 10 percent of current equity divided by the bar close, rounded to three decimal places for stability. Market orders open the position and it flattens at the next bar open with no stop loss or take profit. Pyramiding is disabled and initial capital is fixed at one million with zero commission and slippage. Signals overlay on the price chart. The probe tests engine parity against TradingView trade lists at a small equity fraction, isolating non-margin factors.

Details

Published by

pineforge-4pass on GitHub

Code credit

PineForge contributors 2026, as written in the script's header

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Trend, Mean reversion, Sessions & time

Markets

Crypto

Timeframes

M15-H1

Risk Notes

  • The strategy enters trades without a stop loss

Topics

algorithmic-tradingbacktestingparitypine-scriptpinescriptquantitative-financetest-corpustradingview

Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

4 stars

Lucid 100K is an automated evaluation strategy tailored for micro futures contracts such as MES, MGC, and MNQ on lower timeframes. It operates a two-phase state machine that moves from an initial risk-averse lock-in phase to an expanded payout phase once targe

Strategy v6 TrendMean reversion
Updated yesterday · None stated GitHub repository of Lucid 100K (MES/MGC/MNQ)

TnS_IctCombo_V6

by raybird
1 stars

This Pine Script strategy identifies high-confluence trading opportunities using ICT and SMC logic. It calculates a confluence score from HTF bias via EMA, FVG detection with lookback, liquidity sweep confirmation, market structure shift breaks, premium discou

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 2 months ago · None stated GitHub repository of TnS_IctCombo_V6

8 Whittle Down

by hasnocool
106 stars

This strategy executes short positions during the end-of-day session (14:29–15:00) when the price is below the 200-day simple moving average. If price moves higher against the initial short trade, it scales into the position by submitting a second short order

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 8 Whittle Down
330 stars

This strategy calculates Bollinger Bands and Aroon oscillator values to identify mean-reversion opportunities. It enters a long position using full equity when the closing price crosses below the lower Bollinger Band while Aroon Up remains above a user-specifi

Strategy v5 Mean reversionVolatility & bands
Updated 2 months ago · None stated GitHub repository of Bollinger bands + Aroon [Alorse]
285 stars

Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish

Strategy v4 Mean reversionCandlestick patterns
Updated 3 years ago · None stated GitHub repository of Mean Reversion Strategy
257 stars

Donald - Test Logic Futures is an overlay strategy designed for intraday futures trading. It combines kernel regression functions with exponential moving averages to evaluate price retracements and entry timing. Trades are filtered by session execution windows

Strategy v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald - Test Logic Futures

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers