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 mic414, Yesterday, 11:52 PM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by fmcap, Yesterday, 10:49 PM
      0 responses
      2 views
      0 likes
      Last Post fmcap
      by fmcap
       
      Started by iradielt, Yesterday, 10:06 PM
      0 responses
      2 views
      0 likes
      Last Post iradielt  
      Started by gbajaj, Yesterday, 03:35 PM
      2 responses
      11 views
      0 likes
      Last Post gbajaj
      by gbajaj
       
      Started by space_trader, Yesterday, 03:19 PM
      2 responses
      8 views
      0 likes
      Last Post space_trader  
      Working...
      X