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

A Trade is missing on the chart

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

    A Trade is missing on the chart

    Hi there

    I have a pretty simple strategy setup - where i enter long/short whenever close cross above/below EMA.

    I can see it working- but i also see some few issues - like this from the image - where the bar in end of the 10. sept. crosses the EMA (yellow line) - but no exit and no new trade is done at that bar.
    Nothing is then done in 14. september neither.

    Can you explain why this crossabove is not registered?

    Thanks Click image for larger version

Name:	missing_trade.jpg
Views:	206
Size:	151.9 KB
ID:	1119071

    #2
    Hello KarstenKafl,

    Thanks for your post.

    Please make sure that the indicator on the chart is the one being used by the strategy and is being added with AddChartIndicator.

    CrossAbove conditions will become true if the last bar is at or below a value and the next bar is above.

    To understand why the strategy logic has/has not allowed an order submission method to be reached, debugging prints must be used to check the logic.

    If the order method is reached (confirmed with prints) but has not submitted an order, please test again with TraceOrders enabled so you can see the TraceOrders feedback for why the order was ignored.

    If the order was ignored due to an internal rule of the Managed Approach, you may reference these rules below.

    Managed Approach (Internal Rules) - https://ninjatrader.com/support/help...antedPositions

    Debugging Tips - https://ninjatrader.com/support/help...script_cod.htm

    TraceOrders - https://ninjatrader.com/support/help...aceorders2.htm

    Debugging in the Strategy Builder - https://drive.google.com/file/d/1mTq...w?usp=drivesdk

    Debugging Demo - https://drive.google.com/file/d/1rOz...w?usp=drivesdk

    We look forward to assisting.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Haiasi, Today, 06:53 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ScottWalsh, Today, 06:52 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ScottW, Today, 06:09 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ftsc2022, 10-25-2022, 12:03 PM
    5 responses
    256 views
    0 likes
    Last Post KeyonMatthews  
    Started by Board game geek, 10-29-2023, 12:00 PM
    14 responses
    244 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Working...
    X