A strategy-type script for the price chart that draws the high, low and midpoint of the first part of each session, set by start hour and minute inputs, with alerts when price crosses the high or low.
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
algo-trade-indian-commodity adds VWAP and a SuperTrend with adjustable ATR period, multiplier, ATR method, signal display and highlighting, plus pivot-based support and resistance and a moving average pair. A date range input is included. Default capital is 100000 with a quantity of one. Order and stop rules are not shown in the supplied code.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Length
int
len
length
Start Hour
int
9
Start Hour
Start Minute
int
30
Start Minute
ATR Period
int
10
Periods
ATR Multiplier
float
2.0
Multiplier
Change ATR Calculation Method?
bool
true
changeATR
Show Buy/Sell Signals?
bool
true
showsignals
Highlighter On/Off?
bool
true
highlighting
Show Breaks
bool
true
toggleBreaks
Left Bars
input
len
leftBars
Right Bars
input
len
rightBars
Volume Threshold
input
len * 2
volumeThresh
Show all 25 settings
Setting
Type
Default
Variable
Source
source
close
src
Fast Length
int
5
fastLen
Slow Length
int
10
slowLen
Exponential Moving Average
bool
true
ema
Slope
float
0.5
mult
Slope Calculation Method
string
Atr
calcMethod
backpaint
bool
true
backpaint
Up Trendline Color
color
color.green
upCss
Down Trendline Color
color
color.red
dnCss
Show Extended Lines
bool
true
showExt
From
time
timestamp("14 FEB 2024 09:00 +0000")
i_from
Thru
time
timestamp("28 FEB 2024 23:30 +0000")
i_thru
Show Date Range
bool
true
i_show
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 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 intraday strategy implements session-based trading rules tailored for gold on short timeframes. It tracks the Asian session price range, VWAP, 20-period EMA, and previous day high and low levels to identify liquidity sweeps during London and New York trad
Diego's Strategy draws confirmed swing pivots on the price chart and connects them with dashed lines when the price move exceeds an ATR-based deviation threshold. It can plot Fibonacci retracement levels and use a chosen zone for entries, with separate Fibonac
Brucetrade Mechanical Framework is an overlay strategy combining higher-timeframe bias with Smart Money Concepts (SMC). It detects Fair Value Gaps (FVG), Inverted FVGs, and liquidity sweeps across configurable higher and momentum timeframes. Signals are filter
Hercules Strategy Rewrite is an automated backtesting strategy that generates entry signals using engulfing candlestick patterns, tick thresholds, and support or resistance level breakouts. It offers multi-layer filtering including moving average trend checks,
A futures strategy for 15-minute charts that builds a daily-reset VWAP with standard deviation bands. It requires several consecutive bars on one side of VWAP, then a pullback to within a small percentage of it and a bar closing in the trend direction. Entries