Hi,
I'm using "PivotConsole-v2.0.1.efs" by Chris D. Kryza found at:
which must be reloaded at 9:30 EST via the mouse rightclick on the chart followed by clicking on the "Reload" then click on the efs study to refresh the data to the current day.
I have tried to use both reloadEFS() and repaintChart() but neither updates the pivot point values. I must still manually do this just after 9:30. The code I tested that didn't work is:
Is there some way to update the data via efs (preferably without a full chart reload since the bid/ask plot only plots real time and would be lost)?
Thanks,
Wayne
I'm using "PivotConsole-v2.0.1.efs" by Chris D. Kryza found at:
which must be reloaded at 9:30 EST via the mouse rightclick on the chart followed by clicking on the "Reload" then click on the efs study to refresh the data to the current day.
I have tried to use both reloadEFS() and repaintChart() but neither updates the pivot point values. I must still manually do this just after 9:30. The code I tested that didn't work is:
PHP Code:
var xReloadTime = 930;
function main(...
if(bDayCounter == 0){
if (getDay(0) == myDate.getDate()){
vCorrection = hour(0)*100 + minute(0);
bCurrentDay = true;
if(vCorrection >= xReloadTime){
repaintChart()
reloadEFS();//doesn't work because "setComputeOnClose()" is enabled
bDayCounter = 1;
}
}
}
...
}
Thanks,
Wayne
Comment