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 kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    57 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    39 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    45 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    35 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    153 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X