Skip to content

Instantly share code, notes, and snippets.

@rgjurgens
rgjurgens / Rudolf algo Tom
Created January 18, 2019 21:27
Jared algos
// Rudolf algo Tom
index = BNCE_XBTUSD;
magnTresh = index[0]/500 // start trading from this drop magnitude
magnSpeed = magnTresh/100 // minimal consistent change per second
function rc(t, x){
x = x.slice(0,t+1); s = 0;
for(j=0;j<x.length-1;j++){
s += x[j]-x[j+1];
}
@rgjurgens
rgjurgens / rudolf eerste algo
Last active January 18, 2019 21:16
Jared algos
// rudolf eerste algo
function dividedByTwo(){
return BNCE_XBTUSD[0]
}
FIRSTFUNCTION[0] = dividedByTwo()
function buyOrSell() {
return Date.now() % 2 === 0 ? 1 : -1
}
function dividedByTwo(){
return BNCE_XBTUSD[0]
}
FIRSTFUNCTION[0] = dividedByTwo()
function buyOrSell() {
return Date.now() % 2 == 0 ? 1 : -1
}
// Rudolf trial and error
index = BNCE_XBTUSD;
magnTresh = index[0]/500 // start trading from this drop magnitude
magnSpeed = magnTresh/100 // minimal consistent change per second
function rc(t, x){
x = x.slice(0,t+1); s = 0;
for(j=0;j<x.length-1;j++){
s += x[j]-x[j+1];
}
asdfsdfs