Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to enter or exit a trade at the end of the bar?

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

    How to enter or exit a trade at the end of the bar?

    I am developing a strategy, which would trade on a bar close.
    I want to evaluate trade conditions right before the close and then enter or exit on close.
    Can I test it using Strategy Analyzer?
    Is there a way to make EnterLong enter the market on the last bar close rather than the next bar open?

    If not, what can you recommend?

    Thank you

    #2
    Hello,

    Thank you for the question.

    In NinjaTrader you do have the ability to create a strategy that would execute on the bar close but also update values for each tick.

    There are various ways to do this in NinjaScript, but for backtesting specifically you would want to use a MultiTimeframe strategy.

    There is a simple example of this included with NinjaTrader, you can locate it by going to the Tools -> Edit NinjaScript -> Strategy menu and looking for SampleMultiTimeFrame.

    This would be an item that needs to be manually coded so the wizard would be unable to complete this type of strategy specifically.

    If you have questions on this please let me know and I will be happy to help.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by trilliantrader, 04-18-2024, 08:16 AM
    5 responses
    22 views
    0 likes
    Last Post trilliantrader  
    Started by Davidtowleii, Today, 12:15 AM
    0 responses
    3 views
    0 likes
    Last Post Davidtowleii  
    Started by guillembm, Yesterday, 11:25 AM
    2 responses
    9 views
    0 likes
    Last Post guillembm  
    Started by junkone, 04-21-2024, 07:17 AM
    9 responses
    70 views
    0 likes
    Last Post jeronymite  
    Started by mgco4you, Yesterday, 09:46 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X