Hi
I have the following code that plots the monlthy high on a chart
if(isMonthly() )
return;
if(bInit == false){
xHigh = high(inv("M"));
bInit = true;
}
var vHigh = getSeries(xHigh);
return (vHigh);
Two questions:
1) how can I prevent the chart from using this level to scale ... sometimes this is so much higher than the current price action that when the chart scales the price bars are tiny ... can I override that so scale normally and plot this line 'off the chart'
2) how could I also plot last month's high as a horizontal line in the current month ... the above code plots each month's high within the month it occurred
Thanks again
Paul
I have the following code that plots the monlthy high on a chart
if(isMonthly() )
return;
if(bInit == false){
xHigh = high(inv("M"));
bInit = true;
}
var vHigh = getSeries(xHigh);
return (vHigh);
Two questions:
1) how can I prevent the chart from using this level to scale ... sometimes this is so much higher than the current price action that when the chart scales the price bars are tiny ... can I override that so scale normally and plot this line 'off the chart'
2) how could I also plot last month's high as a horizontal line in the current month ... the above code plots each month's high within the month it occurred
Thanks again
Paul
Comment