I am having difficulty displaying the highest high for the year. I believe I am not using the highest() function properly.
How can I get a line on the chart to display the highest high?
Thanks for any help.
Perry
Here is the failing code:
var seriesHH=0;
function preMain() {
setStudyTitle("MMD252dH&L");
setCursorLabelName("MMD252dH&L",0);
setDefaultBarFgColor(Color.black,0);
setPriceStudy(true);
}
function main() {
seriesHH=highest(252,high());
return(seriesHH());
}
How can I get a line on the chart to display the highest high?
Thanks for any help.
Perry
Here is the failing code:
var seriesHH=0;
function preMain() {
setStudyTitle("MMD252dH&L");
setCursorLabelName("MMD252dH&L",0);
setDefaultBarFgColor(Color.black,0);
setPriceStudy(true);
}
function main() {
seriesHH=highest(252,high());
return(seriesHH());
}
Comment