Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

indicator output double available to a strategy

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

    indicator output double available to a strategy

    Hi, trying to get a complex indictator to determine the buy/sell signal inside itself, which I have...and I'd like it to set a public double to 1/-1 for a buy/sell respectively that the strategy can key upon for it's buy/sell signals, making the logic in the strategy very simple.

    Upon looking at this forum it was said that I should make it a DataSeries and expose it, so I did:

    /// <summary>
    /// </summary>
    [Browsable(false)]
    [XmlIgnore()]
    public DataSeries signal
    {
    get { return Values[4]; }
    }

    However...when I do this my indicator stops drawing anything at all, and the strategy does nothing.

    What's the best way to expose one particular variable and have a strategy be able to use logic on that for decision making?

    Thanks for any advice

    #2
    You are going to need to check the error logs and debug your code. http://www.ninjatrader-support.com/v...ead.php?t=3418
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    598 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    555 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X