Announcement

Collapse
No announcement yet.

Interval confusion

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Interval confusion

    I need the following function:
    PHP Code:
    function getIntervalValue(){
        var 
    getInterval();
        if (
    == 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();
        }

    What is the contraction for hour?
    How is the logic for weeks?

    I found the following documentation:

    s. Attach file
    Attached Files
Working...
X