Bitcoin Regime Filter Strategy
Bitcoin Regime Filter Strategy
0 at
https://mozilla.org/MPL/2.0/
// © ZenAndTheArtOfTrading / www.PineScriptMastery.com
// @version=5
strategy("Bitcoin Regime Filter Strategy",
overlay=true,
initial_capital=10000,
currency=currency.USDT,
default_qty_type=strategy.percent_of_equity,
default_qty_value=100,
commission_type=strategy.commission.percent,
commission_value=0.1)
// Calculate RSI
rsiValue = ta.rsi(close, 7)
// Draw stop
plot(strategy.position_size[1] > 0 ? trailStop : na, style=plot.style_linebr,
color=color.red, title="Stop Loss")