I need the following function:
What is the contraction for hour?
How is the logic for weeks?
I found the following documentation:
s. Attach file
PHP Code:
function getIntervalValue(){
var s = getInterval();
if (s == null) return s;
switch (s.charAt(s.length-1)) {
case "T" : // Tick
return getCurrentBarCount(); // ????
break;
case "V" : // Volume (TODO)
return null;
break;
case "R" : // Range (TODO)
return null;
break;
case "P" : // Price Change (TODO)
return null;
break;
case "S" : // Second
return getSecond();
break;
case "H" : // Hour ?????
return getHour();
break;
case "D" : // Day
return getDay();
break;
case "W" : // Week (TODO)
return null;
break;
case "M" : // Month
return getMonth();
break;
default : // Minute
return getMinute();
}
}
How is the logic for weeks?
I found the following documentation:
s. Attach file