Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ageeholdings, 05-01-2024, 05:22 AM
    5 responses
    30 views
    0 likes
    Last Post ageeholdings  
    Started by reynoldsn, Today, 02:34 PM
    0 responses
    6 views
    0 likes
    Last Post reynoldsn  
    Started by nightstalker, Today, 02:05 PM
    0 responses
    10 views
    0 likes
    Last Post nightstalker  
    Started by llanqui, Yesterday, 09:59 AM
    8 responses
    29 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by quicksandatl, Today, 01:39 PM
    1 response
    6 views
    0 likes
    Last Post quicksandatl  
    Working...
    X