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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    53 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X