wildfiction
I believe the reason it no longer works in 7.9 is not because of changes in EFS but because of changes in how the spreads need to be written. A space is now required before AND after the operator.
If you run the following script on a chart of IBM + NQ #F - NQ #F the old(er) solution should still work.
I have added also the EFS2 equivalent for comparison purposes.
Irrespective with EFS2 the formula engine now takes care of all the synchronization issues so the new syntax is definitely the way to go IMHO
Alex
I believe the reason it no longer works in 7.9 is not because of changes in EFS but because of changes in how the spreads need to be written. A space is now required before AND after the operator.
If you run the following script on a chart of IBM + NQ #F - NQ #F the old(er) solution should still work.
PHP Code:
function preMain() {
setPriceStudy(false);
setStudyTitle("LastTrade");
setCursorLabelName("x",0);
setCursorLabelName("y",1);
}
function main() {
var x = getValue("Close",0,"nq #f + IBM - IBM");
var y = close(0,sym("nq #f"));
return new Array (x,y);
}
Irrespective with EFS2 the formula engine now takes care of all the synchronization issues so the new syntax is definitely the way to go IMHO
Alex
Comment