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:	304
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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    60 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    43 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    47 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    38 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X