Adding some essential components to a prebuilt RSI strategy

1735 15 130
This is more to be used as a blank_slate for any strategy build adding more effective backtesting with a period selector and inputs like TS             , TP, SL that can all be used as plots for alerts.

It has the BackTest Component created by Pbergden

It also includes the standard long/short with trailing stop, take profit, stop loss and margin call.

Here is a video using the blank_slate to add in the built-in RSI Strategy.

We hope this brings good results and helps speed things up for everyone.

Release Notes: Updated the backtest component to go to the year 2100 to ensure there are trades when you initially add it to your chart.
Remove from Favorite Scripts Add to Favorite Scripts
Hi, your work is amazing! However it seems like the most of your (all?) strategies are coded so that entries can only be done with alternation of the short and long entries? Is this a essential composition in order to avoid repainting and pyramiding or just a preference of yours? What im trying to do with help from your code is to backtest trailing stops exlucisvly on my short signals and ive tried to edit the code a lot myself but I just cant get it to work.
Keep up the great work!
@CryptoRox Thank you so much for this. Apologies for this rookie comment/question but for some reason adding the "Component Code Start" alone to built in strategies doesn't seem to work for me. If it's not too much trouble, can you please show us rookies on this simple built in Channel Breakout Strategy? Thanks in advance.

strategy("ChannelBreakOutStrategy", overlay=true)

length = input(title="Length", type=integer, minval=1, maxval=1000, defval=5)

upBound = highest(high, length)
downBound = lowest(low, length)

if (not na(close))
strategy.entry("ChBrkLE", strategy.long, stop=upBound + syminfo.mintick, comment="ChBrkLE")
strategy.entry("ChBrkSE", strategy.short, stop=downBound - syminfo.mintick, comment="ChBrkSE")

//plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)
Looks great CryptoRox, just a question: how can I turn this into a study for alerts?
This looks like the final version of the script from the video? If so, when I copy and paste into TV and add to chart it doesn't show any indicators on the chart. Please help?
CryptoRox KolTregaskes
@KolTregaskes, and @Dmorphios (apologies did not see your previous comment about this).

This is a great question and I will update the script to avoid this in the future.

The reason no trades are appearing is that the backtest component is set to end in 2016. If you simply adjust that to a later date, one that would actually appear on your chart, you'd begin to see trades appear.

@CryptoRox, Thank you, sorry I didn't notice the dates. My (poor?) excuse is I'm not a coder and just copied and pasted the script to check the results. I'm keen to learn pine script though. Does this script only use RSI indicator? I'm looking for one that takes into account MACD and CM_Williams_Vix_Fix along with RSI.

I'm going to try the script on a variety of coins and durations to see how the results change and then try and translate the code to see if I can work out where I could tweak it. Ta.
+1 Reply
CryptoRox KolTregaskes

No excuse needed mate, it was my fault for not thinking about the future enough. that backtest component may cause this same thing across a bunch of my scripts. So I'm glad you brought it to my attention for future releases.

This script just uses a standard RSI, however, there are a bunch of RSI versions under the script section in TradingView. This script is also not designed to be profitable, cool if it ends up being, but it was solely for displaying the new features for easy additions to other scripts.

If you would like to begin learning the Pinescript language, we have a little guide here that should point you in the right direction.

Good luck and happy trading!
@CryptoRox, Cool thanks. :-)
Seems that just pasting this script into a chart does not yet yield any buy sell indicators. I saved it to Favorite scripts and applied it to a Bitcoin/Ripple Poloniex chart, hit add to chart button played around with the format made sure that visible was clicked but nothing shows up on the chart no buy sell indicators or anything.
Nice work! Some comments would be nice to have been provided though, Could I

ask for such a small favour to be done? Especially in the part with the leverage variable. Thanks!
+1 Reply
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out