This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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]; | |
} |