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:	144
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:	144
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 bjunaid, 09-13-2020, 12:39 AM
        10 responses
        52 views
        0 likes
        Last Post NinjaTrader_ChristopherD  
        Started by hedgeplay, Today, 01:46 PM
        0 responses
        3 views
        0 likes
        Last Post hedgeplay  
        Started by Gerik, Today, 12:35 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by i2w8am9ii2, Today, 12:33 PM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by mkt_anomalies, Today, 12:26 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Jim  
        Working...
        X