Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Needing to get Close[0] or actuall current price in Indicator OnOrderUpdate

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

    Needing to get Close[0] or actuall current price in Indicator OnOrderUpdate

    Hola,

    I need to get the current (at the moment) price ... Last price or Close[ ] inside OnOrderUpdate (Indicator)

    the price I'm getting with Close[0] is nowhere near the current price...

    is there anything like GetCurrentBid/Ask ??

    ???

    #2
    Hi llanqui, thanks for posting. OnOrderUpdate is a non-data-driven event, so you will need to use TriggerCustomEvent inside of OnOrderUpdate to access the latest Close[0] value. I also have a full example using this here, but it's not related to OnOrderUpdate:
    I have a plot I have added to my indicator AddPlot(new Stroke(Brushes.AliceBlue, 0), PlotStyle.Dot, "Buys"); When State == State.RealTime in the OnStateChange() method I am trying to access historical values of the Buys Series but I am getting argumentOutOfRange exceptions. The Count is > 0. Why is this


    If any questions come up please let me know.

    Kind regards,
    -ChrisL

    Comment


      #3
      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      238 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      154 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      163 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      246 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      199 views
      0 likes
      Last Post CarlTrading  
      Working...
      X