Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Timeframe Entries

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

    Multi Timeframe Entries

    If I wanted to make entries or stops on different timeframes, that are done after a certain condition in an if statement, do I need to specify the BarsInProgress index for both the if statement and the order entry? That may not be clear so here's an example.

    if (BarsInProgress == 0
    && High[0] > High[1])
    {
    EnterLong(100, "Entry"):
    }

    Versus

    if (BarsInProgress == 0
    && High[0] > High[1])
    {
    EnterLong(0, 100, "Entry");
    }

    #2
    If you already have an if statement for if (BarsInProgress...) then you do not need to do the EnterLong(0, 100,....). You should be fine with just EnterLong(100, "Entry").
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    569 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 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
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X