1.0.1 • Published 2 years ago

forex-tradingview-technical-analysis v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

tradingview-technical-analysis

Installation

npm i forex-tradingview-technical-analysis

Usage

const analyze = require('forex-tradingview-technical-analysis');
const tickers = ['FX_IDC:EURJPY'];
const resolutions = ['1m','5m','15m','1h','4h','1d','1W','1M'];

const results = analyze(tickers, resolutions);

console.log(results)

Response

{
    "FX_IDC:EURJPY": {
        "signals": {
            "1m": {
                "Recommend.Other":"NEUTRAL",
                "Recommend.All":"BUY",
                "Recommend.MA":"STRONG_BUY"
            },
            "5m":{
                "Recommend.Other":"BUY",
                "Recommend.All":"BUY",
                "Recommend.MA":"STRONG_BUY"
            },
            "15m": {
                "Recommend.Other":"BUY",
                "Recommend.All":"BUY",
                "Recommend.MA":"STRONG_BUY"
            },
            "1h": {
                "Recommend.Other":"BUY",
                "Recommend.All":"BUY",
                "Recommend.MA":"STRONG_BUY"
            },
            "4h": {
                "Recommend.Other":"NEUTRAL",
                "Recommend.All":"BUY",
                "Recommend.MA":"STRONG_BUY"
            },
            "1D": {
                "Recommend.Other":"BUY",
                "Recommend.All":"STRONG_BUY",
                "Recommend.MA":"STRONG_BUY"
            },"1W":{
                "Recommend.Other":"NEUTRAL",
                "Recommend.All":"BUY",
                "Recommend.MA":"STRONG_BUY"
            },
            "1M": {
                "Recommend.Other":"NEUTRAL",
                "Recommend.All":"BUY",
                "Recommend.MA":"STRONG_BUY"
            }
        }
    }
}

Arguments

Ticker

Any exchange + pair available on Tradingview in uppercase {exchange}:{pair} format. I.e. FX_IDC:EURJPY

Resolutions

The following values are accepted:

'1m'
'5m'
'15m'
'1h'
'4h'
'1D'
'1W'
'1M'

Indicators

The following indicators are (or will be) supported. Lines commented out are not yet implemented.

    "Recommend.Other",
    "Recommend.All",
    "Recommend.MA",
    /*"RSI",
    "RSI[1]",
    "Stoch.K",
    "Stoch.D",
    "Stoch.K[1]",
    "Stoch.D[1]",
    "CCI20",
    "CCI20[1]",
    "ADX",
    "ADX+DI",
    "ADX-DI",
    "ADX+DI[1]",
    "ADX-DI[1]",
    "AO",
    "AO[1]",
    "Mom",
    "Mom[1]",
    "MACD.macd",
    "MACD.signal",
    "Rec.Stoch.RSI",
    "Stoch.RSI.K",
    "Rec.WR",
    "W.R",
    "Rec.BBPower",
    "BBPower",
    "Rec.UO",
    "UO",
    "close",
    "EMA5",
    "SMA5",
    "EMA10",
    "SMA10",
    "EMA20",
    "SMA20",
    "EMA30",
    "SMA30",
    "EMA50",
    "SMA50",
    "EMA100",
    "SMA100",
    "EMA200",
    "SMA200",
    "Rec.Ichimoku",
    "Ichimoku.BLine",
    "Rec.VWMA",
    "VWMA",
    "Rec.HullMA9",
    "HullMA9",
    "Pivot.M.Classic.S3",
    "Pivot.M.Classic.S2",
    "Pivot.M.Classic.S1",
    "Pivot.M.Classic.Middle",
    "Pivot.M.Classic.R1",
    "Pivot.M.Classic.R2",
    "Pivot.M.Classic.R3",
    "Pivot.M.Fibonacci.S3",
    "Pivot.M.Fibonacci.S2",
    "Pivot.M.Fibonacci.S1",
    "Pivot.M.Fibonacci.Middle",
    "Pivot.M.Fibonacci.R1",
    "Pivot.M.Fibonacci.R2",
    "Pivot.M.Fibonacci.R3",
    "Pivot.M.Camarilla.S3",
    "Pivot.M.Camarilla.S2",
    "Pivot.M.Camarilla.S1",
    "Pivot.M.Camarilla.Middle",
    "Pivot.M.Camarilla.R1",
    "Pivot.M.Camarilla.R2",
    "Pivot.M.Camarilla.R3",
    "Pivot.M.Woodie.S3",
    "Pivot.M.Woodie.S2",
    "Pivot.M.Woodie.S1",
    "Pivot.M.Woodie.Middle",
    "Pivot.M.Woodie.R1",
    "Pivot.M.Woodie.R2",
    "Pivot.M.Woodie.R3",
    "Pivot.M.Demark.S1",
    "Pivot.M.Demark.Middle",
    "Pivot.M.Demark.R1"*/

    ```
1.0.1

2 years ago