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

How to plot starting at a specific date and time

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

    How to plot starting at a specific date and time

    Hi all,


    In the image below, at the green arrow, I start computing a moving average at a specific date and time. However, you can see that I have a moving average at the left of this date (red arrow) which is not computed.

    I'm wondering how I can plot only the moving average starting at the same date and time than I begin to compute. I don't want anything showing up at the left of it.

    I've searched a lot in this forum and I didn't find much to help me out with this.

    Regards,


    #2
    Hello mktforecast,

    The easiest way to do what you described would be to use a Series<double> to store the computed data which wont be visible. For the bars you want to see the plot you can set a Plot to the values from the series. The plot would only be shown where you set the plot.

    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Radano, 06-10-2021, 01:40 AM
    20 responses
    616 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by Mizzouman1, Today, 07:35 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by i019945nj, 12-14-2023, 06:41 AM
    6 responses
    67 views
    0 likes
    Last Post i019945nj  
    Started by aa731, Today, 02:54 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by BarzTrading, Today, 07:25 AM
    0 responses
    3 views
    0 likes
    Last Post BarzTrading  
    Working...
    X