BITCOIN - to the moooooon

BITFINEX:BTCUSD   Bitcoin / U.S. Dollar
This is my first complete, profitable trading strategy. Please note that this is a short term trend following strategy so it works well in trending markets but can get whip sawed when consolidation occurs. 60% drawdown isn't actually too bad and is the result of a flash crash.

Using the RSI2 for entry and Vstop for exits, this strategy revolves around the momentum that is built up by bitcoin and other cryptocurrencies which tend to explode and form trends. This strategy should be able to be applied to every cryptocurrency.

Currently displayed on the 5H chart which was the best for gains both long and short, however also produced good gains on the 6H chart.

I plan on using some fundamental analysis and make note of future news events (partnerships, announcements etc) on good cryptocurrencies for entry and exits. However as bitcoin is currently bearish it may be difficult to use for the coming weeks / months.

Hope you all enjoy :)

strategy("Vstop and RSI", overlay=true)

//RSI Section
length = input(2, "RSI Period")
overSold = input(30, "Oversold Level")
overBought = input(70, "Overbought Level")
price = close
vrsi = rsi (price, length)

//VSTOP Section
vlength = input(20, "Vstop Length")
mult = input(2, "Vstop Mult")
atr_ = atr(vlength)

is_uptrend_prev = false
max_ = 0.0
min_ = 0.0

max1 := max( nz (max_), close)
min1 := min( nz (min_), close)

is_uptrend_prev := nz (is_uptrend, true)

stop := is_uptrend_prev ? max1 - mult * atr_ : min1 + mult * atr_
vstop_prev := nz (vstop)
vstop1 := is_uptrend_prev ? max(vstop_prev, stop) : min(vstop_prev, stop)
is_uptrend := close - vstop1 >= 0
is_trend_changed := is_uptrend != is_uptrend_prev
max_ := is_trend_changed ? close : max1
min_ := is_trend_changed ? close : min1
vstop := is_trend_changed ? is_uptrend ? max_ - mult * atr_ : min_ + mult * atr_ : vstop1
plot(vstop, color = is_uptrend ? green : red, style=cross, linewidth=2)

if vrsi > overBought
strategy.entry("Buy", strategy.long, comment="Buy")

if vrsi < overSold and vstop > price
strategy.entry("Sell", strategy.short, comment="Sell")
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Get Help Ideas Published Followers Following Private Messages Chat Sign Out