Announcement

Collapse
No announcement yet.

how to turn off my efs or doo something in my efs just before market closes

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

  • how to turn off my efs or doo something in my efs just before market closes

    hi - if anyone can give me a hint on how to do this - i would appreciate it

    i tried various things that do not seem to work - for instance:

    now_ = (getHour()*100)+(getMinute()*1);

    if (now_ >= (mktcloseTime-(sinterval*1)))
    {do other things in this efs ...}

    ANY suggestion would be appreciated

    thanks -p

  • #2
    How soon before the close of market??

    what interval are you suggesting (seconds or minutes)??

    You are correct, you would do this with the TIME functions. the question is "how soon before the market closes do you want to execute this item"??

    the time functions I use for mose of my code are..

    var vRTTime = new Date();
    var vTime = new Date();
    //---------------------------------------------------
    // Get Time Variables
    vTime = getValue("Time", 0);
    vHour = vTime.getHours();
    vMin = vTime.getMinutes();
    vSec = vTime.getSeconds();
    vDay = vTime.getDate();
    vMonth = vTime.getMonth() +1;

    Using this type of code, you can use the following...

    if (MakeRTTime(vRTTime) > 131401) {
    .. do something after 13:14:01
    }

    function MakeRTTime(RTTime) {
    return ((RTTime.getHours()*10000)+(RTTime.getMinutes()*10 0)+RTTime.getSeconds());
    }
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      hey doji ...

      ... thank you very much - this post of yours has a wealth of information - it is just what i needed to know

      thanks again

      best regards -p :-)

      Comment

      Working...
      X