Announcement

Collapse
No announcement yet.

Time difference about Pivot

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

  • Time difference about Pivot

    I'd like to use PivotPointAll.efs for FOREX data in Japan.
    Calculating Pivot, it need the High, Low, and Close data.
    About Close data, Now PivotPointAll.efs uses the data at 24:00,
    and High/Low in 0:00 - 24:00
    I'd like to chage the Close data to at 6:00am, and High/Low in
    6:00am - 6:00am.
    (The NY market's Close time(17:00) is 6:00am in Japan)

    I think that int("D") in the PivotPointAll.efs is necessary to change to something.

    How do I change it?

    if(bInit == false){
    xHigh = high(inv("D"));
    xLow = low(inv("D"));
    xClose = close(inv("D"));
    bInit = true;
    }

  • #2
    Hi amou,

    I believe what you will need to do is to create a time template according to EST (as long as your pc time is set to EST). Please refer to this link for the article on how to create or adjust the time template and apply on the adv chart. Hope this works, if not, feel free to respond back to this thread.

    New User Video - Time Template

    Time Template Basics

    Thank you
    Joe B.
    eSignal____________
    Community Support Group
    eSignal KnowledgeBase
    New User Orientation
    Add QuoTrek to eSignal l Get wireless quotes, charts, news | FREE for 30 days

    Comment


    • #3
      Hi JoeB,

      I watched the video and read the Time Tempate Basics.
      I set TimeTemplate to StartTime is 6:00am and EndTime is 6:00am, but a pause on the AdvancedChart of the Starttime is 0:00 and EndTime is 24:00.

      I also set the auto , it doesn't work, I think because of the FOREX data is 24 hours par day.
      (It does'nt like to Stock Data which is 9:30 - 16:00)

      I don't want to set my pc time to EST, and setting to EST
      is doesn't work because of day became to 0:00 - 24:00(EST).
      I'd like to set the day is 17:00 - 17:00(EST). that is 6:00am -6:00am(JST: Japanese standard time).

      I think if I can get Series object of 6:00am - 6:00am(JST),
      I can use high(), low(), close() function. How do I it?

      I have additional question.
      In PivotPointAll.efs, there is the .getValue(-1),
      it is correct .getValue(0) isn't it?

      var vHigh = xHigh.getValue(-1);
      var vLow = xLow.getValue(-1);
      var vClose = xClose.getValue(-1);
      Last edited by amou; 04-19-2006, 09:08 PM.

      Comment


      • #4
        amou
        Even though the pivots in the PivotPointAll formula plot from 00:00 to 24:00 they are actually calculated using the High, Low, Close of the daily bar which in the case of Forex is based on a Start/End time of 17:00 EST (18:00 EDT). For more information on Forex in eSignal you may want to read this article in the eSignal KnowledgeBase.
        Assuming I understood you correctly you want to plot the pivots starting and ending at 17:00 EST (18:00 EDT) which corresponds to 06:00 JST. To accomplish this you would need to write your own formula that keeps track of the High, Low and Close starting from and ending at the specified time and that calculates the pivots based on those stored values.
        There are a couple of users who have already written something along those lines and you can find the scripts posted here and here. If you have any questions about those formulas you may want to address them to the respective authors.
        With regards to your additional question the .getValue(-1) is correct because it is retrieving the corresponding values at the prior bar (hence the -1 bar index)
        Alex

        Comment


        • #5
          Alex,
          It goes well by changing the line of Richbois's ETF.

          fp.setDefault("14");
          --> fp.setDefault("06");

          Thank you very much for your help.

          Comment


          • #6
            amou
            Glad to hear that you found what you were looking for and you are most welcome
            Alex

            Comment

            Working...
            X