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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    72 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    39 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X