Dear FORUM,
Formula programming is really not my forte and I kindly request your assistance with the following formula. I just can not get it to plot on an advanced chart.
Thanks in advance for your patience,
Magda
/*
Simple Price study
Subtract the high from the low points
Over the last 4 periods
Plot a line of the result
*/
function preMain(){
setPriceStudy(true);
setShowCursorLabel(false);
setStudyTitle("H - L / 4 Periods");
}
function main(){
var high = high(4);
var low = low(4);
return (high - low);
}
Formula programming is really not my forte and I kindly request your assistance with the following formula. I just can not get it to plot on an advanced chart.
Thanks in advance for your patience,
Magda
/*
Simple Price study
Subtract the high from the low points
Over the last 4 periods
Plot a line of the result
*/
function preMain(){
setPriceStudy(true);
setShowCursorLabel(false);
setStudyTitle("H - L / 4 Periods");
}
function main(){
var high = high(4);
var low = low(4);
return (high - low);
}
Comment