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