New 365 day high in multiple time frames

Optuma Forums Optuma Scripting New 365 day high in multiple time frames

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #58031
    • Topics: 15
    • Replies: 24
    • Posts: 39


    I’m having difficulty coding this. I am trying to place a show bar over each bar which is a new 365 day high using the following script:

    //This is a 365 day new high indicator

    V1=HighestHigh(Day(PERIODAMOUNT=1), BARS=365,BACKTYPE=Days, INCBAR=False, INSIDEBAR=False);



    Please see attached chart and photo.


    Note that the labels are from 22/02/2008 to 23/02/2009 ie 365 days, which should result in an arrow being placed above the 23/02/2009 bar but it is not doing so. Can you please let me know how to get the script to work so it picks up that highest high over 365 days. I don’t want to use the 52 week as a solution as it places the arrow over the wrong daily bar. Alternatively, using 250 bars will not be an exact 365 day period which I’m trying to script.



    • Topics: 53
    • Replies: 396
    • Posts: 449

    Hi Karen,

    Try this: HIGH() > HIGHESTHIGH(BARS=365, BACKTYPE=Days)

    More HighestHigh/LowestLow examples here:

    Also, rather than send pictures of both your monitors (which makes the chart image small and harder to read) save the chart as an image file using the Shift+I keyboard shortcut and insert in to the post. Thanks!

    • Topics: 15
    • Replies: 24
    • Posts: 39


Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.