Hi!
I am using the following basic formula to display the close of the previous day and the current days close after the first 15 min. The lines are displaying accurately, but I have 2 questions:
1- When I try to retrieve the Day2 values, it only returns 'object series', even though the lines are printed at the correct values. I cannot figure out what 'object series' means?
2- The efs displays the correct line values on every time frame that is 15 min. or less, but fails if it is used on time frames greater then 15 min?
Thanks, Charley
I am using the following basic formula to display the close of the previous day and the current days close after the first 15 min. The lines are displaying accurately, but I have 2 questions:
1- When I try to retrieve the Day2 values, it only returns 'object series', even though the lines are printed at the correct values. I cannot figure out what 'object series' means?
2- The efs displays the correct line values on every time frame that is 15 min. or less, but fails if it is used on time frames greater then 15 min?
Thanks, Charley
PHP Code:
function preMain() {
setPriceStudy(true);
setStudyTitle("Opening Range");
setShowCursorLabel(false);
setShowTitleParameters(false);
}
function main() {
var nID = getCurrentBarCount();
var startTime = 630;
var barTime = (hour(0) * 100) + minute(0);
var Int15 = (inv("15"));
var vClose = close(Int15);
if (barTime == startTime) {
Day1 = close(-1);
Day2 = vClose;
drawLineRelative(0, Day1, 77, Day1, PS_DOT, 1, Color.blue, "C1" + nID);
drawLineRelative(0, Day2, 77, Day2, PS_DOT, 1, Color.red, "C2" + nID);
var retArray = new Array(4);
retArray[0] = Day1; debugPrintln(retArray[0]);
retArray[1] = Day2; debugPrintln(retArray[1]);
}
}
Comment