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 Strategy.
We hope this brings good results and helps speed things up for everyone.
Keep up the great work!
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)
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.
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.
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!