coding new tsi indicator

free & uncensored discussion arena for TheRumpledOne

Moderator: moderators

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

coding new tsi indicator

Post by djevlen »

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 ?
Please help.

This is the link of the demo dowonload of the java trading platform:
http://www.ac-markets.com/trading-softw ... login.aspx

greetins
kim
User avatar
flinux
rank: 150+ posts
rank: 150+ posts
Posts: 219
Joined: Wed May 27, 2009 9:52 pm
Reputation: 2
Gender:
Contact:

Post by flinux »

So faith, hope, love remain, these three; but the greatest of these is love. - 1 Corinthians 13:13
djevlen
rank: <50 posts
rank: <50 posts
Posts: 10
Joined: Fri Sep 18, 2009 8:28 am
Reputation: 0

Post by djevlen »

i know there are several TSI for mt4.. but this is not it !!
User avatar
flinux
rank: 150+ posts
rank: 150+ posts
Posts: 219
Joined: Wed May 27, 2009 9:52 pm
Reputation: 2
Gender:
Contact:

Post by flinux »

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
rank: <50 posts
Posts: 10
Joined: Fri Sep 18, 2009 8:28 am
Reputation: 0

Post by djevlen »

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"
User avatar
flinux
rank: 150+ posts
rank: 150+ posts
Posts: 219
Joined: Wed May 27, 2009 9:52 pm
Reputation: 2
Gender:
Contact:

Post by flinux »

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
rank: <50 posts
Posts: 10
Joined: Fri Sep 18, 2009 8:28 am
Reputation: 0

graph

Post by djevlen »

User avatar
flinux
rank: 150+ posts
rank: 150+ posts
Posts: 219
Joined: Wed May 27, 2009 9:52 pm
Reputation: 2
Gender:
Contact:

Post by flinux »

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
(2.82 KiB) Downloaded 268 times
djevlen
rank: <50 posts
rank: <50 posts
Posts: 10
Joined: Fri Sep 18, 2009 8:28 am
Reputation: 0

Post by djevlen »

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
User avatar
flinux
rank: 150+ posts
rank: 150+ posts
Posts: 219
Joined: Wed May 27, 2009 9:52 pm
Reputation: 2
Gender:
Contact:

Post by flinux »

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
(2.57 KiB) Downloaded 285 times
Locked