Why this code does not work in Realtime, you have to reload EFS everytime there is a new high or Low
the EFS "getTodayOHLC.efs" being called comes with esignal
function preMain() {
setPriceStudy(false);
setStudyTitle("High-Low");
}
function main( ) {
var tHigh;
var tLow;
var tRange;
tHigh = call("getTodayOHLC.efs", "High");
tLow = call("getTodayOHLC.efs", "Low");
tRange = tHigh-tLow;
return tRange;
}
the EFS "getTodayOHLC.efs" being called comes with esignal
function preMain() {
setPriceStudy(false);
setStudyTitle("High-Low");
}
function main( ) {
var tHigh;
var tLow;
var tRange;
tHigh = call("getTodayOHLC.efs", "High");
tLow = call("getTodayOHLC.efs", "Low");
tRange = tHigh-tLow;
return tRange;
}
Comment