Tradestation Relative Strength - EasyLanguage Programming | futures io social day trading
futures io futures trading


Tradestation Relative Strength
Updated: Views / Replies:1,320 / 4
Created: by worswick Attachments:2

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Tradestation Relative Strength

  #1 (permalink)
Trading Apprentice
United Kingdom
 
Futures Experience: Beginner
Platform: Tradestation,Amibroker
Favorite Futures: stocks
 
Posts: 4 since Jun 2014
Thanks: 1 given, 0 received

Tradestation Relative Strength

Relative Strength

Hi,

I an new to TradeStation Easylanguage code.
Could you please correct the code below?
I do not know how to use the Array function in formulas
Or should this me a Function

I have attached MS Word copy of this note in case it gets corrupted in the internet
Also a screenshot to show what the Indicator should look like

Hoping you can oblige.
Thank you in advance

Derek

----------------------------*Code*-----------------------------------

Input: Period(20);

Vars:

f88(0), f90(0), f0(0),v4(0),v8 (0), vC(0), v10(0), v14(0), v18(0), v20(0),
f8(0), f10(0), f18 (0), f20(0), f28(0), f30(0), f38(0), f48(0), v1C(0),
f50(0), f58(0), f60(0), f68(0), f70(0), f78(0), f80(0), f40(0);
f90 = 1.0;
f0 = 0.0;

{

if ( Period-1 >= 5 )
f88 = Period-1.0;
else f88 = 5.0;
f8 = 100.0 * ((H[0]+L[0]+Close[0])/3);
f18 = 3.0 / (Period + 2.0);
f20 = 1.0 - f18;

//for ( i = 1; i < BarCount; i++ )
for i = 1 to 21
begin

{
if (f88 <= f90) f90 = f88 + 1; else f90 = f90 + 1;
f10 = f8;
f8 = 100*Close[i];
f8 = 100.0*((H[i]+L[i]+C[i])/3);
v8 = f8 - f10;
f28 = f20 * f28 + f18 * v8;
f30 = f18 * f28 + f20 * f30;
vC = f28 * 1.5 - f30 * 0.5;
f38 = f20 * f38 + f18 * vC;
f40 = f18 * f38 + f20 * f40;
v10 = f38 * 1.5 - f40 * 0.5;
f48 = f20 * f48 + f18 * v10;
f50 = f18 * f48 + f20 * f50;
v14 = f48 * 1.5 - f50 * 0.5;
f58 = f20 * f58 + f18 * abs (v8);
f60 = f18 * f58 + f20 * f60;
v18 = f58 * 1.5 - f60 * 0.5;
f68 = f20 * f68 + f18 * v18;

f70 = f18 * f68 + f20 * f70;
v1C = f68 * 1.5 - f70 * 0.5;
f78 = f20 * f78 + f18 * v1C;
f80 = f18 * f78 + f20 * f80;
v20 = f78 * 1.5 - f80 * 0.5;

if ((f88 >= f90) && (f8 != f10)) f0 = 1.0;
if ((f88 == f90) && (f0 == 0.0)) f90 = 0.0;
if ((f88 < f90) && (v20 > 0.0000000001))

v4 = (v14 / v20 + 1.0) * 50.0;
if (v4 > 100.0) v4 = 100.0;
if (v4 < 0.0) v4 = 0.0;
}
else
{
v4 = 50.0;
}

rsx[i] = v4;
}

// return rsx;
//}

// Plot1( rsx, "rsx", RED, default, 2 ) ;

--------------------------------------------------- */Code*-----------------------------------------------------------------------

Attached Thumbnails
Tradestation Relative Strength-rs.jpg  
Attached Files
Register to download File Type: doc Relative Strength.doc (372.0 KB, 14 views)
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,527 since Apr 2013
Thanks: 229 given, 854 received
Forum Reputation: Legendary


Derek,

what is the origin of the code? Did you try to translate it from a different language?

Regards,
ABCTG

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
United Kingdom
 
Futures Experience: Beginner
Platform: Tradestation,Amibroker
Favorite Futures: stocks
 
Posts: 4 since Jun 2014
Thanks: 1 given, 0 received

Original Code

Hello,


Thank you for your reply to my question.

The code was originally posted as Amibroker Code on the wisestocktrader...

There is a paste and copy friendly tab on the wisestocktrader web site

( I do not know how to add the Blue tag "Code " in to put the code into a panel. _


Thank you for your help,

Best regards,

Derek


 
Code
 

-----------------      Original Amibroker Code ------------------------------------------------------------

/*

Turbo_JRSX : a better RSI ?


*/

SetChartOptions (0, 0, chartGrid20 | chartGrid50 | chartGrid80);

Len = Param ( "Periods", 12, 1, 200, 1 );


function JRSX ( Period )
{

	f88 = 0; f90 = 0; f0 = 0; v4 = 0; 	v8 = 0; vC = 0; v10 = 0; v14 = 0; v18 = 0; v20 = 0;
	f8 = 0; f10 = 0; f18 = 0; f20 = 0; f28 = 0; f30 = 0; f38 = 0; f48 = 0; v1C = 0;
	f50 = 0; f58 = 0; f60 = 0; f68 = 0; f70 = 0; f78 = 0; f80 = 0; f40 = 0;

	f90 = 1.0;
	f0  = 0.0;

	if ( Period-1 >= 5 )
		f88 = Period-1.0;
	else
		f88 = 5.0;

	f8 = 100.0 * ((H[0]+L[0]+Close[0])/3);
	f18 = 3.0 / (Period + 2.0);
	f20 = 1.0 - f18;

   for ( i = 1; i < BarCount; i++ )
	{
		if (f88 <= f90) f90 = f88 + 1; else f90 = f90 + 1;
		f10 = f8;
 //    f8 = 100*Close[i];
		f8 = 100.0*((H[i]+L[i]+C[i])/3);
		v8 = f8 - f10;
		f28 = f20 * f28 + f18 * v8;
		f30 = f18 * f28 + f20 * f30;
		vC = f28 * 1.5 - f30 * 0.5;
		f38 = f20 * f38 + f18 * vC;
		f40 = f18 * f38 + f20 * f40;
		v10 = f38 * 1.5 - f40 * 0.5;
		f48 = f20 * f48 + f18 * v10;
		f50 = f18 * f48 + f20 * f50;
		v14 = f48 * 1.5 - f50 * 0.5;
		f58 = f20 * f58 + f18 * abs (v8);
		f60 = f18 * f58 + f20 * f60;
		v18 = f58 * 1.5 - f60 * 0.5;
		f68 = f20 * f68 + f18 * v18;

		f70 = f18 * f68 + f20 * f70;
		v1C = f68 * 1.5 - f70 * 0.5;
		f78 = f20 * f78 + f18 * v1C;
		f80 = f18 * f78 + f20 * f80;
		v20 = f78 * 1.5 - f80 * 0.5;

		if ((f88 >= f90) && (f8 != f10)) f0 = 1.0;
		if ((f88 == f90) && (f0 == 0.0)) f90 = 0.0;
		if ((f88 < f90) && (v20 > 0.0000000001))
		{
			v4 = (v14 / v20 + 1.0) * 50.0;
			if (v4 > 100.0) v4 = 100.0;
			if (v4 < 0.0) v4 = 0.0;
		}
		else
		{
			v4 = 50.0;
		}

		rsx[i] = v4;
	}

	return rsx;
}


Plot ( JRSX(Len), "Turbo JRSX", ParamColor ( "Color", colorCycle ), ParamStyle ("Style"), 0, 100 );


------------------------     End of Code     ------------------------------------------------------------


Last edited by worswick; July 1st, 2014 at 02:55 AM. Reason: [CODE] [/CODE] added
Reply With Quote
 
  #5 (permalink)
Trading Apprentice
United Kingdom
 
Futures Experience: Beginner
Platform: Tradestation,Amibroker
Favorite Futures: stocks
 
Posts: 4 since Jun 2014
Thanks: 1 given, 0 received

No Http Link

Hello,

I was not allowed to post the HTTP link as I had insufficient previous posts ( less than 5 posts)

Best regards

Derek

Reply With Quote

Reply



futures io > > > > > Tradestation Relative Strength

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting futures contracts by relative strength stefan416 NinjaTrader 2 November 11th, 2013 10:14 AM
Comparative Relative Strength wtrader MultiCharts 0 March 12th, 2013 03:21 PM
Relative Strength in Ninja Trader oyz79 NinjaTrader 1 October 30th, 2012 01:04 AM
Searching for Mansfield Relative Strength Index Ralph07 NinjaTrader Programming 2 July 20th, 2012 10:31 AM


All times are GMT -4. The time now is 11:51 PM.

Copyright © 2017 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
Page generated 2017-12-12 in 0.08 seconds with 20 queries on phoenix via your IP 54.234.255.29