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:	357
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:	357
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 funk10101, Today, 12:02 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by GLFX005, Today, 03:23 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by nandhumca, Yesterday, 03:41 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by The_Sec, Yesterday, 03:37 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by vecnopus, Today, 06:15 AM
        0 responses
        1 view
        0 likes
        Last Post vecnopus  
        Working...
        X