Announcement

Collapse
No announcement yet.

Changing Time Frame of Pivot Lines

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

  • Changing Time Frame of Pivot Lines

    Hallo

    I downloaded the attached Pivot Lines efs some time ago. I made some changes which includes changing colours and thickness of certain lines.

    I would like to improve it further as follows:

    Add text to the right of each line for example: R1, S1, R2, M3, PP, etc.

    The pivots are calculated obviously on the previous days OHLC information. How can I change the time period over which the pivots are calculated, say from 10pm the previous night to 10pm last night. I want to be able to change the 24 hours period from time to time without changing my computer's clock timezone etc.

    I would appreciate any help or advice in this regard.

    Thank you.

    Regards

    Kobus
    Attached Files

  • #2
    Kobus
    To add (for example) the PP label insert the following line of code in line 175 of the script
    drawTextAbsolute(2, vLastPP, "PP", Color.black, null, Text.VCENTER, "Arial", 12, "PivotPoint");
    Using the above as a guideline add the other labels you want.
    For the complete syntax of drawTextAbsolute see Help in the Editor or this article in the EFS KnowledgeBase (btw you may want to bookmark this link for future reference)
    Alex

    Comment


    • #3
      Alexis

      Thank you very much for the advise, I upgraded the version to include the labels as per the attached file.

      Can you please point me in the right direction as how to change the period over which the pivots are calculated?

      Your advise is greatly appreciated.

      Regards

      Kobus
      Attached Files

      Comment


      • #4
        Kobus
        You cannot change the period over which the pivots are calculated because the script retrieves the HLC values from the daily bar
        Alex

        Comment

        Working...
        X