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
245 lines of Pine Script v4 from strategies/mc_strategy_aggressive.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
MC Strategy - Aggressive calculates WaveTrend oscillator crossovers and a volume-weighted Money Flow index to trigger initial base orders, supporting both long and short deal types. When price moves against the position, it executes scaled safety orders according to configurable price deviation steps and volume multipliers. Positions exit once a defined target profit percentage is reached. Drawn directly on the price chart, it features no stop-loss mechanism.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Bot Type
string
Long
botType
Base Order Size
float
350
baseOrder
Safety Order Size
float
350
safetyOrder
Max safety order count
float
8
maxSafetyOrders
Price deviation in % to open safety orders
float
1
priceDeviation
Safety Order volume scale
float
1.3
volumeScaleInput
Safety Order step scale
float
1.1
safetyOrderStepScale
Target profit (%)
float
2
targetProfit
Start Time
time
timestamp("1 Mar 2021")
startTime
End Time
time
timestamp("31 Dec 2021")
endTime
Deal Start Condition
string
Indicator
dealStartType
Deal Start Source
source
close
sourceDealStart
Show all 21 settings
Setting
Type
Default
Variable
Deal Start Value
float
0
sourceDealStartValue
Channel Length
int
10
n1
Average Length
int
21
n2
Source
source
hlc3
src
Over Bought Level 1
int
60
obLevel1
Over Bought Level 2
int
53
obLevel2
Over Sold Level 1
int
-60
osLevel1
Over Sold Level 2
int
-53
osLevel2
Length
int
60
length
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.
Alert BB + RSI [Alorse] is a multi-symbol mean-reversion strategy designed for cryptocurrency trading. It evaluates Bollinger Bands and the Relative Strength Index (RSI) across up to 20 user-defined ticker symbols simultaneously. The strategy enters long posit
Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish
This strategy draws on the price chart and combines Stochastic RSI, the Money Flow Index, and an exponential moving average to open long or short trades. Longs use the lower oscillator thresholds and shorts use the upper ones, with direction limited to longs,
This strategy combines Bollinger Bands with a short RSI to fade moves that leave the bands and then return. A long requires the prior bar below the lower band and oversold, then a close back inside the band while RSI is between 30 and 50. Shorts mirror that at
This strategy implements Larry Connors' 2-period RSI mean-reversion algorithm overlaid on the price chart. It filters trades using a long-term Simple Moving Average (SMA), entering long positions when the price trades above the SMA and the short-term RSI drops
This strategy combines multi-timeframe RSI analysis with exponential moving average filters to execute trades on price bounces. It evaluates daily and weekly RSI levels alongside pip-distance thresholds between fast, slow, and long-term EMAs. Position entries