Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Enter trade at open and exit trade at close

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

    Enter trade at open and exit trade at close

    how do i exit a trade on a daily time frame at the close of the same bar that i entered the trade?

    #2
    d.allen101,

    You will only be able to do that in real-time or if you have intrabar granularity. In backtesting when you are processing daily bars, all your signals are processed at the end of each bar and because the bar is closed you can't trade on that bar anymore.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I can't figure how to simply generate signal on daily time frame and buy the open and sell the close following the signal day. are there any threads that address this issue?

      Comment


        #4
        Please see this reference sample for intrabar granularity: http://www.ninjatrader-support2.com/...ead.php?t=6652
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Austiner87, Today, 03:42 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by cshox, Today, 11:11 AM
        2 responses
        12 views
        0 likes
        Last Post cshox
        by cshox
         
        Started by algospoke, Today, 06:53 PM
        0 responses
        5 views
        0 likes
        Last Post algospoke  
        Started by mlprice12, 12-21-2021, 04:55 PM
        3 responses
        293 views
        0 likes
        Last Post paypachaysa  
        Started by lorem, 04-25-2024, 09:18 AM
        20 responses
        85 views
        0 likes
        Last Post lorem
        by lorem
         
        Working...
        X