Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can you get last price using OnBarUpdate() Method

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

    Can you get last price using OnBarUpdate() Method

    Hi I am wondering if you can get last price data from the OnBarUpdate() method to use with COBC = false. Or only the OnMarketData() Method. If I have to use the OnMarketData() Method is "Price" all I need to type in this method to to get the current last price? Thanks

    Ash


    #2
    Yes Ash, using Close[0] in OnBarUpdate() with the script set to CalculateOnBarClose = false should do it for you.

    Comment


      #3
      Great. Thank you for the quick reply.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      58 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      35 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      103 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      184 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      171 views
      0 likes
      Last Post CarlTrading  
      Working...
      X