Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entry signal issue

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

    Entry signal issue

    I currently have a strategy with only 2 conditions for entry (ATR trail and custom trend code) It performs the correct functions if both conditions line up at the same time but when the ATR trail changes trend and the trend iis already up, it doesn't print an entry.

    Can anyone offer advise on how to structure this ? I have included a picture below



    #2
    Hello Teebone21,

    Thanks for your post.

    You would need to debug your strategy using print statements to print out the values of the variables that make up your entry conditions. Here is a link to our debugging tips: https://ninjatrader.com/support/help...script_cod.htm

    In the case of the ATRTrail indicator, the indicator plots either a lower dot or an upper dot and never both at the same time. When it does not plot, the value for that plot would be zero and I suspect that may be the issue you are running into which can be proven by printing out the values of the entry condition variables.

    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