Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Linear Regression Slope Indicator

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

    Linear Regression Slope Indicator

    Hi,

    I'm using the linear regression slope in a strategy I am building with strategy builder (code is locked). The data input series I am using for the Lin. Reg. Slope is based on the stochastic. When I plot this on a chart, it works fine, and the Data Box reflects appropriate data. However, when I use it in conditions for a strategy, it continually fails to identify when the conditions are met. I have used very simple conditions to trouble shoot, but it rarely identifies the condition. For instance, I'll use a simple condition such as the Lin. Reg. Slope (with stochastics data input) is rising, along with a couple other basic conditions, but it will enter a trade when the Lin Reg. Slope is falling, or it won't enter a trade at all even though it is very clear on the chart that all conditions are met.

    Any help would be appreciated.

    Thank you.

    #2
    Hello RideMe,

    Thanks for your post.

    The Linear Regression Slope indicator will return a double value.

    IsRising is a bool variable that returns a value of true or false.

    When using IsRising in the Strategy Builder, you could pass in the Linear Regression Slope indicator for the IsRising 'Series1' property.

    This reference sample from the help guide that demonstrates using IsRising and IsFalling conditions in the Strategy Builder: https://ninjatrader.com/support/help...sfalling_c.htm

    More information could be found in the help guide documentation links below.

    Linear Regression Slope: https://ninjatrader.com/support/help...sion_slope.htm
    IsRising: https://ninjatrader.com/support/help...nt8/rising.htm

    Let me know if you have further questions.
    <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
    89 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 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
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X