GithubHelp home page GithubHelp logo

ianmadlenya / technicalindicators Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloud9trader/technicalindicators

0.0 1.0 0.0 220 KB

Technical Indicators scripts for use in Cloud9Trader charts and trading algorithms

License: GNU General Public License v2.0

JavaScript 100.00%

technicalindicators's Introduction

Technical Indicators

#####Technical indicator and overlay scripts for use in www.cloud9trader.com charts and trading algorithms.

These indicator scripts, written in JavaScript, power the built in technical indicators on the platform.

Their job is to derive a value, or set of values, from price data at any given moment in time to be drawn onto charts as one or several overlays or studies. They can also be used inside your Cloud9Trader trading scripts.

We've included them in this repository so that you can use them as a reference to help build your own indicators - just create a new indicator on the 'Algorithms' screen and copy the code in.

They're also here for those who are just interested in the maths behind technical analysis.

If you spot any issues with them or would like to add your own indicator to Cloud9Trader's built in collection, we'd be very grateful for your pull requests.

###Functions

The indicators will contain at minimum an 'onIntervalClose' function and some or all of the following:

  • onIntervalClose() Required. Called every bar close. Its job is to return the current indicator value(s) (and any chart config), so is generally where you'll find most of the logic.

  • onStart() Optional. Called once run up price data has loaded with any user input parameters. Used to validate these and initialize any variables that are globally scoped (i.e. persist between updates)

  • getRunUpCount() Optional. Tells the system how many intervals of previous price data to load in that are needed to produce the first value. This is often the n periods of the indicator. This is also called with any user input parameters.

  • getStudyAxisConfig() Optional. Configures the study chart axis for indicators that produce one.

###Documentation

You can find plenty of info for writing your own indicators in the Cloud9Trader documentation pages. See Writing Your Technical Indicators.

For the technical indicator API see Technical Indicators API Reference.

For the API for using these in your trading algorithms see Algorithms API Reference.

###Indicators

  • Accumulation Distribution Line adl()
  • Aroon aroon(periods)
  • Aroon Oscillator aroonOscillator(periods)
  • Average True Range atr(periods)
  • Bollinger Bands bollinger(periods, deviations)
  • Bollinger Bandwidth bollingerBandwidth(periods, deviations)
  • Bollinger %B bollingerB(periods, deviations)
  • Commodity Channel Index cci(periods, constant)
  • Chandelier Exit chandelierExit(periods, multiplier)
  • Chaikin Money Flow cmf(periods)
  • Chande Momentum Oscillator cmo(periods, signalPeriods)
  • Center of Gravity Oscillator cog(periods, signalPeriods)
  • Coppock Curve coppock(firstRoCPeriods, wmaPeriods, secondRoCPeriods)
  • Daily Pivot dailyPivot()
  • Detrended Price Oscillator dpo(periods)
  • Elder Bull/Bear Power elderBBPower(periods)
  • Exponential Moving Average ema(periods)
  • Exponential Moving Average EnvelopeemaEnvelope(periods, envelope)
  • Ease of Movement emv(periods)
  • Fisher Transform fisherTransform(periods)
  • Force Index forceIndex(periods)
  • Gopalakrishnan Range Index gapo(periods)
  • Ichimoku Cloud ichimokuCloud(conversionLinePeriods, baseLinePeriods, leadingSpanPeriods, laggingSpanPeriods)
  • Keltner Channels keltnerChannels(emaPeriods, atrPeriods, atrMultiplier)
  • Know Sure Thing kst(firstROCPeriods, secondROCPeriods, thirdROCPeriods, fourthROCPeriods, firstSMAPeriods, secondthirdSMAPeriods, fourthSMAPeriods[, signalSMA])
  • MACD macd(fastEMAPeriods, slowEMAPeriods[, signalEMAPeriods])
  • MACD Histogram macdHistogram(fastEMAPeriods, slowEMAPeriods, signalEMAPeriods)
  • Mass Index macdHistogram(emaPeriods, summationPeriods)
  • Money Flow Index mfi(periods)
  • On Balance Volume obv()
  • Percentage Price Oscillator ppo(fastEMAPeriods, slowEMAPeriods[, signalEMAPeriods])
  • Pretty Good Oscillator pgo(periods)
  • Price Channels priceChannels(periods)
  • Price Momentum Oscillator pmo(firstEMAPeriods, secondEMAPeriods[, signalEMAPeriods])
  • Price Volume Oscillator pvo(fastEMAPeriods, slowEMAPeriods, signalEMAPeriods)
  • QStick qStick(periods)
  • Rate of Change roc(periods)
  • Relative Strength Index rsi(periods)
  • Simple Moving Average sma(periods)
  • Simple Moving Average Envelope smaEnvelope(periods, envelope)
  • Standard Deviation standardDeviation(periods, envelope)
  • Stochastic Oscillator stochasticOscillator(periods, smaPeriods)
  • StochRSI stochRsi(periods)
  • TRIX trix(periods[, signalPeriods])
  • True Strength Index tsi(firstPeriods, secondPeriods[, signalPeriods])
  • Ultimate Oscillator uo(shortPeriods, mediumPeriods, longPeriods)
  • Volume volume()
  • Vortex Indicator vtx(periods)
  • Williams %R williamsR(periods)
  • Weighted Moving Average wma(periods)

technicalindicators's People

Watchers

 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.