Announcement

Collapse
No announcement yet.

display date

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

  • display date

    Hello,

    How do you display the date for a daily bar 5 bars back?


    -Mike

  • #2
    Hi,

    Here is one way to do it:
    PHP Code:
    var Flag=0;
    function 
    main(){
        if(
    isLastBarOnChart() && Flag==0){
            var 
    Date_5 = new Date(getValue("rawtime", -5getSymbol()+", D")*1000);//the "-5" is the daily bar's index 
            
    debugPrintln("4: Date_5: "+Date_5);
            
    Flag=1;
        }

    Wayne

    Comment

    Working...
    X