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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      580 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      335 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      102 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X