Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Syntax for Line Break bars?

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

    Syntax for Line Break bars?

    It was after much difficulty that I eventually learned the syntax for adding a Renko timeframe to a strategy (it was not the regular AddPeriodType.Renko).

    Now I would like to figure out how to add a Line Break timeframe to a strategy. Is there a similar unique syntax?

    This compiles:
    Code:
    Add(PeriodType.LineBreak,  2);
    As does the simple line I wrote just to test it out:

    Code:
                if  (DoubleStochastics(BarsArray[1], 5).K[0] > 90)[INDENT]            {DrawDiamond("Diamond" + CurrentBar.ToString(), true, 0,  
                 High[0] + (TickSize * 4), Color.Blue);
                }[/INDENT]
    But the strategy won't run on a five-minute chart. Stays "Enabled: False" no matter what I do.

    #2
    Hello hawks67,

    Yes, to add a line break bar you will need to use AddLineBreak().
    http://www.ninjatrader.com/support/h...dlinebreak.htm

    These methods are found in the help guide and I am linking the alphabetical reference to make these a bit easier to find.
    http://www.ninjatrader.com/support/h..._reference.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    572 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    331 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    549 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    550 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X