• 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

ChartToolBarExample

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

    ChartToolBarExample

    I'm currently using the ChartToolBarExample to change period parameters in some moving average indicators I've coded for my indi. When I make the changes using the charttoolbarexample buttons they update the current moving average periods as expected but I don't know how to make the indicator recalculate the new period for all previous bars as is done when you update the period of an EMA using the UI and all indis get recalculated. I've tried ForceRefresh() but it doesn't recalculate the previous bars like the UI does. Is it possible to do what I'm trying to do or not?
    Thanks

    #2
    Hello,

    Thank you for the post.

    I am not certain if this would be possible in the supported sense. I am certain there are likely ways to cause this reload in undocumented/unsupported ways but I would not be certain if the data then would be correct or if it would cause other problems.

    I currently have a question into development on this to see if this is both supported and if there is a suggested way to do this.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello,

      I wanted to reply back on this item after further review.

      Currently there is no supported way to reload NinjaScript objects programmatically, unfortunately the framework is just not prepared to handle that type of request. You can easily get into problem areas where ninjascript reloads itself so this has not been implemented.

      As such because there have been a number of requests for this it has been added as a feature request. Unfortunately this concept was not considered at the time of development so there would not be a suggested way to do this.

      I look forward to being of further assistance.
      JesseNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by levikNT, Today, 04:39 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by chartish, Today, 08:36 AM
      2 responses
      14 views
      0 likes
      Last Post chartish  
      Started by login_dejavu, Yesterday, 04:58 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_RyanS  
      Started by NinjaTrader_PaulH, Today, 07:40 AM
      0 responses
      4 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by awesometrader, Today, 06:59 AM
      2 responses
      9 views
      0 likes
      Last Post awesometrader  
      Working...
      X