Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Secondary data series causing issue

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

    Secondary data series causing issue

    If I attempt to enable the strategy below, and look at the strategy setup window immediately thereafter, it shows as disabled. If I remove the Add() renko bars, it works fine. I've employed multiple timeframes in many other strategies and never had any issues, but this is the first time I'm using Volume bars as primary data series. Am I forgetting to do something here?

    Code:
    protected override void Initialize()
            {
                Add(PeriodType.Renko,3);
                CalculateOnBarClose = true;
            }
    
            /// <summary>
            /// Called on each bar update event (incoming tick)
            /// </summary>
            protected override void OnBarUpdate()
            {
                if (BarsInProgress != 0)return;
    			
    		// Condition set 1
                if (Close[0] > Open[0] )
                {
                    DrawArrowUp("My up arrow" + CurrentBar, false, 0, Low[0] + -2 * TickSize, Color.Lime);
                    EnterLong(DefaultQuantity, "");
                }
    			
            }
    EDIT: I just tried changing the Renko secondary series to Minute and it works.

    Never mind, my bad. I see there is a special syntax for this: AddRenko()
    Last edited by coolmoss; 07-13-2012, 04:24 PM.

    #2
    coolmoss,

    I am happy you have resolved your issue. Please feel free to contact us any time.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 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
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 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