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

Plot based on Time

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

    Plot based on Time

    I am looking for plot already existing I hope. But how to approach if not.
    I wish to create a plot on chart that is time based rectangle much like doch. Channell but is the High and Low plotted line with the the High of last 20 minutes and low of last 20 minutes (I would have the time as a variable)

    So High line and Low line just advance to the right every 1 minute
    Thanks for any feedback

    #2
    Hello DTSSTS,

    That depends on what timeframe you want to use as the primary. If you are using 1 minute bars you can just use MAX and MIN with a 20 bar lookback period to get the high and low of that period. After getting those values you could plot the values to two plots.

    JesseNinjaTrader Customer Service

    Comment


      #3
      Sorry did not think of that, not planning to use Time Based Charts

      Comment


        #4
        Hello DTSSTS,

        For non time based charts there wouldn't be a way to get specifically 20 minutes. You would have to come up with logic to figure out how many bars are within a range around 20 minutes and then use that for the lookback period. Non time-based bars don't have a guarantee of specific amounts of time.

        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by StockTrader88, 03-06-2021, 08:58 AM
        45 responses
        3,992 views
        3 likes
        Last Post johntraderuser2  
        Started by TAJTrades, Today, 09:46 AM
        0 responses
        7 views
        0 likes
        Last Post TAJTrades  
        Started by rhyminkevin, Yesterday, 04:58 PM
        5 responses
        62 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Started by realblubb, Today, 09:28 AM
        0 responses
        8 views
        0 likes
        Last Post realblubb  
        Started by AaronKoRn, Yesterday, 09:49 PM
        1 response
        19 views
        0 likes
        Last Post Rikazkhan007  
        Working...
        X