Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

MAX value with Time Series

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

    MAX value with Time Series

    Hello. I'm using tick chart and I want to calculate MAX and MIN values of price every 5 minute.
    For example in 01:00 i want to calculate MAX High from 00:55 to 01:00
    In 01:05 i want to calculate MAX High from 01:00 to 01:05.
    How can I do this? Thank you

    #2
    Hello YevhenShynkarenko,

    Thanks for your post.

    If you want to just visualize this, you could add a 5 minute data series, change to a chart style of Box and set the colors of the box to transparent and set the outline colors as you wish. I've attached an example with the settings shown in case you wish to use that.

    Click image for larger version

Name:	YevhenS-1.PNG
Views:	358
Size:	104.3 KB
ID:	1080874

    Coding wise, you could create an indicator that adds a 5 minute data series and then draw the lines on the chart using the Draw.Line() method on the chart bars based on the five minute bar high and low.



    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_PaulH View Post
      Hello YevhenShynkarenko,

      Thanks for your post.

      If you want to just visualize this, you could add a 5 minute data series, change to a chart style of Box and set the colors of the box to transparent and set the outline colors as you wish. I've attached an example with the settings shown in case you wish to use that.

      Click image for larger version

Name:	YevhenS-1.PNG
Views:	358
Size:	104.3 KB
ID:	1080874

      Coding wise, you could create an indicator that adds a 5 minute data series and then draw the lines on the chart using the Draw.Line() method on the chart bars based on the five minute bar high and low.


      I don't need to visualize it. I need to calculate it in indicator ang get that value.

      Comment


        #4
        Hello YevhenShynkarenko,

        Thanks for your reply.

        I've already provided the process: "Coding wise, you could create an indicator that adds a 5 minute data series and then draw the lines on the chart using the Draw.Line() method on the chart bars based on the five minute bar high and low."
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        1 view
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        238 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        383 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        1 view
        0 likes
        Last Post oviejo
        by oviejo
         
        Started by pechtri, 06-22-2023, 02:31 AM
        10 responses
        125 views
        0 likes
        Last Post Leeroy_Jenkins  
        Working...
        X