Skip to content

Commit 513b14d

Browse files
committed
moved options to separate file
1 parent 454e39b commit 513b14d

File tree

7 files changed

+55
-19
lines changed

7 files changed

+55
-19
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1+
# Options file with pub/priv keys
2+
# options.json
3+
4+
# ngrok.exe
5+
ngrok.exe
6+
7+
# Personal Modules
8+
9+
# Nodejs Modules
110
node_modules

app.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
/*
22
* LilBot:
3-
* The simplest little nodejs trade bot ever.
3+
* The tiniest little crypto bot ever.
44
*/
5-
const binance = require( 'node-binance-api' )().options({
6-
APIKEY: '<your public key>',
7-
APISECRET: '<your private key>',
8-
useServerTime: true, // <--------------- If you get timestamp errors, synchronize to server time at startup
9-
recvWindow: 5000, // <------------------ Once you're up and running lower this, 5 seconds is an eternity
10-
reconnect: true,
11-
test: true, // <------------------------ Test Mode is enabled by default. Events return empty objects.
12-
verbose: false
13-
});
5+
const binance = require( 'node-binance-api' )().options('./options.json');
6+
147
const http = require('http');
158
const events = require('events');
169

bot.code-workspace

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
],
7+
"settings": {
8+
"terminal.integrated.drawBoldTextInBrightColors": false
9+
}
10+
}

lilBot.code-workspace

Lines changed: 0 additions & 7 deletions
This file was deleted.

options.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"APIKEY": "<your api public key here",
3+
"APISECRET": "<your secret key here>",
4+
"useServerTime": "true",
5+
"recvWindo": "5000",
6+
"reconnect": "true",
7+
"test": "true",
8+
"verbose": "false"
9+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//@version=4
2+
study(shorttitle="BB", title="Bollinger Bands", overlay=true)
3+
length = input(20, minval=1)
4+
src = input(close, title="Source")
5+
mult = input(2.0, minval=0.001, maxval=50)
6+
basis = sma(src, length)
7+
dev = mult * stdev(src, length)
8+
9+
p0 = plot(basis, color=color.white, title = "basis")
10+
11+
sell0 = basis + dev * 0.75
12+
buy0 = basis - dev * 0.75
13+
p1 = plot(sell0, color=color.green, title ="sell0")
14+
p2 = plot(buy0, color=color.red, title = "buy0")
15+
16+
17+
sell1 = basis + dev * 0.38
18+
buy1 = basis - dev * 0.38
19+
p3 = plot(sell1, color=color.green, title ="sell0")
20+
p4 = plot(buy1, color=color.red, title = "buy0")
21+
22+
fill(p1, p0)
23+
fill(p2, p0, color=color.red)

bollinger-ribon-10bar.pine renamed to pine-scripts/bollinger-ribon-10bar.pine

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@version=4
2-
// https://github.com/modster/lilBot
32

43
study(shorttitle="BBfib", title="Standard Deviation", overlay=true)
54
length = input(15, minval=1)
@@ -26,4 +25,4 @@ fill(p1, p2, transp=90)
2625
fill(p3, p2, transp=94)
2726
fill(p3, p5, transp=98)
2827
fill(p1, p4, transp=94)
29-
fill(p4, p6, transp=98)
28+
fill(p4, p6, transp=98)

0 commit comments

Comments
 (0)