NexusFi: Find Your Edge


Home Menu

 





TradeStation keyword question


Discussion in TradeStation

Updated
    1. trending_up 5,594 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 10 posts
    2. attach_file 0 attachments




 
Search this Thread
  #11 (permalink)
 
Hulk's Avatar
 Hulk 
Texas, USA
 
Experience: Advanced
Platform: TT, Custom
Trading: Futures, Spreads
Posts: 399 since May 2014
Thanks Given: 758
Thanks Received: 952


IlyaKipnis View Post
Alright, so Rsquare is the R-squared of the high of prices (y) with respect to bar number (x).
The slope, ALSO, is the high of prices (y) with respect to bar number(x)?

I think I am unable to translate the code to you. Lets just go by the documentation:


R-Square Function
R-Square (r2) is the coefficient of determination, which measures the proportion of variation that is explained by the independent variable in a regression model. This function takes the value of CoeffR for the specified Length and squares the value. that is, CoeffR(Length) * CoeffR(Length). The RSquared value can be interpreted as the proportion of the variance of Price with respect to the specified period (’Length’).

So, this function would use the PriceH over specified length to compute the value.


LinearRegSlope Function
Linear Regression is a concept also known as the "least squares method" or "best fit." Linear Regression attempts to fit a straight line between several data points in such a way that distance between each data point and the line is minimized.

Returns
A numeric value containing the slope of the current regression line.

Usage
The input Price can be hard coded with a bar attribute such as Close, Open, High, Low, and Volume or a numeric series type input. It can also be replaced with a valid EasyLanguage expression. For example: Close + Open, or Average(RSI(Close,14),14).

The input Length can be hard coded replaced with a numeric simple type input.

And this function calculates the slope of PriceH over the same length used in the previous function.

Hopefully this answers the question, otherwise I am out


Visit my NexusFi Trade Journal Reply With Quote




Last Updated on August 24, 2014


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts