I’d like to program an EA that open a position with lot = ((EURGBP’s bid + EURGBP’s ask)/2 x (GBPUSD’Sbid + GBPUSD’s ask)/2). How can I do it? What function I should use in the MetaEditor for return the quotation of EURGBP and GBPUSD ?
By theory : 1. To read Ask and Bid for any pair, you need that pair to be listed in Market Watch window. 2. Then you can use MarketInfo('EURUSD',MODE_ASK);
But I recommend you to have 1 open chart for each Symbol. Then you can read info for any of this Symbols.
*Spams netiks pieļauts, un tā rezultātā var slēgt kontu.
Tip: Posting an image/youtube url will automatically embed it in your post!
Tip: Type the @ sign to auto complete a username participating in this discussion.
You have an Ad Blocker!
Myfxbook is a site supported by advertisements. Here are two ways for you to continue browsing: