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 horacioofman, Today, 04:43 PM
      0 responses
      3 views
      0 likes
      Last Post horacioofman  
      Started by David Hill, 07-18-2024, 07:41 AM
      4 responses
      27 views
      0 likes
      Last Post David Hill  
      Started by aban1alpha, Today, 02:01 PM
      0 responses
      6 views
      0 likes
      Last Post aban1alpha  
      Started by jaybedreamin, Today, 01:08 PM
      0 responses
      7 views
      0 likes
      Last Post jaybedreamin  
      Started by Rheiverson, 07-18-2024, 04:28 PM
      2 responses
      20 views
      0 likes
      Last Post Rheiverson  
      Working...
      X