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