Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CalculateOnBarClose

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

    CalculateOnBarClose

    I have a question regarding the use of MRO() and HighestBar(). When using them in a strategy that is set to CalculateOnBarClose = False, do these functions make reference to "the number of bars ago", or "the number of ticks ago"? If they reference the number of bars ago, is there a way to reference the number of ticks ago?

    Thanks,

    Safetrading

    #2
    Hi SafeTrading,

    All NinjaScript methods will use bars. To reference the number of ticks ago you would have to add a tick series and reference this series in your methods. Unfortunately MRO() does not work in multiseries contexts so you would have to custom code this.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks

      Thanks for the reply

      Originally posted by NinjaTrader_RyanM View Post
      Hi SafeTrading,

      All NinjaScript methods will use bars. To reference the number of ticks ago you would have to add a tick series and reference this series in your methods. Unfortunately MRO() does not work in multiseries contexts so you would have to custom code this.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by rajendrasubedi2023, Today, 09:50 AM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by lorem, Today, 09:18 AM
      2 responses
      11 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by geddyisodin, Today, 05:20 AM
      4 responses
      29 views
      0 likes
      Last Post geddyisodin  
      Started by geotrades1, Today, 10:02 AM
      2 responses
      10 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by ender_wiggum, Today, 09:50 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X