• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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:	44
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:	44
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 GLFX005, Today, 05:48 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by TSmith, Today, 01:40 AM
        1 response
        23 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by DTSSTS, Today, 09:53 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by ChazJ, Today, 11:04 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by trader14, Yesterday, 08:12 PM
        4 responses
        22 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Working...
        X