8赞

3741评论

93收藏

超级准确的摸顶摸底指标一目了然

 

评论|共 3741 个

漫满长夜

发表于 2018-9-5 14:28:44 | 显示全部楼层

8888888888888888

mmdxg001

发表于 2018-9-5 15:08:12 | 显示全部楼层

{:132_167:}

古谚_ogzXs

发表于 2018-9-5 15:11:04 | 显示全部楼层

一目了然 [修改]
高级模式

aaqing

发表于 2018-9-5 17:10:42 | 显示全部楼层

llllllllllllllllllllllllllllllllllll

east4890

发表于 2018-9-5 17:33:19 | 显示全部楼层

66666666666666666

15506110051

发表于 2018-9-5 18:30:47 | 显示全部楼层

//---------------------------------------------------------------------------------------
#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Aqua
#property indicator_color2 Yellow
#property indicator_color3 Aqua
#property indicator_color4 Yellow
extern string 添加商品="EURUSD";
extern int 对准均线=5;
double MyBuffer1[];
double MyBuffer2[];
double MyBuffer3[];
double MyBuffer4[];
double multp;
string my_symbol;

int init()  {
   SetIndexBuffer(0, MyBuffer1);
   SetIndexBuffer(1, MyBuffer2);
   SetIndexBuffer(2, MyBuffer3);
   SetIndexBuffer(3, MyBuffer4);
   SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,3);
   SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,3);
   SetIndexStyle(2,DRAW_HISTOGRAM,STYLE_SOLID,0);
   SetIndexStyle(3,DRAW_HISTOGRAM,STYLE_SOLID,0);
   my_symbol=添加商品;
   int kk=PERIOD_D1/Period();
   if(kk<1) kk=1;
   multp=iMA(NULL,0,对准均线*kk,0,MODE_SMA,PRICE_CLOSE,0)/iMA(my_symbol,0,对准均线*kk,0,MODE_SMA,PRICE_CLOSE,0);
   return(0);
}

int start()  {
   int limit;
   int counted_bars=IndicatorCounted();
   if(counted_bars>0) counted_bars--;
   limit=Bars-counted_bars;
   for(int t=0; t<limit; t++)   {
      MyBuffer1[t]=iOpen(my_symbol,0,t)*multp;
      MyBuffer2[t]=iClose(my_symbol,0,t)*multp;
      if (iOpen(my_symbol,0,t)==iClose(my_symbol,0,t))
         MyBuffer2[t]=iClose(my_symbol,0,t)*multp-0.1*Point;
      if (iOpen(my_symbol,0,t)>=iClose(my_symbol,0,t))  {
         MyBuffer3[t]=iHigh(my_symbol,0,t)*multp;
         MyBuffer4[t]=iLow(my_symbol,0,t)*multp;
      }
      else  if(iOpen(my_symbol,0,t)<iClose(my_symbol,0,t))   {
         MyBuffer3[t]=iLow(my_symbol,0,t)*multp;
         MyBuffer4[t]=iHigh(my_symbol,0,t)*multp;
      }
   }
   return(0);
}
//-----------------------------------------------------------------------------------------------------

571254131

发表于 2018-9-5 19:08:30 | 显示全部楼层

11111111111111111111

青奕阳

发表于 2018-9-5 19:18:36 | 显示全部楼层

无图无真相,让人猜不透

aoxiangsoar

发表于 2018-9-5 19:45:18 | 显示全部楼层

参与/回复主题关闭
RE: 超级准确的摸顶摸底指标一目了然 [修改]

hitpink

发表于 2018-9-5 20:20:36 | 显示全部楼层

看看是什么梁梁梁梁梁梁

您需要登录后才可以回帖 登录 | 注册 微信登录

EA之家评论守则