Trade FOREX with FXCM

  • Award-Winning Platform
  • 24/7 Customer Support
  • Trade Directly on Charts
  • Free $50K Practice Account
Register


Results 1 to 3 of 3

Thread: Calling on price data from external pairs.

  1. #1
    StatesEye is offline Registered User
    Join Date
    Dec 2011
    Posts
    1

    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?

    Thanks

  2. #2
    A.Gettinger is offline Member
    Join Date
    May 2012
    Posts
    39
    Yes. It is possible. You may use functions iClose, iOpen, iHigh, iLow, iTime and others.

  3. #3
    mt4robot's Avatar
    mt4robot is offline Registered User
    Join Date
    May 2012
    Posts
    1
    Quote Originally Posted by StatesEye View Post
    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?

    Thanks
    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.

    If you understand your strategy and have any programming experience at all, MQL is very easy to learn.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
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.