Strategy · Pine Script v6 · On the chart

Institutional HFT Engine - QuantAlgo

by thesenegalesehitch

This strategy evaluates trading opportunities using a probabilistic scoring model combined with Smart Money Concepts (SMC) pattern detection, including Break of Structure (BOS), Fair Value Gaps (FVG), and Order Blocks.

View on GitHub

GitHub stars4on the repository
Pine versionv6current
Lines of code394
Settings18inputs
LicenceCustom licence
Last update4 months ago6 Jun 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  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

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Institutional HFT Engine - QuantAlgo overlays signals directly on the price chart and filters trades using London and New York killzone sessions alongside multi-timeframe bias alignment. The risk engine manages position sizing via percentage-based risk, daily drawdown limits, and cooldown periods after consecutive losses. Strategy exits rely on dual take-profit levels based on risk/reward ratios, breakeven adjustments, and trailing stops.

Details

Published by

thesenegalesehitch on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Sessions & time, Support & resistance, Screeners & dashboards

Markets

Forex

Timeframes

M1-M5, M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Base Risk Per Trade (%)float1.0inp_risk_pct
Max Daily Drawdown (%)float4.0inp_max_dd_day
Max Consec Losses (Pause)int3inp_max_losses
Cooldown Bars After Lossint5inp_cooldown
Dynamic Risk Scaling (Anti-Drawdown)booltrueinp_dynamic_risk
Base Score Threshold (0-100)float65.0inp_min_score
Strict Mode (Wait for perfect alignments)booltrueinp_strict_mode
Swing / Liquidity Lookbackint7inp_bos_len
FVG Min Size (x ATR)float0.5inp_fvg_min
TP1 Risk/Reward Ratiofloat1.5inp_tp1_rr
TP2 Risk/Reward Ratiofloat3.0inp_tp2_rr
Volatility Trailing on TP2booltrueinp_use_trailing
Show all 18 settings
SettingTypeDefaultVariable
Break-Even Offset (x ATR)float0.2inp_be_offset
Show Godmode Dashboardbooltrueshow_dashboard
Show Entry/Exit Labelsbooltrueshow_labels
Show FVG Zonesbooltrueshow_fvg
Show Order Blocksbooltrueshow_ob
Use London & NY Killzones Onlybooltrueuse_killzones
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

FxHD Strategy v2.0

by alboogycOdR
6 stars

FxHD Strategy v2.0 is a Fibonacci multi-timeframe strategy drawn on the price chart. It reads a higher timeframe, defaulting to four hours, and sets bias with CRT kill zones, the last two candles, dynamic CRT, or market structure, plus a fallback method. It pl

Strategy v6 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of FxHD Strategy v2.0

Daily Bias + FVG Strategy

by TradersPost
218 stars

This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto

Strategy v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Daily Bias + FVG Strategy
106 stars

This script monitors opening gap conditions and breakout behavior relative to the first candle's range across up to twenty configurable stock tickers. It detects whether following bars remain inside the opening range before breaking out, displaying the status

Strategy v4 Screeners & dashboardsBreakout Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 1St Bar GAP+BkOut Screener v2 by RM

P404 Smoke

by Musyimi97
16 stars

P404 Smoke is a price-chart strategy that sequences an optional higher-timeframe EMA bias, a liquidity range from recent pivots, a sweep of buy-side or sell-side liquidity, and a market structure shift within a set bar window. Comments state it then looks for

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of P404 Smoke

NQ 9:45-10:15 ICT Strategy

by eddiebelaval
7 stars

This ICT-based strategy trades during the 9:45 AM to 10:15 AM New York session window. It calculates a daily bias using a 20-period daily EMA and tracks previous day highs and lows to identify liquidity sweeps. The script refines order block entry levels and m

Strategy v6 SMC / ICT / price actionSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of NQ 9:45-10:15 ICT Strategy
5 stars

RG Structure is a pivot-constrained break-and-retest strategy that calculates dynamic trendlines, market structure changes, and regime states on the price chart. It identifies support and resistance lines through pivot points and evaluates break-and-retest sig

Strategy v6 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of RG Structure Visual Edition

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