Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Lin Reg Interceptor in a strategy

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

    Lin Reg Interceptor in a strategy

    Hi, I am trying to use lin reg interceptor indicator for an automated strategy in STRATEGY BUILDER. I am using it as a trigger to place an order when it crosses over an ema. For some reason, it places long and short orders all over the place, (not at the intersection of the two indicators like it should. I have tried "greater" and I have tried "crosses", but still same effect - orders at random places. What can I do?
    Thanks

    #2
    Hello misterbehm3,

    Thanks for your post.

    If an order is being placed by the strategy that means the condition to place the order is becoming true. Orders will not be placed by the NinjaScript strategy unless the condition to place the order becomes true.

    To understand why the script is behaving as it is, such as placing orders or not placing orders when expected, it is necessary to add prints to the script that print the values used for the logic of the script to understand how the script is evaluating.

    Below is a link to a forum post that demonstrates how to use prints to understand behavior. The forum post also contains a video demonstrating adding prints using the Strategy Builder.

    https://ninjatrader.com/support/foru...121#post791121

    Let us know if we may assist further.​
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    91 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
    121 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X