Print ("22"); Alert("22"); Comment("22222");
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 basic EA, but the init and denit is not working at all.
Anyone know why? The server is not connected, but there is nowhere in mql4 document saying the init requires the connection to sever.
//+------------------------------------------------------------------+
//| aaa.mq4 |//| Copyright © 2010, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2010, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
while(!IsConnected()) Alert("ss");
Print(22);
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
Alert("removed");
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
Comment(22222);
Alert(22);
//----
return(0);
}
//+------------------------------------------------------------------+