Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Intrabar backtest

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

    Intrabar backtest

    Hi,

    I am trying to learn how to create an intrabar backtest strategy and I am using a sample strategy provided by ninja trader. I am not great at programming but I am trying to copy the example. It doesn't seem to be working though. I am currently using a demo data feed from apexfutures and I wonder if that might have something to do with it?

    Also the sample strategy only shows what to do when entering the trade but I wonder how one would go about creating an intrabar exit strategy also? do you just follow the same template as the entry?

    Do i need to set barsin progress==1 instead of bars in progress==0 for the buy signals to be used on the secondary time frame?

    Thanks!
    Last edited by nklar1; 10-15-2012, 07:58 AM.

    #2
    nklar,

    Without seeing your code here it would be difficult to comment further.

    Which sample strategy are you using? SampleMultitimeframe?

    Exit strategies follow similar formulas, you just setup your exit conditions, then use either ExitLong or ExitShort instead of an entrance command.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X