CryptoRox

Adding some essential components to a prebuilt RSI strategy

826 12 55
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.
https://youtu.be/GjbjvGMDFeI

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
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?
Reply
CryptoRox PRO 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.

Reply
@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.
Reply
CryptoRox PRO KolTregaskes
@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.
https://use.autoview.with.pink/hc/en-us/articles/115002885968-Pine-Script-Tutorial

Good luck and happy trading!
Reply
@CryptoRox, Cool thanks. :-)
Reply
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.
Reply
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
Hi CryptoRox,

I am new to this Autoview app...i want to learn more on how to use this and how to create a strategy and alerts using tradingview but when i tried your website http://slack.crypto.pink/ its no longer active...

thanks
Reply
puterae1 PRO zeropynes
@zeropynes, try this instead http://autoview.with.pink/
Reply
Thanks Again. nice

However if you could also help to make a script for a Polynomial Regression in Trading View.
C# Algo below... using CALGO API




Polynomial Regression Channel
Download
2812 downloads
How to install
×Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
Formula / Source Code
Language: C#
Trading Platform: cAlgo, cTrader
Copy code

using System;
using cAlgo.API;
using cAlgo.API.Indicators;

namespace cAlgo.Indicators
{

public class PRC : Indicator
{

public int degree { get; set; }


public int period { get; set; }


public double strdDev { get; set; }


public double strdDev2 { get; set; }


public IndicatorDataSeries prc { get; set; }


public IndicatorDataSeries sqh { get; set; }


public IndicatorDataSeries sql { get; set; }


public IndicatorDataSeries sql2 { get; set; }


public IndicatorDataSeries sqh2 { get; set; }

private double ai = new double;
private double b = new double;
private double x = new double;
private double sx = new double;
private double sum;
private int ip;
private int p;
private int n;
private int f;
private double qq;
private double mm;
private double tt;
private int ii;
private int jj;
private int kk;
private int ll;
private int nn;
private double sq;
private double sq2;
private int i0 = 0;
private int mi;

public override void Calculate(int index)
{
ip = period;
p = ip;
sx = p + 1;
nn = degree + 1;
//----------------------sx-------------------------------------------------------------------
for(mi=1;mi<=nn*2-2;mi++) //
{
sum=0;
for(n=i0;n<=i0+p;n++)
{
sum+=Math.Pow(n,mi);
}
sx=sum;
}
//----------------------syx-----------
for(mi=1;mi<=nn;mi++)
{
sum=0.00000;
for(n=i0;n<=i0+p;n++)
{
if(mi==1) sum+=MarketSeries.Close;
else sum+=MarketSeries.Close*Math.Pow(n,mi-1);
}
b=sum;
}
//===============Matrix=======================================================================================================
for(jj=1;jj<=nn;jj++)
{
for(ii=1; ii<=nn; ii++)
{
kk=ii+jj-1;
ai=sx;
}
}
//===============Gauss========================================================================================================
for(kk=1; kk<=nn-1; kk++)
{
ll=0;
mm=0;
for(ii=kk; ii<=nn; ii++)
{
if(Math.Abs(ai)>mm)
{
mm=Math.Abs(ai);
ll=ii;
}
}
if(ll==0) return;
if (ll!=kk)
{
for(jj=1; jj<=nn; jj++)
{
tt=ai;
ai=ai;
ai=tt;
}
tt=b;
b=b;
b=tt;
}
for(ii=kk+1;ii<=nn;ii++)
{
qq=ai/ai;
for(jj=1;jj<=nn;jj++)
{
if(jj==kk) ai=0;
else ai=ai-qq*ai;
}
b=b-qq*b;
}
}
x=b/ai;
for(ii=nn-1;ii>=1;ii--)
{
tt=0;
for(jj=1;jj<=nn-ii;jj++)
{
tt=tt+ai*x;
x=(1/ai)*(b-tt);
}
}
sq=0.0;
sq2=0.0;
for(n=i0;n<=i0+p;n++)
{
sum=0;
for(kk=1;kk<=degree;kk++)
{
sum+=x*Math.Pow(n,kk);
}
prc=(x+sum);
sq+=Math.Pow(MarketSeries.Close-prc,2);
sq2+=Math.Pow(MarketSeries.Close-prc,2);
}
sq=Math.Sqrt(sq/(p+1))*strdDev;
sq2=Math.Sqrt(sq2/(p+1))*strdDev2;
for(n=i0;n<=i0+p;n++)
{
sqh=(prc+sq);
sql=(prc-sq);
sqh2=(prc+sq2);
sql2=(prc-sq2);
}
}
}
}

Reply
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
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 Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out