loool
You are on the wrong forum, that's a Tradingview script.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all
I have this script for Currency Strength Indicator, but I get errors. I am a newbie and some direction would be greatly appreciated!
//@version=2
study("Currency Strength Indicator")
// 100
// RSI = 100 - --------
// 1 + RS
// RS = Average Gain / Average Loss
eurusd = security("EURUSD", period, rsi(close, 14))
eurgbp = security("EURGBP", period, rsi(close, 14))
euraud = security("EURAUD", period, rsi(close, 14))
eurjpy = security("EURJPY", period, rsi(close, 14))
eurcad = security("EURAUD", period, rsi(close, 14))
eurchf = security("EURCHF", period, rsi(close, 14))
usdeur = security("USDEUR", period, rsi(close, 14))
usdgbp = security("USDGBP", period, rsi(close, 14))
usdaud = security("USDAUD", period, rsi(close, 14))
usdjpy = security("USDJPY", period, rsi(close, 14))
usdcad = security("USDAUD", period, rsi(close, 14))
usdchf = security("USDCHF", period, rsi(close, 14))
gbpeur = security("GBPEUR", period, rsi(close, 14))
gbpusd = security("GBPUSD", period, rsi(close, 14))
gbpaud = security("GBPAUD", period, rsi(close, 14))
gbpjpy = security("GBPJPY", period, rsi(close, 14))
gbpcad = security("GBPCAD", period, rsi(close, 14))
gbpchf = security("GBPCHF", period, rsi(close, 14))
audeur = security("AUDEUR", period, rsi(close, 14))
audusd = security("AUDUSD", period, rsi(close, 14))
audgbp = security("AUDGBP", period, rsi(close, 14))
audjpy = security("AUDJPY", period, rsi(close, 14))
audcad = security("AUDCAD", period, rsi(close, 14))
audchf = security("AUDCHF", period, rsi(close, 14))
jpyeur = security("JPYEUR", period, rsi(close, 14))
jpyusd = security("JPYUSD", period, rsi(close, 14))
jpyaud = security("JPYAUD", period, rsi(close, 14))
jpygbp = security("JPYGBP", period, rsi(close, 14))
jpycad = security("JPYCAD", period, rsi(close, 14))
jpychf = security("JPYCHF", period, rsi(close, 14))
cadeur = security("CADEUR", period, rsi(close, 14))
cadusd = security("CADUSD", period, rsi(close, 14))
cadaud = security("CADAUD", period, rsi(close, 14))
cadgbp = security("CADGBP", period, rsi(close, 14))
cadjpy = security("CADJPY", period, rsi(close, 14))
cadchf = security("CADCHF", period, rsi(close, 14))
chfeur = security("CHFEUR", period, rsi(close, 14))
chfusd = security("CHFUSD", period, rsi(close, 14))
chfaud = security("CHFAUD", period, rsi(close, 14))
chfgbp = security("CHFGBP", period, rsi(close, 14))
chfjpy = security("CHFJPY", period, rsi(close, 14))
chfcad = security("CHFCAD", period, rsi(close, 14))
plot(avg(eurusd, eurgbp, euraud, eurjpy, eurcad, eurchf), "EUR", blue)
plot(avg(usdaud, usdgbp, usdeur, usdjpy, usdcad, usdchf), "USD", yellow)
plot(avg(gbpusd, gbpeur, gbpaud, gbpjpy, gbpcad, gbpchf), "GBP", teal)
plot(avg(audusd, audgbp, audeur, audjpy, audcad, audchf), "AUD", green)
plot(avg(chfusd, chfgbp, chfaud, chfjpy, chfcad, chfeur), "CHF", orange)
plot(avg(jpyusd, jpygbp, jpyaud, jpychf, jpycad, jpyeur), "JPY", white)
plot(avg(cadusd, cadgbp, cadaud, cadchf, cadjpy, cadeur), "CAD", red)
hline(70)
hline(30)