NexusFi: Find Your Edge


Home Menu

 





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 SamYeotl with 1 posts (0 thanks)
    4. looks_4 MaxProfit Group with 1 posts (0 thanks)
    1. trending_up 5,738 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 1 attachments




 
Search this Thread

Linear regression channel

  #1 (permalink)
Tom Joad
Milano
 
Posts: 13 since May 2011
Thanks Given: 29
Thanks Received: 0

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 NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
How to apply profiles
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #2 (permalink)
Tom Joad
Milano
 
Posts: 13 since May 2011
Thanks Given: 29
Thanks Received: 0


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
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,464 since Jun 2009
Thanks Given: 33,242
Thanks Received: 101,662



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



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Attached Files
Elite Membership required to download: LRChan.zip
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
Tom Joad
Milano
 
Posts: 13 since May 2011
Thanks Given: 29
Thanks Received: 0


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
  #5 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,464 since Jun 2009
Thanks Given: 33,242
Thanks Received: 101,662


Tom Joad View Post
Many thanks Mike....

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

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
Tom Joad
Milano
 
Posts: 13 since May 2011
Thanks Given: 29
Thanks Received: 0


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
  #7 (permalink)
jan123321
Prague/ Czech Republic
 
Posts: 7 since Sep 2013
Thanks Given: 1
Thanks Received: 3

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
  #8 (permalink)
 SamYeotl 
Singapore
 
Experience: Intermediate
Platform: NinjaTrader,TradeStation, OX
Broker: CQG
Trading: ES,FX,Oil,Stock,Options, GC, 6E, TF
Posts: 11 since Feb 2013
Thanks Given: 4
Thanks Received: 2


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




Last Updated on January 22, 2015


© 2024 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 - Privacy Policy - Downloads - Top
no new posts