TradeStation keyword question (Page 2) - TradeStation | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation

TradeStation keyword question
Started:August 24th, 2014 (07:42 PM) by IlyaKipnis Views / Replies:675 / 10
Last Reply:August 24th, 2014 (08:45 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

TradeStation keyword question

Old August 24th, 2014, 08:45 PM   #11 (permalink)
Elite Member
Texas, USA
Futures Experience: Intermediate
Platform: X_TRADER Pro, Custom
Broker/Data: Nanex, IQFeed
Favorite Futures: Futures, Spreads
Hulk's Avatar
Posts: 199 since May 2014
Thanks: 478 given, 420 received

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.

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

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

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > TradeStation keyword question

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
TradeStation and C# jdfagan TradeStation 9 October 9th, 2014 10:28 PM
openint keyword vs downticks same or? c12345 EasyLanguage Programming 1 July 29th, 2013 05:11 PM
Considering Tradestation: want to know if possible nhboy603 TradeStation 3 January 16th, 2013 07:07 AM
Tradestation order execution question Stephan TradeStation 5 May 8th, 2012 08:14 AM

All times are GMT -4. The time now is 01:22 AM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-27 in 0.06 seconds with 19 queries on phoenix via your IP