3楼
//+------------------------------------------------------------------+
//| test.mq4 |
//| Copyright ?2005, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2005, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- TODO: Add your code here.
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//---- TODO: Add your code here.
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//---- TODO: Add your code here.
double // type
linfunc (double x, double a, double b) // function name and
// parameters list
{ // nested operators
return (x+b) // returned value
}
//----
return(0)
}
//+------------------------------------------------------------------+
韬客社区www.talkfx.co
5楼
韬客社区www.talkfx.co