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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    18 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