OK, I like ver. 11 but some EFS studies I have do not work there. Like the one below for example. Is there a fix for this or another way I should be coding this?
Thanks,
Mark
--------------------------------
function preMain() {
setPriceStudy(true);
setStudyTitle("Momentum.efs");
setDefaultPriceBarColor( Color.grey );
//setComputeOnClose();
}
function main() {
if(open(0)>close(0)) {setPriceBarColor(Color.red)}
if(open(0)<close(0)) {setPriceBarColor(Color.green)}
if(close(0)<=(low(-1)-(high(-1)-low(-1)))){setPriceBarColor(Color.yellow)}
if(close(0)>=((high(-1)-low(-1))+high(-1))){setPriceBarColor(Color.white)}
return null}
Thanks,
Mark
--------------------------------
function preMain() {
setPriceStudy(true);
setStudyTitle("Momentum.efs");
setDefaultPriceBarColor( Color.grey );
//setComputeOnClose();
}
function main() {
if(open(0)>close(0)) {setPriceBarColor(Color.red)}
if(open(0)<close(0)) {setPriceBarColor(Color.green)}
if(close(0)<=(low(-1)-(high(-1)-low(-1)))){setPriceBarColor(Color.yellow)}
if(close(0)>=((high(-1)-low(-1))+high(-1))){setPriceBarColor(Color.white)}
return null}
Comment