Do not do this til you understand what reloadEFS() is all about!
I want to reload the efs every time a new bar starts
Any one see anything wrong here?
var loadup=0;
function main(){
if(getBarState()==BARSTATE_NEWBAR&&getCurrentBarIn dex()==0&&loadup==0){
reloadEFS();
debugPrintln("reload")
loadup=1;
}
if(getBarState()!=BARSTATE_NEWBAR&&getCurrentBarIn dex()==0&&loadup==1){ //edited to 1 from 0
loadup=0;
}
I want to reload the efs every time a new bar starts
Any one see anything wrong here?
var loadup=0;
function main(){
if(getBarState()==BARSTATE_NEWBAR&&getCurrentBarIn dex()==0&&loadup==0){
reloadEFS();
debugPrintln("reload")
loadup=1;
}
if(getBarState()!=BARSTATE_NEWBAR&&getCurrentBarIn dex()==0&&loadup==1){ //edited to 1 from 0
loadup=0;
}
Comment