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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    59 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    161 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    97 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X