Giter VIP home page Giter VIP logo

bitmex-funding-pine-script's Introduction

BitMEX Funding Pine Script

TradingView Pine script for the BitMEX XBTUSD perpetual swaps contract premium index (XBTUSDPI) and emulated predicted funding rate.

TradingView Indicator

This indicator attempts to emulate the @BitMEX predicted funding rate for the XBTUSD perpetual swaps contract.

The indicator is most accurate on the 1-minute interval. It can be used on higher intervals but will lose accuracy due to smoothing.

Tip: Right-click the scale and enable the "Indicator Last Value" option.

Change Log

  • First commit: Fork it if you wanna fork. (GNU GPL v3)
  • Increased default transparency of funding payout markers.
  • Moved payout marker symbol ($) to bottom of indicator. Tried to create an input to let the user choose top or bottom, but TV pine script does not allow series of strings.

Previous Changes

  • Tweaked MA algorithm to be more accurate shortly after funding payout.
  • Added 8-hour funding payout markers (can be disabled from Inputs menu).
  • Added final 8-hour funding rate plot.
  • Added labels to plots for easier identification in Style menu.

Reference

Indicator Key

  • Green/Red area: Raw values of the calculated funding rate based on the XBT/USD Premium Index (.XBTUSDPI)
  • White line: Time-Weighted Average Price (TWAP) of the calculated funding rate
  • Lime/Red thick line: Predicted funding rate
  • White dotted line: Adjustable EMA of raw funding rate values
  • Aqua/Orange line: Final 8-hour funding rate
  • Midline value set to interest rate (static 0.01% as of April 21, 2017)

bitmex-funding-pine-script's People

Contributors

1984bot avatar

Watchers

 avatar  avatar

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.