Announcement

Collapse
No announcement yet.

time of the last tick

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

  • time of the last tick

    hi,

    is there a way to get the exact time of the last tick on the chart?

    TIA

  • #2
    rookie2004
    I am not sure but I don't think there is a way for efs to retrieve the timestamp of a trade.
    You can try the enclosed efs which will print (to the right of the last bar) the system time when a tick occurs. As long as you do not reload the efs that should be the time of the last trade.
    Alex

    PHP Code:
    function preMain() {
        
    setPriceStudy(true);
        
    setStudyTitle("TimeStamp");
        
    setShowCursorLabel(false);
          
    }
    function 
    main() {

    var 
    today = new Date();
    var 
    timestamp today.getHours();
    timestamp +=":"+today.getMinutes();
    timestamp +=":"+today.getSeconds();

    drawTextRelative(3,close(0),timestamp,Color.white,Color.green,Text.BOTTOM|Text.BOLD,"Arial",11,"Time");

    return;

    Comment

    Working...
    X