Linear regression channel - futures io
futures io futures trading



Linear regression channel


Discussion in Platforms and Indicators

Updated
      Top Posters
    1. looks_one Tom Joad with 4 posts (0 thanks)
    2. looks_two Big Mike with 2 posts (2 thanks)
    3. looks_3 MaxProfit Group with 1 posts (0 thanks)
    4. looks_4 jan123321 with 1 posts (0 thanks)
    1. trending_up 4,860 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 1 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Linear regression channel

(login for full post details)
  #1 (permalink)
Milano
 
 
Posts: 13 since May 2011
Thanks: 29 given, 0 received

Hello everyone
I would like to create a channel of linear regression EasyLanguage
I OEC as a platform, someone help me?
thanks
...and sorry 4 my English

Reply With Quote

Can you help answer these questions
from other members on futures io?
MACD line not plotting after change of plot order
NinjaTrader
Reading A set of Trading Signals
EasyLanguage Programming
Help Needed: TOS Options Chain IV & IMPL MOVE Calcul …
ThinkOrSwim
Second Entry Indicator (Looking for testers/feedback)
NinjaTrader
Automatic pattern research with NT
Elite Algorithmic NinjaTrader Trading
 
 
(login for full post details)
  #2 (permalink)
Milano
 
 
Posts: 13 since May 2011
Thanks: 29 given, 0 received


Tom Joad View Post
Hello everyone
I would like to create a channel of linear regression EasyLanguage
I OEC as a platform, someone help me?
thanks
...and sorry 4 my English

No one?

Reply With Quote
 
(login for full post details)
  #3 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,785 since Jun 2009
Thanks: 32,314 given, 97,581 received



Tom Joad View Post
No one?

Not an OEC user myself, but pretty sure OEC uses EasyLanguage. I assume it can import ELD files.

Look here:
A User-Interactive Linear Regression Channel Indicator for Tradestation

Attached is the zip from that site.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Attached Files
Register to download File Type: zip LRChan.zip (55.9 KB, 102 views)
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #4 (permalink)
Milano
 
 
Posts: 13 since May 2011
Thanks: 29 given, 0 received


Big Mike View Post
Not an OEC user myself, but pretty sure OEC uses EasyLanguage. I assume it can import ELD files.

Look here:
A User-Interactive Linear Regression Channel Indicator for Tradestation

Attached is the zip from that site.

Mike

Many thanks Mike....

Reply With Quote
 
(login for full post details)
  #5 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,785 since Jun 2009
Thanks: 32,314 given, 97,581 received


Tom Joad View Post
Many thanks Mike....

Does that mean it worked? I wasn't sure if it would.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #6 (permalink)
Milano
 
 
Posts: 13 since May 2011
Thanks: 29 given, 0 received


Big Mike View Post
Does that mean it worked? I wasn't sure if it would.

Mike

No. .. it does not work
I can not find anywhere in easylanguage
Merry Christmas to all
PS TKS Mike...

Reply With Quote
 
(login for full post details)
  #7 (permalink)
Prague/ Czech Republic
 
 
Posts: 8 since Sep 2013
Thanks: 1 given, 3 received

I thought that OEC supports Easy Language, here is a LinearReg function from TS:

{ Linear Regression multiple-output function; see MULTIPLE-OUTPUT FUNCTIONS note
below }

inputs:
Price( numericseries ),
Length( numericsimple ), { Length > 1 }
TgtBar( numericsimple ), { use negative integer for future, positive for past }
oLRSlope( numericref ),
oLRAngle( numericref ),
oLRIntercept( numericref ), { left intercept, at vertical through
Price[ Length - 1 ] }
oLRValue( numericref ) ;

variables:
SumXY( 0 ),
SumY( 0 ),
SumX( 0 ),
SumXSqr( 0 ),
OneSixth( 1 / 6 ),
Divisor( 0 ) ;

if Length > 1 then
begin
SumX = Length * ( Length - 1 ) * .5 ;
SumXSqr = Length * ( Length - 1 ) * ( 2 * Length - 1 ) * OneSixth ;
Divisor = Square( SumX ) - Length * SumXSqr ;
SumXY = 0;
for Value1 = 0 to Length - 1
begin
SumXY = SumXY + Value1 * Price[Value1] ;
end ;
SumY = Summation( Price, Length ) ;

oLRSlope = ( Length * SumXY - SumX * SumY) / Divisor ;
oLRAngle = ArcTangent( oLRSlope ) ;
oLRIntercept = ( SumY - oLRSlope * SumX ) / Length ;
oLRValue = oLRIntercept + oLRSlope * ( Length - 1 + ExecOffset - TgtBar ) ;
LinearReg = 1 ;
end
else
LinearReg = -1 ;

{
MULTIPLE-OUTPUT FUNCTIONS

A multiple-output function has two types of parameters or "inputs" - input parameters
and input/output parameters. The values of the input parameters are passed into the
multiple-output function, but not modified by the function. The values of the input/
output parameters are passed into the multiple-output function, modified by it, and
the modified values are then inherited by - or output to - the calling routine.

The input/output parameters are often used for output purposes only, i.e., the
incoming values are ignored. The outputs are in addition to the function return. In
multiple-output functions, the function return is generally used to return an error
code, though sometimes the return may simply be a dummy value.

The input/output parameters are declared with a "ref" suffix (such as "numericref") in
the multiple-output function's declaration statements. For further clarity, the names
of the input/output parameters are generally prefixed with an "o" in the function as
well as in all the routines that call the function.

The built-in single-return WRAPPER FUNCTIONS that call the multiple-output functions
are specialized calling routines designed to offer simplified, alternate pathways to
the functionality of the underlying multiple-output functions. In the wrapper
functions, the input/output parameters are declared as local variables and generally
initialized to zero. They are passed through to the multiple-output function without
further modification. After the call, the wrapper function picks out the single
output of interest and assigns it as the return of the wrapper function.
}

{ ** Copyright (c) 2001 - 2010 TradeStation Technologies, Inc. All rights reserved. **
** TradeStation reserves the right to modify or overwrite this analysis technique
with each release. ** }

Reply With Quote
 
(login for full post details)
  #8 (permalink)
Singapore
 
Experience: Intermediate
Platform: NinjaTrader,TradeStation, OX
Broker: CQG
Trading: ES,FX,Oil,Stock,Options, GC, 6E, TF
 
Posts: 11 since Feb 2013
Thanks: 4 given, 2 received


Big Mike View Post
Not an OEC user myself, but pretty sure OEC uses EasyLanguage. I assume it can import ELD files.

Look here:
A User-Interactive Linear Regression Channel Indicator for Tradestation

Attached is the zip from that site.

Mike

I import this indicator into TS 9.5, and found that there is [No Plot].

Could someone help.

Reply With Quote


futures io Trading Community Platforms and Indicators > Linear regression channel


Last Updated on January 22, 2015


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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