Strategy · Pine Script v5 · On the chart

Mini Futures Macro Strategy v10

by cc4wang-ui

A strategy for a Taiwan mini index futures contract that combines a manually updated macro score with chart pattern breakouts.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code938
Settings40inputs
LicenceNone stated
Last update4 months ago22 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

Growth, inflation, valuation and sentiment readings are typed in as inputs and produce a green, red or neutral bias. Entries need four gates to pass, including pattern quality, a volume surge and a cooldown. Exits use an ATR stop, a trailing exit that starts after a set ATR gain, a time stop in bars, and an optional OBV reversal exit. It takes one position at a time.

Details

Published by

cc4wang-ui on GitHub

Draws

On the price chart

Category

Trend, Breakout

Markets

Indices

Timeframes

H4 and above

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

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

SettingTypeDefaultVariable
ISM 製造業float52.7ism_mfg
ISM 新訂單float53.5ism_new_orders
ISM 新訂單(上月)float55.8ism_new_orders_prev
NFP 非農(千人)float178nfp_k
消費者信心float57.9consumer_sentiment
ISM 就業float48.7ism_employment
ISM 物價支付float78.3ism_prices
Core PCE YoY%float3.1core_pce_yoy
平均時薪 YoY%float3.5avg_hourly_yoy
SPX PE (trailing)float28.4spx_pe_input
台股加權 PEfloat29.5tw_pe_input
CAPE Shiller PEfloat35.0cape_input
Show all 40 settings
SettingTypeDefaultVariable
Put/Call Ratiofloat0.75put_call_input
AAII 空頭 %float30aaii_bears
AAII 多頭 %float42aaii_bulls
綠燈分數門檻int15d_green_thr
紅燈分數門檻int-20d_red_thr
穩定度最低 %int40d_stability_min
型態品質最低分(D2)int90d2_quality_min
量能爆發倍數(D3)float1.8d3_vol_mult
OBV 均線期數int5obvSmaLen
冷卻期 K 線(D4)int20cooldownBars
固定停損 × ATRfloat1.5stopAtrMult
波段追蹤啟動(× ATR)float1.0trailStartAtr
波段拉回觸發 %float0.23trailPullback
時間止損 K 線int10timeStopBars
OBV 方向翻轉全平booltrueuseObvExit
左側確認K線int5pivotLeft
右側確認K線int3pivotRight
價格容差 %float3.0tolerance
品質量能倍數float1.2volMultiple
均量期int20volAvgLen
型態最大跨度(K線)int200maxPatBars
型態最小跨度(K線)int5minPatBars
型態最小高度(×ATR)float0.5minHeightATR
最低 R:Rfloat1.5minRR
雙重底 (多) 88%booltrueen_dblBot
反轉頭肩底 (多) 89%booltrueen_invHS
上升三角 (多) 83%booltrueen_ascTri
雙重頂 (空) 73%booltrueen_dblTop
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

This trend-following strategy executes a classic Donchian channel breakout system designed to cross-validate backtest results against external framework benchmarks. It triggers a long entry when the closing price breaks above the highest high of the prior entr

Strategy v6 BreakoutTrend
Updated yesterday · AGPL-3.0 GitHub repository of Forven S01509 - Simple Donchian 20/10 Breakout
257 stars

This strategy plots running pivot highs as red R circles and pivot lows as blue S circles directly on the price chart. It computes an EMA 3 and a Cto trend line from close prices, then generates long signals on upward EMA-Cto crossovers combined with price pos

Strategy v6 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Best Chart 1m Strategy Candle Bar

12/26-IT Strategy

by hasnocool
106 stars

This strategy executes trades based on crossovers between a 12-period and a 26-period exponential moving average (EMA). Long positions can be filtered by pivot resistance breakouts and RSI boundary ranges. For trade management, it provides two configurable par

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 12/26-IT Strategy

均线突破交易系统

by tangly1024
76 stars

This strategy trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of 均线突破交易系统
53 stars

This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MPL-2.0 GitHub repository of BTCUSD 5M Optimized Strategy

More Trend scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers