Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Data Series that produces a signal

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

    Data Series that produces a signal

    I used Strategy Builder to create a strategy that would notify me when a third Party vendor indicator displayed a Drawing Object on the screen. The objects are normal triangles produced by a plot. There are also coinciding transparent line plots. With the strategy, I tried both. When I ran the strategy, I got an error that said the indicator was trying to load additional data so I introduced the added data into the strategy builder although, I had no idea why it was necessary.. The builder introduced two lines a the beginning of OnBarUpdate as follows
    :if (BarsInProgress != 0)
    return;

    if (CurrentBars[0] < 0)
    return;
    The plots are Threshold1 and ThresholdSignal1 and I have tried both. My strategy merely Prints to the output screen a variable assigned the value of the plot. When I first enable the strategy, I get values of either 1 or -1 but when the indicator is working, I get all 0's which is the assigned value of the variable. I believe it has something to do with that extra data series but I don't know what.

    #2
    Hello galsermil,

    The extra data series was needed because the indicator adds that series as well, the strategy needs to be configured to use the same data is the reason for that warning.

    From the description it sounds like you are saying that it produces 1/-1 values in historical data but in realtime it is not. Is that correct?

    This could relate to the Calculate setting of the strategy, if the indicator normally uses OnBarClose and the strategy is OnEachTick that would cause the indicator to use OnEachTick and may affect its realtime results. A step to take would be to manually apply the indicator and then check what Calculate setting it has default then make the strategy match that.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    649 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    576 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X