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
123 lines of Pine Script v5 from PineScript/Stg_ex_BTC_Bot.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
BTC Bot buys when the smoothed RSI signal crosses above zero while price is in an uptrend, sizes positions from a share of equity, and scales out at four take-profit levels with a percentage stop loss. Weekly pivot-style levels are plotted on the price chart. Direction, averages, stop and targets are adjustable.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Strategy Direction
string
long
Strategy Direction
Equity Usage Percentage
float
0.9
equityUsage
SMA Fast Length
int
50
smaFastLength
SMA Slow Length
int
200
smaSlowLength
Detect Trend Based On
string
trendRule1
trendRule
higherTF
timeframe
W
higherTF
Factor of Large Border
int
2
factor
length
int
21
length
stop loss
float
15
stoploss
qty_percent1
int
25
q1
qty_percent2
int
25
q2
qty_percent3
int
25
q3
Show all 16 settings
Setting
Type
Default
Variable
Take profit1
float
3
tp1
Take profit2
float
5
tp2
Take profit3
float
7
tp3
Take profit4
float
10
tp4
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 plots on the price chart and enters when three smoothed moving averages are aligned, RSI is on the matching side of 50, and a Williams fractal appears. An upward stack with RSI above 50 and a down fractal opens a long; the opposite setup opens a
This strategy trades 1-minute futures contracts on Binance. It plots pivot high and low resistance and support levels on the price chart, along with an EMA and a custom Cto indicator. Long and short entries trigger on EMA and Cto crossovers combined with price
KC15 is a price-chart strategy that configures two moving averages, a Bollinger Band Width Percentile filter, and PMARP entry and exit thresholds for long and short trades. Users can switch each average between SMA and EMA, set lengths and colors, and toggle l
This strategy generates long signals on the price chart using multiple technical indicators. It computes EMA 70 and 100, SMA 70, ADX with DMI, CCI, and MACD values. A long entry occurs when EMA crossover condition, SMA condition, ADX above 15, CCI above 30, an
This strategy combines MACD momentum signals with support and resistance levels from pivot points and an EMA100 trend filter for long positions. It plots the 100-period EMA on the price chart and signals when price breaks above the EMA or forms bullish pivot p
This overlay strategy combines swing price structure with MACD structure and two higher-timeframe exponential moving averages. It finds pivot highs and lows over ten bars, labels higher highs, lower highs, higher lows and lower lows, and builds matching states