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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    116 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    61 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    40 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    43 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    82 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X