Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simple EMA crossover strategy. CrossBelow/Above

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

    Simple EMA crossover strategy. CrossBelow/Above

    I've studying Strategy development and trying to develop simple unmanaged EMA crossover strategy.
    I faced with issue when my condition for long is triggering few days in the past.
    Is there is something I should consider to test my strategy on real time?
    Attached Files

    #2
    Hello yyesyyesyyes,

    "I faced with issue when my condition for long is triggering few days in the past."

    Is the issue that the condition is evaluating as true and you are expecting the condition to evaluate as false?

    Print the time of the bar and print all values in the condition with labels for each value and comparison operator to the output window to understand why the condition is evaluating as true or false.

    Below is a link to a forum post that demonstrates how to add informative debugging prints for a CrossAbove() condition and includes videos.


    Save the output to a text file and include this with your next post.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    71 views
    0 likes
    Last Post PaulMohn  
    Working...
    X