What's new

Currency Indexes, Clusters and Strenght

5.00 star(s) 1 Vote

levonisyas

New Member
The presented indicator is displayed in form of a line with two removable and customizable moving averages. The indicator is shown in the separate chart window

extern string comment1 = "// 0 - PRICE_CLOSE, 1 - PRICE_OPEN, 2 - PRICE_HIGH, 3 - PRICE_LOW, 4 - PRICE_MEDIAN, 5 - PRICE_TYPICAL, 6 - PRICE_WEIGHTED";
extern int _PriceType = PRICE_CLOSE;
extern int MA_Period1 = 13; //period of the first moving average. Set to 0 to turn it off
extern int MA_Period2 = 17;
extern string comment2 = "// 0 - MODE_SMA, 1 - MODE_EMA, 2 - MODE_SMMA, 3 - MODE_LWMA";
extern int MA_Mode1 = MODE_SMA;
extern int MA_Mode2 = MODE_SMA;

ScreenHunter_40 Nov. 02 16.17.jpg

EURX and USDX from wiki. TRY from Central Bank of the Republic of Türkiye

Turkish Lira index (Sepet Kur)
TRYBASK= 1 x [(USDTRY x 0.50) + (EURTRY x 0.50)]

U.S. Dollar index
UDSX= 50.14348112 × [(EURUSD x -0.576) + (USDJPY x 0.136) + (GBPUSD x -0.119) + (USDCAD x 0.091) + (USDSEK x 0.042) + (USDCHF x 0.036)]

Euro index
EURX=34.38805726 x [(EURUSD x 0.3155) + (EURGBP x 0.3056) + (EURJPY x 0.1891) + (EURCHF x 0.1113) + (EURSEK x 0.0785)]
 

Attachments

  • EURX.mq4
    10.2 KB · Views: 5
  • USDX.mq4
    9.7 KB · Views: 4
  • TRYBASK.mq4
    10.1 KB · Views: 3

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)

Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock    No Thanks