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

Changing Data Series On Chart

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

  • NinjaTrader_PaulH
    replied
    Hello quinton77,

    Thanks for your post.

    You can modify your strategy so that it has a "start date" that it would look for before processing any data. I've attached an example of this that you can test with. The example provides an input where you can select the strategy start date. To prove, the strategy will print to the Tools>output window The date/time of each bar indicates that the strategy would process that bar (based on the start date). The default start date would be the day you apply the strategy ( a default was needed).

    To test, apply the strategy to a chart, set the strategy start date to be some day within the charts range of dates, observe in the output window the verifying prints.



    StartDateTest.zip



    Leave a comment:


  • quinton77
    started a topic Changing Data Series On Chart

    Changing Data Series On Chart

    Hello everyone,,

    I have noticed that when I set a custom data range on my charts, it will maintain the same number of days (span) for the series. But the reason I use the custom range is to maintain the same start date. It will update the end date, but then changes the start date to maintain the same span. I don't know if this is a bug, or if there is a setting I can change, but this is not what I want for my strategy. I want the start date to remain fixed and the end date to update to the current day as it already does.
    snaptube.cam/ syncnet.onl/telegram-web/ 9apps
    Is there a way to fix this? Am I doing something wrong? If there is a way to ensure the strategy overrides the chart and always starts on a specific date, I'm ok with taking that approach too.

    Any help would be greatly appreciated.

    Thanks,
    quinton.
    Last edited by quinton77; 01-19-2020, 01:26 AM.

Latest Posts

Collapse

Topics Statistics Last Post
Started by trilliantrader, Yesterday, 03:01 PM
3 responses
29 views
0 likes
Last Post NinjaTrader_Clayton  
Started by cmtjoancolmenero, Yesterday, 03:58 PM
4 responses
26 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by Brevo, Today, 01:45 AM
1 response
14 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by rjbtrade1, 11-30-2023, 04:38 PM
2 responses
74 views
0 likes
Last Post DavidHP
by DavidHP
 
Started by suroot, 04-10-2017, 02:18 AM
5 responses
3,022 views
0 likes
Last Post NinjaTrader_Gaby  
Working...
X