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 judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      21 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      9 views
      0 likes
      Last Post cre8able  
      Working...
      X