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
QUANT-OMEGA Strategy classifies the market with ADX and ATR, scores trend, mean-reversion and breakout signals into a confidence value, and enters only above set thresholds. Stops and targets are ATR multiples. Position size comes from a risk percentage per trade, capped by maximum leverage, with a drawdown limit, a daily loss limit and a daily trade cap. An optional UTC session filter is available. Defaults include commission, slippage and a 100000 starting capital.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Non-Repainting Mode
bool
true
i_nonRepaint
ADX Period
int
14
i_adxPeriod
ADX Trend Threshold
int
25
i_adxThreshold
ATR Period
int
14
i_atrPeriod
ATR Slow Period
int
50
i_atrSlowPeriod
EMA Fast
int
8
i_emaFast
EMA Slow
int
21
i_emaSlow
EMA Trend
int
50
i_emaTrend
Bollinger Period
int
20
i_bbPeriod
Bollinger StdDev
float
2.0
i_bbStd
RSI Period
int
14
i_rsiPeriod
Donchian Period
int
20
i_donchianPeriod
Show all 27 settings
Setting
Type
Default
Variable
Keltner Multiplier
float
1.5
i_squeezeKcMult
No Trade Threshold
int
30
i_confNoTrade
Watch Only Threshold
int
50
i_confWatch
Small Entry Threshold
int
70
i_confSmall
Strong Entry Threshold
int
85
i_confStrong
Risk Per Trade %
float
1.0
i_riskPerTrade
Max Drawdown %
float
15.0
i_maxDrawdown
Daily Loss Limit %
float
3.0
i_dailyLossLimit
Max Leverage
float
5.0
i_maxLeverage
Stop Loss ATR Multiplier
float
2.0
i_stopMultiplier
Take Profit ATR Multiplier
float
3.0
i_tpMultiplier
Use Session Filter
bool
false
i_useSessionFilter
Session Start Hour (UTC)
int
8
i_sessionStart
Session End Hour (UTC)
int
20
i_sessionEnd
Max Trades Per Day
int
5
i_maxTradesPerDay
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.
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
This strategy plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry
The Chained Linear Regression Reversal Strategy plots linear regression channels with upper and lower standard deviation bands directly on the price chart across a user-defined time window. When price breaks out of the static channel for a confirmed number of
This strategy runs on the price chart and enters long when a fast simple moving average crosses above a slow one, and short on the opposite cross, while closing the other side. Entries also need ATR above a filter, a pullback check, a minimum candle-body chang
This strategy generates buy and sell signals based on Bollinger Band crossovers combined with a simple moving average trend filter. It enters a long position when price crosses above the lower band while trading above the SMA filter line, and enters a short po
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