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

Renko Charts and "on bar update"

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

    Renko Charts and "on bar update"

    Good evening to you

    Made a few progress in my "ninja scripts.

    But I Wonder..

    does the "on bar update method" work exacty de same way as it does with a time "based chart"

    I'had the "strategy button" not accessible "light grey" quite a few times.

    and I Wonder where I'm wrong

    Thanks for your help

    benoit

    #2
    Hello Benoit,

    How OnBarUpdate() will act will depend on what CalculateOnBarClose(COBC) is set to as it can vastly effect how your code functions. If COBC is true, then the strategy/indicator will be calculated at the close of each bar/beginning of a new bar so. If COBC is false, then it will act differently since it will be calculated on each tick. You may see the following link for more info on COBC.


    If the Strategy button is greyed out then you may want to check the following items:

    * NinjaTrader must be connected to real-time incoming data, note the Simulated Data Feed (for some instruments) and Market Replay Data may be used.
    * You can not run Chart Trader on a chart while you have a running strategy applied to the chart (to disable right click inside chart, select Properties, and make sure Show chart trader is set to False)
    For more information you may view the following link that goes over "Running a NinjaScript Strategy from a Chart".

    JCNinjaTrader Customer Service

    Comment


      #3
      Thanks

      the "unaccassible strategy light greyed is understood.

      and my COBC (I definitally learned something today) is set to true

      I will have a look at the document your refered

      have a nice evening

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ender_wiggum, Today, 09:50 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by rajendrasubedi2023, Today, 09:50 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by geotrades1, Today, 10:02 AM
      0 responses
      4 views
      0 likes
      Last Post geotrades1  
      Started by bmartz, Today, 09:30 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by geddyisodin, Today, 05:20 AM
      3 responses
      24 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X