1Copy the scriptPress Copy script above, or the copy button on the code below.
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
99 lines of Pine Script v5 from Tradingview/session-wicks-v2.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Session Wicks triggers long entries when smoothed Heikin-Ashi turns bullish while RSI trades above its moving average, and short entries on bearish flips below the RSI average. Exits occur when RSI crosses overbought or oversold thresholds, or when the Heikin-Ashi direction reverses. Key inputs configure smoothing lengths, RSI parameters, and an optional intraday session window. It executes on the price chart without a default stop loss.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
RSI Length
int
14
rsiLengthInput
Source
source
close
rsiSourceInput
MA Type
string
SMA
maTypeInput
MA Length
int
14
maLengthInput
Smoothed HA Length 1
int
10
ha_smooth1
Smoothed HA Length 2
int
10
ha_smooth2
Strategy Start Date
time
timestamp("01 January 2020 00:00:00 UTC-5")
strategy_start
Use Trading Hours
bool
false
use_trading_hours
session
0930-1600
trading_time
Long Trades
bool
true
long_trades
Short Trades
bool
true
short_trades
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 intraday strategy enters positions based on an alignment of trend, momentum, and oscillator indicators. It triggers long entries when the Commodity Channel Index is above a positive threshold, a fast Relative Strength Index crosses above a slow RSI, price
This strategy calculates fast and slow exponential moving averages, the Relative Strength Index, and the Average True Range directly on the price chart. It enters long positions when the fast EMA crosses above the slow EMA with RSI above the minimum threshold
This session-based strategy triggers long entries at the start of the New York trading session when trend and momentum conditions align. It calculates a 38-period Exponential Moving Average and a 14-period RSI. A long position is taken at session open if the c
This intraday trading strategy combines fast, slow, and trend exponential moving averages with MACD, RSI, and ADX filters to generate trade signals during active trading sessions. It enters long positions when the fast EMA crosses above the slow EMA above the
2 EMA/SMA + RSI Strategy [Alorse] combines three configurable moving averages with a short-period Relative Strength Index filter. It plots fast, slow, and trend moving averages on the price chart. Long entries trigger when the fast moving average is above the
This strategy plots on the price chart and opens long or short positions when a weighted score from MACD, Stochastic RSI, RSI, Supertrend and a moving-average crossover exceeds a user-set trigger. Each component has its own weight and candle delay. Entries can