Hi guys!
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 ?
Thanks!!!
- Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6.
- HOW CAN I GET ANOTHER PAIRS ASK AND BID PRICE ?
- Backtest - Calculate GBPUSD rate on an EURGBP chart when I use USD account.
JHenry:
Use MarketInfo("EURGBP",MODE_BID) and MarketInfo("EURGBP",MODE_ASK) for EURGBP. The same for any other symbol
Hi guys!
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 ?
Thanks!!!
mladen:
Use MarketInfo("EURGBP",MODE_BID) and MarketInfo("EURGBP",MODE_ASK) for EURGBP. The same for any other symbol
You are the man!!!Use MarketInfo("EURGBP",MODE_BID) and MarketInfo("EURGBP",MODE_ASK) for EURGBP. The same for any other symbol
THanks a lot!!!! xD

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