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 XXfea, Yesterday, 07:01 PM
      3 responses
      19 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by mrgreentrading, 04-11-2025, 08:41 PM
      10 responses
      94 views
      0 likes
      Last Post NinjaTrader_Eduardo  
      Started by ulisesguerrero, Today, 08:17 AM
      0 responses
      12 views
      0 likes
      Last Post ulisesguerrero  
      Started by raysinred, Yesterday, 10:32 AM
      2 responses
      26 views
      0 likes
      Last Post raysinred  
      Started by momchi, 04-26-2025, 10:22 AM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X