Find Jobs
Hire Freelancers

Call API asynchronously from Expert Advisor

$10-30 AUD

キャンセル
投稿日: 8年近く前

$10-30 AUD

完了時にお支払い
Hi, I have an Expert Advisor that calls an API, which executes trades on a Binary Options broker. My problem is that now I need the EA to call the API multiple times simultaneously (to place trades on friends accounts). The Call takes about half second to execute, so if I put them under under each other the bottom ones get delayed. So what I need is to execute all API calls asynchronously. Please see example below, I need Call1, Call2 and Call3 all executed at the same time, or at least as close as possible. Can someone please point me to the right direction and give me a code example and/or step-by-step instructions of how to achieve this? This is rather urgent. ------------------------------------------------------------- #property strict #include <[login to view URL]> void OnStart() { string response = CallBinary(1); //Call 1 InitBinary("testapi1", USD, "frxEURCHF", 5, m); response = CallBinary(1); //Call 2 InitBinary("testapi2", USD, "frxEURCHF", 5, m); response = CallBinary(1); //Call 3 InitBinary("testapi3", USD, "frxEURCHF", 5, m); response = CallBinary(1); Sleep(5000); }
プロジェクト ID: 10951267

プロジェクトについて

1個の提案
リモートプロジェクト
アクティブ 8年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に1人のフリーランサーが、平均$100 AUDで入札しています
ユーザーアバター
You need multithread. It is may be possible if you will have 1 main expert and many slave experts. Main expert will set global variable, slave experts will send command to accounts, using signals from global variables. If it will not work, becouse I not sure MT4 make separate thread for each expert. you can use many MT4 terminals, each one for 1 BO account. Also you can use external application written on C++ for example. In this application you can create many threads. 1 thread for 1 account. This application can get signal from MT4 and transfer to BO accounts. It is possible if you have DLL for work with BO accounts. C++ application can use functions from DLL.
$100 AUD 3日以内
5.0 (14 レビュー)
4.0
4.0

クライアントについて

AUSTRALIAのフラグ
Southport, Australia
5.0
26
お支払い方法確認済み
メンバー登録日:5月 10, 2008

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。