LI have found a code which sends http request via MQL4 Expert Adviser and modified it for my personal EA logic.
Technically, it works, but there is a huge problem, it sends requests on every tick. I need to change it to - one request per each signal.
Please help me to solve it!
Code Example:
#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 );
}