Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BackTest

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

    BackTest

    Hi,

    I'm doing a backtest and using calculateonbarclose=true.

    I undertstand that the bar 0 is the current closed bar. I enter a stoplimit order that is being executed next bar and then, through OnExecution event I'm detecting execution and placing the StopOrder. However ninja is returning tha the order can't be placed because the stop is greater then or equal to the close of the bar.... Actually it is greater the the close of the bar 0, but not the close of bar (-1) that is when the entry is being executed....

    Am I doing something wrong ?

    Regards,
    Last edited by agenor; 08-02-2014, 09:31 AM.

    #2
    Hello Agenor,

    Thank you for your post.

    Would you be able to post a screenshot of what you are seeing?

    To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file. Go to the thread, Click Reply -> Go Advanced -> Click the Paperclip icon on the toolbar.

    For detailed instructions please visit the following link

    http://take-a-screenshot.org/
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    646 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    367 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    570 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X