SSI Percentage Long MA Diff

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

SSI Percentage Long MA Diff

Postby Fernas » Fri May 10, 2019 2:00 pm

Hi
Could you please code the following (please note that in the code below, in SSI: the Percentage LONG data is Required NOT the absolute SSI, and the MA stands for the options in Averages indicator). You can name the indicator whatever you see it fit.
it will be highly appreciated if the output has the form similar to the photo in the attachment.
Many thanks


IF
SSI Percentage LONG > MA (SSI Percentage Long, X)
THEN
OUTPUT = -1 (Color = Red)

IF
SSI Percentage LONG < MA (SSI Percentage Long, X)
THEN
OUTPUT = 1 (Color = Green)

Else
OUTPUT = 0

Plot OUTPUT
Attachments
0000.JPG
User avatar
Fernas
 
Posts: 34
Joined: Thu Jul 20, 2017 3:06 pm


Re: SSI Percentage Long MA Diff

Postby Fernas » Sat May 11, 2019 12:10 pm

yes .. correct
I'm not sure whether the purpose of your question means that you can not code the request if it's FXCM app indicator, if it is, then thank you for pointing out that to me.
User avatar
Fernas
 
Posts: 34
Joined: Thu Jul 20, 2017 3:06 pm

Re: SSI Percentage Long MA Diff

Postby Apprentice » Mon May 13, 2019 6:20 am

Your request is added to the development list under Id Number 4657
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: SSI Percentage Long MA Diff

Postby Fernas » Fri May 17, 2019 12:18 pm

Thank you very much for your kind help. If I may, I would like to code one more indicator based on the above. Please code the following:



The Output presentation of the below indicator is EXACTLY the same as in the above indicator (i.e. -1 red bar, +1 green bar)


A = Short Term Period
B = Long Term Period

IF
SSI Percentage Long MA Diff(A) > SSI Percentage Long MA Diff(B)
Then
OUTPUT = -1 (color = RED)

IF
SSI Percentage Long MA Diff(A) < SSI Percentage Long MA Diff(B)
Then
OUTPUT = 1 (color = GREEN)

Else
OUTPUT = 0

Plot OUTPUT
User avatar
Fernas
 
Posts: 34
Joined: Thu Jul 20, 2017 3:06 pm

Re: SSI Percentage Long MA Diff

Postby Apprentice » Sun May 19, 2019 4:24 am

Your request is added to the development list under Id Number 4667
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: SSI Percentage Long MA Diff

Postby Apprentice » Tue May 21, 2019 9:12 am

SSI Percentage Long MA Diff 2.lua
(5.82 KiB) Downloaded 403 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Google [Bot] and 9 guests