True Strength Indicator/Easy Language programming problem - EasyLanguage Programming | futures io social day trading
futures io futures trading


True Strength Indicator/Easy Language programming problem
Updated: Views / Replies:5,422 / 18
Created: by eseeker Attachments:1

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
 1  
 
Thread Tools Search this Thread
 

True Strength Indicator/Easy Language programming problem

  #11 (permalink)
Elite Member
Warsaw, Poland
 
Futures Experience: Beginner
Platform: MultiCharts
Broker/Data: IB, IQFeed
Favorite Futures: TF
 
Posts: 5 since Aug 2011
Thanks: 13 given, 6 received

Try this:


eseeker View Post
First: Create the Function TSI:

 
Code

 // Function: TSI
  [LegacyColorValue = true];
  inputs:  	Price(NumericSeries),  	Raw(NumericSimple),  	Smooth(NumericSimple), 	U(NumericSimple);
  vars:  	NetChg(0);  	NetChg = Price - Price[1];
  Value1 = 100 * XAverage(XAverage(XAverage(NetChg,Raw),Smooth),U);
  Value2 = XAverage(XAverage(XAverage(AbsValue(NetChg),Raw),Smooth),U);
  if Value2 <> 0 then 	TSI = Value1 / Value2 else 	TSI = 0;
 

-> Save as: TSI
--> Compile Function


eseeker View Post
Then create the TSI indicator.
 
Code

 // Indicator: TSI
  [LegacyColorValue = true];
  [SameTickOpt = True];
  inputs:  	Price(Close),  	Raw(26),  	Smoothed(12), 	Signal(5), 	OB(20), 	OS(-20);
  Plot1(TSI(Price, Raw, Smoothed,1), "TSI");
  Plot2(XAverage(Plot1,signal),"XAvg ");
  Plot3(OB,"Overbought");
  Plot4(OS,"Oversold"); 

--> Compile Indicator


Last edited by kzaorski; January 5th, 2012 at 03:10 PM.
Reply With Quote
The following 2 users say Thank You to kzaorski for this post:
 
  #12 (permalink)
Trading Apprentice
Vero Beach Florida
 
Futures Experience: Advanced
Platform: Global Zen
Favorite Futures: ES
 
Posts: 8 since Dec 2011
Thanks: 1 given, 1 received

TSI Easy Language Problem/Global Zen platform

I copied that exact 2 programs as mentioned above,and this is what I got:
The formula posted like this:
1#indicator "True Strength Indes", "Samples", "TSISample"
2
3// Function: TSI
4
5
6inputs:
7 Price(NumericSeries),
8 Raw(NumericSimple),
9 Smooth(NumericSimple),
10 U(NumericSimple);
11
12vars:
13 NetChg(0);
14
15 NetChg = Price - Price[1];
16
17Value1 = 100 * XAverage(XAverage(XAverage(NetChg,Raw),Smooth),U);
18Value2 = XAverage(XAverage(XAverage(AbsValue(NetChg),Raw),Smooth),U);
19
20if Value2 <> 0 then
21 TSI = Value1 / Value2
22else
23 TSI = 0;
24
25
26// Indicator: TSI
27
28
29{[SameTickOpt = True];}
30
31inputs:
32 Price(Close),
33 Raw(26),
34 Smoothed(12),
35 Signal(5),
36 OB(20),
37 OS(-20);
38
39Plot1(TSI(Price, Raw, Smoothed,1), "TSI");
40Plot2(XAverage(Plot1,signal),"XAvg ");
41Plot3(OB,"Overbought");
42Plot4(OS,"Oversold");

Compile Errors were:
21 Unknown symbol: TSI
21 Wrong sybmbol on left side: TSI
23 Unknown symbol: TSI
23 Wrong sybmbol on left side: TSI
32 Variable 'Price" is already defined
33 Variable 'Raw" is already defined
39 Unknown symbol: TSI
22 Cannot compile: True Strength Ind

I deleted the references to color.

Reply With Quote
 
  #13 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,356 given, 83,237 received


No.

Do the function first. Stop. Save. Compile.

Then new indicator. Stop. Save. Compile.

You've put them all together, they are separate.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #14 (permalink)
Trading Apprentice
Vero Beach Florida
 
Futures Experience: Advanced
Platform: Global Zen
Favorite Futures: ES
 
Posts: 8 since Dec 2011
Thanks: 1 given, 1 received

TSI Easy Language Problem/Global Zen platform

I thank you both for your advice.
I followed your directions.

The first portion compiled fine and was saved as TSI.el

The second portion gave me eleven errors on the compile.

17 #function [SameTickOpt
18 // Indicator: TSI
19 [LegacyColorValue = true];
20 [SameTickOpt = True];
21 inputs: Price(Close), Raw(26), Smoothed(12), Signal(5), OB(20), OS(-20);
22 Plot1(TSI(Price, Raw, Smoothed,1), "TSI");
23 Plot2(XAverage(Plot1,signal),"XAvg ");
24 Plot3(OB,"Overbought");
25 Plot4(OS,"Oversold");

Errors
19 Syntax erro. "=" expected
17 Misused attribute unknown
19 Unsupported attribute
20(2) Unk attrib.; misused attri.
22-25 Plotting functions are not allowed.
18 Can't compile: TSI

Any ideas?
Thanks again.

Reply With Quote
 
  #15 (permalink)
Elite Member
West Hills, CA
 
Futures Experience: Beginner
Platform: OEC Trader, MC/DT
Broker/Data: OEC
Favorite Futures: TF
 
Posts: 12 since Oct 2009
Thanks: 7 given, 20 received

Answer
This post has been selected as an answer to the original posters question Answer

Use this format to make this indicator work on the OEC platform. The function needs to be included in the actual indicator file.

 
Code
#indicator "True Strength Indes", "Samples", "TSISample"

// Indicator: TSI


{[SameTickOpt = True];}

inputs: 
 Price(Close), 
 Raw(26), 
 Smoothed(12),
 Signal(5),
 OB(20),
 OS(-20);

Plot1(TSI(Price, Raw, Smoothed,1), "TSI");
Plot2(XAverage(Plot1,signal),"XAvg ");
Plot3(OB,"Overbought");
Plot4(OS,"Oversold");

// Function: TSI

#function TSI
inputs: 
 Price(NumericSeries), 
 Raw(NumericSimple), 
 Smooth(NumericSimple),
 U(NumericSimple);
 
vars: 
 NetChg(0);

 NetChg = Price - Price[1];

Value1 = 100 * XAverage(XAverage(XAverage(NetChg,Raw),Smooth),U);
Value2 = XAverage(XAverage(XAverage(AbsValue(NetChg),Raw),Smooth),U);

if Value2 <> 0 then
 TSI = Value1 / Value2
else
 TSI = 0;

Reply With Quote
The following user says Thank You to pbeguin for this post:
 
  #16 (permalink)
Trading Apprentice
Vero Beach Florida
 
Futures Experience: Advanced
Platform: Global Zen
Favorite Futures: ES
 
Posts: 8 since Dec 2011
Thanks: 1 given, 1 received

TSI Easy Language Problem/Global Zen platform

HOORAH

I think the last one may be working.\
Many thanks,

I'll let you know what happens.
Dick

Reply With Quote
 
  #17 (permalink)
Trading Apprentice
Palamós / Spain
 
Futures Experience: Intermediate
Platform: metatrader
Favorite Futures: eur/usd
 
Posts: 4 since Dec 2011
Thanks: 0 given, 0 received

I'm a newbie in tradestation and I don't know how to compile a function. Can you explain me?

Thanks

Reply With Quote
 
  #18 (permalink)
Fortitudo et Honor
Austin, TX
 
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: Futures
 
Posts: 882 since Mar 2011
Thanks: 128 given, 703 received


jguellbo View Post
I'm a newbie in tradestation and I don't know how to compile a function. Can you explain me?

Thanks

When you compile a function, you're simply creating a file with a series of calculations that is named as the function word/name. That way, you can simply reference that group/function in other files such as indicators and strategies, without having to include all the language.

Once you copy/paste the language into a new function you opened, you simply click on the green check icon. If it's error free, it will turn neutral color and save it and give you no errors or warnings at the bottom of the EL program.

Only then can other indicators and strategies that are written with this function in them know what you're trying to refer to in the language.

"A dumb man never learns. A smart man learns from his own failure and success. But a wise man learns from the failure and success of others."
Reply With Quote
The following user says Thank You to RM99 for this post:
 
  #19 (permalink)
Trading Apprentice
Palamós / Spain
 
Futures Experience: Intermediate
Platform: metatrader
Favorite Futures: eur/usd
 
Posts: 4 since Dec 2011
Thanks: 0 given, 0 received

Thank you RM99, that's very kind of you.

Reply With Quote

Reply



futures io > > > > > True Strength Indicator/Easy Language programming problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
True Strength Index Jeff Castille The Elite Circle 149 January 22nd, 2012 11:08 PM
MC: Simple strategy code problem / Easy Language true EasyLanguage Programming 4 December 19th, 2010 09:48 AM
First Indicator programing, Text on graph >> Easy language / Multicharts arjfca The Elite Circle 2 September 22nd, 2010 10:05 PM
extracting easy language out of an indicator fireman912 EasyLanguage Programming 7 September 2nd, 2010 03:40 PM


All times are GMT -4. The time now is 08:58 AM.

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-18 in 0.15 seconds with 38 queries on phoenix via your IP 107.20.115.174