
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
I have a simple question, this is my code:
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
Print("--init--");
Alert("init");
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
Print("--deinit--");
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
Print("--start--");
OpenBuy();
Alert("start");
//----
return(0);
}
//+------------------------------------------------------------------+
void OpenBuy(){
int Ticket=OrderSend(Symbol(),OP_BUY,1,Bid,1,0,0,"expert master",12345,0,Green);
Print("OpenBuy");
}
The result is that nothing happen on start(), no print, no alert, no OpenBuy call. Why?!