Announcement

Collapse
No announcement yet.

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:	258
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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    30 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X