## coding new tsi indicator

free & uncensored discussion arena for TheRumpledOne

Moderator: moderators

djevlen
rank: <50 posts
Posts: 10
Joined: Fri Sep 18, 2009 8:28 am
Reputation: 0
Gender:

### coding new tsi indicator

hello.
There is a TSI indicator in the java based trading platform of the AMC currency markets.
I tried to find a similiar TSI indicator for mt4 but its not possible.
Could some one here make this indicator work in mt4 ? the code is ready, it just has to be converted into mt4 indicator format ?

greetins
kim

flinux
rank: 150+ posts
Posts: 219
Joined: Wed May 27, 2009 9:52 pm
Reputation: 2
Gender:
Contact:
So faith, hope, love remain, these three; but the greatest of these is love. - 1 Corinthians 13:13

djevlen
rank: <50 posts
Posts: 10
Joined: Fri Sep 18, 2009 8:28 am
Reputation: 0
Gender:
i know there are several TSI for mt4.. but this is not it !!

flinux
rank: 150+ posts
Posts: 219
Joined: Wed May 27, 2009 9:52 pm
Reputation: 2
Gender:
Contact:
Then post the AMC TSI code so we have not to download it and we can convert it in mt4 language.
So faith, hope, love remain, these three; but the greatest of these is love. - 1 Corinthians 13:13

djevlen
rank: <50 posts
Posts: 10
Joined: Fri Sep 18, 2009 8:28 am
Reputation: 0
Gender:
OK...
this is how it looks like :

http://farm4.static.flickr.com/3430/393 ... b080_o.jpg

and

http://farm3.static.flickr.com/2468/393 ... ec24_o.jpg

and this is the code :

pr = close

PrMomentum = ExponentialAverage[R](Pr - Pr[1])

Num = 100 * ExponentialAverage[Sm](PrMomentum)
Den = ExponentialAverage[Sm](Abs(PrMomentum))

IF Den<>0 THEN
TSI = Num / Den
ELSE
TSI = 0
ENDIF

Sig = ExponentialAverage[Sigp](TSI)
Hist = TSI - Sig

RETURN TSI AS "TSI", Sig AS "Signal", Hist AS "Histogram",0 AS "Horizontal Line"

flinux
rank: 150+ posts
Posts: 219
Joined: Wed May 27, 2009 9:52 pm
Reputation: 2
Gender:
Contact:
Can you also post a screenshot of TSI graph ?
So faith, hope, love remain, these three; but the greatest of these is love. - 1 Corinthians 13:13

djevlen
rank: <50 posts
Posts: 10
Joined: Fri Sep 18, 2009 8:28 am
Reputation: 0
Gender:

### graph

flinux
rank: 150+ posts
Posts: 219
Joined: Wed May 27, 2009 9:52 pm
Reputation: 2
Gender:
Contact:
Ok, I think that the TSI version on AMC is an oscillator.
So I've found on internet TSI-Osc and I've added it the histogram.

Let me know if in this way, is fine.
Attachments
TSI-Osc.mq4

djevlen
rank: <50 posts
Posts: 10
Joined: Fri Sep 18, 2009 8:28 am
Reputation: 0
Gender:
You must use the same mathematical function as ACM for the lines.

I have seen before the TSI u have used ...and its just not it

flinux
rank: 150+ posts
Posts: 219
Joined: Wed May 27, 2009 9:52 pm
Reputation: 2
Gender:
Contact:
I get it.
Done.
This version is WITHOUT the histogram, because i have to rewrite the indicator to use less than 9 buffers (8 is the mt4 limit).

Hope this time, i'm right
Attachments
FLI_TSI.mq4