Skip to content

Commit

Permalink
Remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhnguyennguyen committed Jan 31, 2020
1 parent 73a4f6c commit 644a268
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ module.exports = {
bb: bb,
macd: macd,
}
const main = async () => {
console.log("RSI 14 on Binance BTC/USDT 15m")
console.log(await rsi(14, "close", "binance", "BTC/USDT", "15m", true))

console.log("SMA 8 on Binance BTC/USDT 15m")
let smaData = await sma(8, "close", "binance", "BTC/USDT", "15m", true)
console.log(smaData[smaData.length - 1])

console.log("Bollinger bands 50, 2 on Binance BTC/USDT 15m")
let bbData = await bb(50, 2, "close", "binance", "BTC/USDT", "15m", true)
console.log(bbData[bbData.length - 2])

console.log("MACD 12 26 9 on Binance BTC/USDT 15m")
let macdData = await macd(12, 26, 9, "close", "binance", "BTC/USDT", "15m", true)
console.log(macdData[macdData.length - 2])
}
main()
// const main = async () => {
// console.log("RSI 14 on Binance BTC/USDT 15m")
// console.log(await rsi(14, "close", "binance", "BTC/USDT", "15m", true))
//
// console.log("SMA 8 on Binance BTC/USDT 15m")
// let smaData = await sma(8, "close", "binance", "BTC/USDT", "15m", true)
// console.log(smaData[smaData.length - 1])
//
// console.log("Bollinger bands 50, 2 on Binance BTC/USDT 15m")
// let bbData = await bb(50, 2, "close", "binance", "BTC/USDT", "15m", true)
// console.log(bbData[bbData.length - 2])
//
// console.log("MACD 12 26 9 on Binance BTC/USDT 15m")
// let macdData = await macd(12, 26, 9, "close", "binance", "BTC/USDT", "15m", true)
// console.log(macdData[macdData.length - 2])
//
// main()

0 comments on commit 644a268

Please sign in to comment.