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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    128 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    117 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X