Edge Index

Custom MT4 expert advisors published here.

Moderator: admin

Edge Index

Postby Apprentice » Wed Mar 08, 2017 2:11 pm

Edge_Index.png

Requested MT4 version of the LUA original basket of 28 different pairs (combination of 8 different currencies) to determine the strenght index based on the following formula:

For each couple XXX:YYY the instruments are :

F = 8 EMA
M = 21 EMA
S = 55 EMA
R = ROC(8)
RS = ROC Signal (8 EMA)

IF F > M > S THEN XXX = +3 , YYY = -3
IF F < M > S THEN XXX = +2 , YYY = -1
IF F < M < S THEN XXX = -3 , YYY = +3
IF F > M < S THEN XXX = -1 , YYY = +2

IF R > RS > 0 LINE THEN XXX = +3 , YYY = -3
IF R < RS > 0 LINE THEN XXX = +2 , YYY = -1
IF R < RS < 0 LINE THEN XXX = -3 , YYY = +3
IF R > RS < 0 LINE THEN XXX = -1 , YYY = +2

For optimization purposes given the elevated use of simultaneous calculations, the oscillator code runs until a new bar appears and also the number of bars to be calculated is limited to the trader's preference.

The Labels on the top corner are calculated on each tick for the current bar which is the live index.

Note: ROC_with_Signal_MA.mq4 indicator should be installed in the indicators folder.
Found here: viewtopic.php?f=38&t=64509
Edge_Index.mq4
(14.07 KiB) Downloaded 754 times

Edge_Index_Sorted_Labels.mq4
(13.23 KiB) Downloaded 774 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: Bing [Bot] and 21 guests