Skip to content

Instantly share code, notes, and snippets.

View Schellinkhoutkamp's full-sized avatar

Stijlie Schellinkhoutkamp

View GitHub Profile
// BREAKOUT CLEAN
function sma(t, xc){
som=0; xc=xc.slice(0,t);
for(i=0;i<xc.length;i++){som+=xc[i];}
return som/xc.length;
}
function pricemove (t, xc){
return xc[0]-xc[t];
// BREAKOUT CLEAN
function sma(t, xc){
som=0; xc=xc.slice(0,t);
for(i=0;i<xc.length;i++){som+=xc[i];}
return som/xc.length;
}
function pricemove (t, xc){
return xc[0]-xc[t];