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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    57 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    161 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    97 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X