Skip to content

Instantly share code, notes, and snippets.

View treypeng's full-sized avatar
💭
doing one++ things at --twice

treypeng treypeng

💭
doing one++ things at --twice
View GitHub Profile
@treypeng
treypeng / main.js
Last active March 18, 2019 07:53
Script to detect darth maul candles from bitmex 1h interval data
require('./util');
const Candler = require('./candle-db');
const ATR_LENGTH = 24;
const SMA_LENGTH = 24;
let trs = []; // series. needed by atr() function.