Hi,
Could someone please show me how to do these two things with the code below?
1. Return the largest value in the array 'aArray' and,
2. Print this value to the formula output window.
Thanks kindly, please excuse my lack of knowledge.
function preMain() {
setStudyTitle("1");
setShowCursorLabel(true);
setShowTitleParameters(true);
setDefaultBarFgColor(Color.black);
setCursorLabelName("Run%");
setPlotType(PLOTTYPE_FLATLINES);
}
var aArray = new Array();
function main(){
aArray = (((high(0)-open(0))/close(-1))*100);
return aArray;
Could someone please show me how to do these two things with the code below?
1. Return the largest value in the array 'aArray' and,
2. Print this value to the formula output window.
Thanks kindly, please excuse my lack of knowledge.
function preMain() {
setStudyTitle("1");
setShowCursorLabel(true);
setShowTitleParameters(true);
setDefaultBarFgColor(Color.black);
setCursorLabelName("Run%");
setPlotType(PLOTTYPE_FLATLINES);
}
var aArray = new Array();
function main(){
aArray = (((high(0)-open(0))/close(-1))*100);
return aArray;
Comment