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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    65 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Working...
    X