Does comparing multi-currency indicators work in a MT4 EA?

johnnybegoode

Trader
Jul 19, 2016
56
0
22
47
Does comparing multi-currency indicators work in a MT4 EA?

If I attach the EA onto EURUSD chart, would RSI_GBP return a value?

Should I attach the same EA to both EURUSD and GBPUSD

i.e. of the multi-currency EA that trade EURUSD and GBPUSD

MQL4:
double RSI_EUR = iCustom(Symbol_1, TimeFrame, "RSI", 0, 0);
double RSI_GBP = iCustom(Symbol_2, TimeFrame, "RSI", 0, 0);
if (
            (RSI_EUR < 70)
         && (RSI_GBP > 30)
)
{
          Buy
......
 

hayseed

Master Trader
Jul 27, 2010
1,014
259
149
usa
hey johnny..... yes it will..... it only needs to be attached to 1 chart but if your only trading the eurusd, it's best to apply it to that chart......

in reality, the ea could be attached to any forex symbol, like audcad, but care must be taken in the OrderSend line..... that being you must specify the traded symbol along with using MarketInfo to obtain the correct ask, bid, point, spread and such in the ordersend line.....h