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 cmoran13, 04-16-2026, 01:02 PM
    0 responses
    43 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    26 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    163 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    98 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    158 views
    2 likes
    Last Post CaptainJack  
    Working...
    X