Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy and Indicator OnMarketData calling sequence

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

    Strategy and Indicator OnMarketData calling sequence

    Hi,

    I had developed an Indicator wich one is make calculation in the OnMarketData method and I want to use this indicator in a strategy.
    I tested with Prints the sequence and I recognized that the OnMarketData of the Strategy is called before the OnMarketData of the Indicator.
    My problem is that if I want to make a decision about to enter on trade in the Strategy then actually I have to wait for one more tick.
    If I move the Indicator's code to the Strategy then I can make the decision right after the calculation.
    Can I change the sequence or force the Indicator to make the calculation before the Strategy?​

    #2
    Hello Teorod,

    There is no way to change the sequence of events, if you have solved the problem by putting the code in the strategy that would be the best solution.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    78 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X