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 carnitron, Today, 08:42 PM
      0 responses
      5 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Today, 07:51 PM
      0 responses
      7 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,974 views
      3 likes
      Last Post jhudas88  
      Started by rbeckmann05, Today, 06:48 PM
      0 responses
      8 views
      0 likes
      Last Post rbeckmann05  
      Started by rhyminkevin, Today, 04:58 PM
      4 responses
      58 views
      0 likes
      Last Post dp8282
      by dp8282
       
      Working...
      X