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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    49 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    15 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X