下载MetaTrader 5

有人能幫我一下嗎?偵測新K棒

要添加评论,请登录注册
Rich Lin
9
Rich Lin  
extern double Lots = 1.00;
extern int Periodma = 36 ;
extern int trailing = 100;
extern int StopLoss = 400;
extern int TrailingStop = 500;
extern int Dev = 2;
extern int Tick = 0;
double profit = 0;
extern int Periodma1 = 124 ;
int bars;

/////--------------------------------------------------------
//------------計算新K棒-------------------------------------------------
int Init()
  {
//---
   bars = Bars;
//---
   return(INIT_SUCCEEDED);
  }
void OnTick()
  {
  int    cnt,ticket,total;
   if(Bars<100)
     {
      Print("bars less than 100");
      return;
     }
要添加评论,请登录注册