Giter Club home page Giter Club logo

bitcoin-volstop's Introduction

Bitcoin-VolStop

Pine Script Volatility Stop

Volatility Stop using Average True Range written in PineScript.

Performance of Algorithm:

  • Model is fit to work with the BTC/USD trading pair (High performance).
  • Moderate performance with large market capitalization pairs (ex. ETH/USD, XRP/USD).
  • Poor performance with cryptocurrencies under the top 5 market cap.
  • Poor performance in a down-trending cryptocurrency market.
    • Only trade on signals when trending upwards for maximum profitability (trade at your own discretion).
  • Has not been thoroughly tested with equities markets.

How to Use:

a. How to run bitcoin_volstop_v1.txt

  • Register with or login to TradingView at https://www.tradingview.com in order to run custom scripts.
  • Copy ENTIRE bitcoin_volstop_v1.txt file
  • Visit https://www.tradingview.com/symbols/BTCUSD/
  • Select button "Full-featured chart"
  • Select tab "Pine Editor" found on toolbar at the bottom of the screen
  • Click within script editor panel (i.e. click on any line of code)
  • Press "CTRL" + "A" to select all text in the panel
  • Press "CTRL" + "V" to paste bitcoin_volstop_v1 script into editor
  • Select "Add to Chart" on the upper right section of the script panel
  • Select tab "Strategy Tester" found at same toolbar as the previous "Pine Editor" tab

b. Changing inputs

  • On the leftmost toolbar at the very bottom, select the square with two bent lines beneath it ("Object Tree" menu)
  • Locate BTC VolStop Signals(...). On the right side of the entry, select the middle button shaped like a gear
  • Set beginning of backtest time period using "From" inputs and end of backtest time period using "To" inputs
  • Set the average true range multiplier factor with "ATR Multiplier"
  • Set the number of bars included in average true range with "ATR Lookback Period"
  • Set Risk Reward Ratio with "Risk To Reward Multiplier"
  • Set number of standard deviations applied to stops with "Stop Deviations"
  • Set number of bars before standard deviation stoploss becomes trailing stoploss with "Bars Before Trailing Stop"

c. Inputs for (overfit?) 3200 % retuns Aug 2013 - Nov 2018

  • ATR Multiplier = 4
  • ATR Lookback Period = 7
  • Risk to Reward Multiplier = 4
  • Stop Deviations = 2
  • Bars before trailing stops = 20

bitcoin-volstop's People

Contributors

jp4g avatar

Watchers

 avatar

Forkers

systemquant

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.