LI は、MQL4 Expert Adviser を介して http リクエストを送信するコードを発見し、それを私の個人的な EA ロジック用に修正しました。
技術的には機能しますが、ティックごとにリクエストを送信するという大きな問題があります。シグナルごとに 1 つのリクエストに変更する必要があります。
それを解決するために私を助けてください!
コード例:
#import "shell32.dll" // -------------------------------<BegOfImport>-section
int ShellExecuteW( int hwnd,
string lpOperation,
string lpFile,
string lpParameters,
string lpDirectory,
int nShowCmd
);
#import // "shell32.dll" // -------------------------------<EndOfImport>-section
if ( A > B
&& 1 > OrdersTotal()
)
{
if ( OrderSend( Symbol(), OP_SELL, 1, Bid, 10, 0, 0, 0, 0, 0, clrGreen )
)
OrderSelect( 0, SELECT_BY_POS, NULL );
ShellExecuteW( 0, "open", linkS, "", "", 1 );
}