I subscribe to the extended intraday data. When I build any formula with the inv("D") element, it drops off when viewing any intraday chart. For example, try pasting in the simple code below (5 day prior high) with QQQQ or any issue on a 60 min interval and the line will drop off back around 1/4/10 (usually about 14 months prior).
Since the code is fine with no syntax errors, I wonder if this is bug in the data feed? Any advice would be greatly appreciated, thanks.
This will happen with other formulas too, such as macd(12,25,9,inv("D")).
Pasted in code below---------------------------->
function preMain() {
setPriceStudy(true);
setStudyTitle("5 Day High");
setCursorLabelName("Prior 5H", 0);
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarFgColor(Color.black, 0);
setDefaultBarThickness(1, 0);
setPlotType(PLOTTYPE_LINE, 0);
setShowCursorLabel(true);
}
function main() {
var fivedayhigh = Math.max(high(-1, inv("D")), high(-2, inv("D")), high(-3, inv("D")), high(-4, inv("D")), high(-5, inv("D")));
return (fivedayhigh);
}
Since the code is fine with no syntax errors, I wonder if this is bug in the data feed? Any advice would be greatly appreciated, thanks.
This will happen with other formulas too, such as macd(12,25,9,inv("D")).
Pasted in code below---------------------------->
function preMain() {
setPriceStudy(true);
setStudyTitle("5 Day High");
setCursorLabelName("Prior 5H", 0);
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarFgColor(Color.black, 0);
setDefaultBarThickness(1, 0);
setPlotType(PLOTTYPE_LINE, 0);
setShowCursorLabel(true);
}
function main() {
var fivedayhigh = Math.max(high(-1, inv("D")), high(-2, inv("D")), high(-3, inv("D")), high(-4, inv("D")), high(-5, inv("D")));
return (fivedayhigh);
}
Comment