Professional Documents
Culture Documents
//Global Deklarasi
double _mySlowMA;
double _myFastMA;
double _myRSI;
double _myCCI;
double _myStc;
//+------------------------------------------------------------------+
//|------------------------------------------------------------------|
//+------------------------------------------------------------------+
if ( _myFastMA > _mySlowMA && _myRSI < _OverSoldRSI && _myCCI < _OverSoldCCI &&
_myStc < _OverSoldSTC ) _Buy = Buy
(_Magic,_Lot,0,_StopLoss,0,_TakeProfit,_Slipage,1,0,"") ;
return(0);
}
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//---
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
//---
}
//+------------------------------------------------------------------+
//| Tester function |
//+------------------------------------------------------------------+
double OnTester()
{
//---
double ret=0.0;
//---
//---
return(ret);
}
//+------------------------------------------------------------------+
//| ChartEvent function |
//+------------------------------------------------------------------+
void OnChartEvent(const int id,
const long &lparam,
const double &dparam,
const string &sparam)
{
//---
}
//+------------------------------------------------------------------+