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
125 lines of Pine Script v5 from strategies/grid/GridBotDir [Alorse].pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Grid Bot Simulator [Alorse] marks a buy when price crosses down through a grid and a sell when price crosses up through a grid, using either high and low or close, and can bias entries up, down, or neutral. Settings control the range, grid count, direction, and which grids or zones are drawn. It allows several stacked entries and has no stop loss by default. Signals can change on the live bar.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Upper Limit
float
48000.0
UpperLimit
Lower Limit
float
45000.0
LowerLimit
Number of Grids(10)
int
10
No_Grids
Market Direction
string
neutral
Dir
Show Grids
bool
true
ShowGrids
Highlight Trade Zones
bool
true
HighLight
Show Only Current Grids
bool
false
ShowCurrent
High/Low for signals
bool
true
Extremes
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.
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
3C QFL Mean Reversal is a strategy based on the Quickfinger Luc (QFL) trading methodology. It identifies breakdown buying opportunities below established price base levels and enters mean-reversion trades. The strategy includes multi-safety order DCA scaling,
This strategy builds a spot grid between user-set high and low prices and draws it on the price chart. It splits that range into ten levels and places up to five long limit orders at the lower levels, sizing each from current equity. Orders already below price
Calculates the distance between the current price and the opposite end of the latest fair value gap, entering trades on the expectation that price will partially fill the gap. It incorporates risk management with customizable stop loss, take profit based on ri
This strategy identifies Wyckoff consolidation ranges directly on the price chart to trade potential spring and upthrust events. It calculates highest highs and lowest lows over a customizable lookback period, filtering setups by average volume spikes and ATR
This strategy enters one long trade when the bar low comes within a set point tolerance of the prior day's low and the close finishes above that level. Entries are allowed only inside a UTC session and are blocked after a Friday cutoff hour. It stays flat unti