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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    84 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    66 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    69 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    58 views
    0 likes
    Last Post CarlTrading  
    Working...
    X