Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
nenjotsu committed Jan 16, 2022
1 parent 24fd5da commit 1b05b9a
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# deno-talib
deno-talib
deno-talib port technical analysis of [https://github.com/anandanand84/technicalindicators](https://github.com/anandanand84/technicalindicators)
15 changes: 15 additions & 0 deletions deno-workspace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
scripts:
start:
file: index.ts
deno_options:
allow-net: localhost
develop:
file: index.ts
deno_options:
reload: true
allow-read:
- ./
allow-net:
- localhost
- api.binance.com
- stream.binance.com:9443
98 changes: 98 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
// export * from './lib/index.js';
export function getAvailableIndicators () {
let AvailableIndicators = []
AvailableIndicators.push('sma');
AvailableIndicators.push('ema');
AvailableIndicators.push('wma');
AvailableIndicators.push('wema');
AvailableIndicators.push('macd');
AvailableIndicators.push('rsi');
AvailableIndicators.push('bollingerbands');
AvailableIndicators.push('adx');
AvailableIndicators.push('atr');
AvailableIndicators.push('truerange');
AvailableIndicators.push('roc');
AvailableIndicators.push('kst');
AvailableIndicators.push('psar');
AvailableIndicators.push('stochastic');
AvailableIndicators.push('williamsr');
AvailableIndicators.push('adl');
AvailableIndicators.push('obv');
AvailableIndicators.push('trix');

AvailableIndicators.push('cci');
AvailableIndicators.push('awesomeoscillator');
AvailableIndicators.push('forceindex');
AvailableIndicators.push('vwap');
AvailableIndicators.push('volumeprofile');
AvailableIndicators.push('renko');
AvailableIndicators.push('heikinashi');

AvailableIndicators.push('stochasticrsi');
AvailableIndicators.push('mfi');

AvailableIndicators.push('averagegain');
AvailableIndicators.push('averageloss');
AvailableIndicators.push('highest');
AvailableIndicators.push('lowest');
AvailableIndicators.push('sum');
AvailableIndicators.push('FixedSizeLinkedList');
AvailableIndicators.push('sd');
AvailableIndicators.push('bullish');
AvailableIndicators.push('bearish');
AvailableIndicators.push('abandonedbaby');
AvailableIndicators.push('doji');
AvailableIndicators.push('bearishengulfingpattern');
AvailableIndicators.push('bullishengulfingpattern');
AvailableIndicators.push('darkcloudcover');
AvailableIndicators.push('downsidetasukigap');
AvailableIndicators.push('dragonflydoji');
AvailableIndicators.push('gravestonedoji');
AvailableIndicators.push('bullishharami');
AvailableIndicators.push('bearishharami');
AvailableIndicators.push('bullishharamicross');
AvailableIndicators.push('bearishharamicross');
AvailableIndicators.push('eveningdojistar');
AvailableIndicators.push('eveningstar');
AvailableIndicators.push('morningdojistar');
AvailableIndicators.push('morningstar');
AvailableIndicators.push('bullishmarubozu');
AvailableIndicators.push('bearishmarubozu');
AvailableIndicators.push('piercingline');
AvailableIndicators.push('bullishspinningtop');
AvailableIndicators.push('bearishspinningtop');
AvailableIndicators.push('threeblackcrows');
AvailableIndicators.push('threewhitesoldiers');
AvailableIndicators.push('bullishhammerstick');
AvailableIndicators.push('bearishhammerstick');
AvailableIndicators.push('bullishinvertedhammerstick');
AvailableIndicators.push('bearishinvertedhammerstick');
AvailableIndicators.push('hammerpattern');
AvailableIndicators.push('hammerpatternunconfirmed');
AvailableIndicators.push('hangingman');
AvailableIndicators.push('hangingmanunconfirmed');
AvailableIndicators.push('shootingstar');
AvailableIndicators.push('shootingstarunconfirmed');
AvailableIndicators.push('tweezertop');
AvailableIndicators.push('tweezerbottom');

// AvailableIndicators.push('predictPattern');
// AvailableIndicators.push('hasDoubleBottom');
// AvailableIndicators.push('hasDoubleTop');
// AvailableIndicators.push('hasHeadAndShoulder');
// AvailableIndicators.push('hasInverseHeadAndShoulder');
// AvailableIndicators.push('isTrendingUp');
// AvailableIndicators.push('isTrendingDown');
AvailableIndicators.push('ichimokucloud');

AvailableIndicators.push('keltnerchannels');
AvailableIndicators.push('chandelierexit');
AvailableIndicators.push('crossup');
AvailableIndicators.push('crossdown');
AvailableIndicators.push('crossover');
return AvailableIndicators;
};

let AvailableIndicators = getAvailableIndicators();
console.log('AvailableIndicators', AvailableIndicators);
export { AvailableIndicators }

0 comments on commit 1b05b9a

Please sign in to comment.