| || |
Calling on price data from external pairs.
I'd like to build an EA that using closing price data from numerous pairs yet trades only one pair.
For example, I'd like to trade EURUSD but need to call on closing price data from EURGBP, EURJPY, GBPUSD, USDJPY and GBPJPY. Is this possible with MT? If so, how is it done or where do I look to learn how?
Yes. It is possible. You may use functions iClose, iOpen, iHigh, iLow, iTime and others.
This is definitely programmable but you need to explain in more detail exactly what you want to EA to do. You should check MQL4 Documentation to get detailed information on how to code for MT4.
Originally Posted by StatesEye
If you understand your strategy and have any programming experience at all, MQL is very easy to learn.
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.