• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy not placing orders

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

    Strategy not placing orders

    Using Unmanaged Approach and if I have "longEntry == null" in the if statement in line 50, it won't submit orders. If I take it out, no problem. Wondering what would be "longEntry" not to be null at the start of the strategy. Any help is appreciated. Thanks
    Attached Files

    #2
    Hello Lumbeezi,

    Thanks for your post.

    I would recommend looking into the TraceOrders output to better understand what is happening with the historical processing of your strategy. Also glancing at your code, I see that you are not handling order cancellations for your entry or exit.

    I have also attached an Unmanaged Approach strategy template that you can use as reference throughout the development of your strategy.

    Reference for using TraceOrders output can be found here - https://ninjatrader.com/support/help...aceorders2.htm

    Please let us know if we can provide further assistance.
    Attached Files
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Johnny Santiago, Today, 12:30 PM
    7 responses
    35 views
    0 likes
    Last Post Johnny Santiago  
    Started by ttodua, Today, 12:26 PM
    3 responses
    8 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by dastaan, 06-26-2020, 04:33 AM
    6 responses
    113 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by RumHam, Today, 12:14 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by Lancer, Today, 12:12 PM
    4 responses
    19 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Working...
    X