1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
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
Futures Compounding Machine enforces compounding risk controls that scale take-profit targets upward after wins and downward after losses using configurable ratios. Additional risk management includes max daily loss halts, consecutive loss limits, and time-of-day trading windows. Before each entry it performs a risk-reward check against minimum thresholds. The strategy draws signals, labels, and status messages directly on the price chart. It supports auto-instrument configuration for multiple futures contracts and exits at fixed dollar-based take-profit targets rather than waiting for opposing signals.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Auto-Configure by Instrument
bool
true
autoConfig
Contracts per Trade
int
1
contracts
Enable Auto Position Sizing
bool
true
useAutoSize
Scale Up Every ($) [auto-config OFF only]
float
50.0
sizeUpEvery
Scale Down Every ($) [auto-config OFF only]
float
50.0
sizeDnEvery
Max Additional Contracts [auto-config OFF only]
int
3
sizeMax
Trade Direction
string
Both
tradeDir
Manual Day Bias (type bull / bear / neutral / both / blank)
string
manualBiasText
Neutral Bias = Allow Both Directions
bool
true
neutralTrades
Use Embedded Apex Trend Signal (overrides Manual)
bool
false
useApexBias
Trend Reference Symbol (blank = current chart)
symbol
apexSymbolInput
Apex Signal Mode
string
Trend (Adaptive MA)
apexModeInput
Show all 40 settings
Setting
Type
Default
Variable
Apex Lookback Period
int
20
apexLen
Apex Signal Timeframe
timeframe
D
apexTimeframe
Max Daily Loss ($)
float
35.0
maxDailyLoss
Max Consecutive Losses
int
3
maxConsecLosses
Max Consecutive Loss Days
int
2
maxConsecDays
Initial Trade Profit Target ($)
float
35.0
initTradeProfit
Fallback Compound Ratio
float
1.1
compoundRatio
Reset TP Target Each Day
bool
false
resetTpDaily
Max Loss Per Trade ($)
float
70.0
maxLossPerTrade
Minimum TP Floor (% of Initial Target)
float
40.0
minTpPct
Enable Morning 07:00 - 11:00 CT
bool
true
useWin1
Morning Compound Ratio
float
1.15
win1Ratio
Enable Midday 11:00 - 13:00 CT
bool
false
useWin2
Midday Compound Ratio
float
1.0
win2Ratio
Enable Afternoon 13:00 - 16:00 CT
bool
true
useWin3
Afternoon Compound Ratio
float
1.05
win3Ratio
Enable Late Day 16:00 - 17:00 CT
bool
false
useWin4
Late Day Compound Ratio
float
1.0
win4Ratio
Enable Pivot Stop
bool
true
useStopLoss
Pivot Buffer (x ATR)
float
0.25
pivotBuffer
Enable Auto Breakeven
bool
false
useBreakeven
Breakeven Trigger (x ATR)
float
2.0
beTriggerMult
Breakeven Buffer (x ATR)
float
0.5
beBuffer
Breakeven Dollar Floor ($)
float
15.0
beFloorDollars
Enable R:R Gate
bool
true
useRRGate
Min Reward:Risk Ratio
float
1.5
rrMin
Enable Trend Filter
bool
true
useTrendFilter
Trend EMA Length
int
20
trendLen
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.
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
This strategy plots up to four volume-weighted average price lines on the price chart: midnight, previous day, session, and a custom anchor such as session high and low, week, or month. It enters when price crosses two selected lines, using same-bar, position,
This strategy trades the three-candle strike pattern filtered by trend direction and time sessions. It calculates market regime using linear regression and exponential or smoothed moving averages to distinguish between ranging and trending conditions. Risk man
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
This overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail
This strategy evaluates breakout and trend opportunities on the price chart using a weighted composite score of volume, trend, and candlestick structure. It tracks volume spikes, fast and slow EMAs, higher-timeframe EMA trend alignment, opening ranges, and ses