Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

toggle CalculateOnBarClose using a bool inside OnBarUpdate chapter

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

    toggle CalculateOnBarClose using a bool inside OnBarUpdate chapter

    Hello,

    Weird question : would there be a trick to toggle CalculateOnBarClose as a bool parameter inside the OnBarUpdate chapter ?

    like

    if (cobc) CalculateOnBarClose=True
    else CalculateOnBarClose=false

    Obviously, those simple lines don't work.

    Thanks a lot

    #2
    Unfortunately not SARdynamite - however an often used way to achieve both intrabar / end of bar calcs is revealed here -

    http://www.ninjatrader.com/support/f...ad.php?t=19387
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thank you !

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by iradielt, Today, 10:06 PM
      0 responses
      2 views
      0 likes
      Last Post iradielt  
      Started by gbajaj, Today, 03:35 PM
      2 responses
      10 views
      0 likes
      Last Post gbajaj
      by gbajaj
       
      Started by space_trader, Today, 03:19 PM
      2 responses
      8 views
      0 likes
      Last Post space_trader  
      Started by max1ci6, Today, 02:02 AM
      4 responses
      28 views
      0 likes
      Last Post joromero  
      Started by Johnny, Today, 02:38 PM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Tyler  
      Working...
      X