How program Lot = EURGBP x GBPUSD ?

Aug 13, 2016 at 11:05
391 개의 뷰
1 Replies
JHenrique
forex_trader_318221
Apr 07, 2016 부터 멤버   게시물32
Aug 13, 2016 at 11:05
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!!!
forex_trader_25447
Dec 21, 2010 부터 멤버   게시물131
Aug 13, 2016 at 20:23
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.
로그인 / 가입하기 to comment
You must be connected to Myfxbook in order to leave a comment
*상업적 사용 및 스팸은 허용되지 않으며 계정이 해지될 수 있습니다.
팁: 이미지/유튜브 URL을 게시하면 게시물에 자동으로 삽입됩니다!
팁: @기호를 입력하여 이 토론에 참여하는 사용자 이름을 자동으로 완성합니다.