您需要 登录 才可以下载或查看,没有帐号?注册 
 牛版你好:
牛版你好:
 
 我有个问题,想把顾比均线指标的几根线都画在k线下,但找了很多资料,都没能解决这个问题,
 它不像有的对象,设置一个ObjectSet(name, OBJPROP_BACK, TRUE);就能搞定;
 
 顾比均线挡住了K线,实在不方便,还得劳烦牛版,能否抽空给解决一下!
 
 拜托牛版,谢谢了!
 
 源代码如下:
 //+------------------------------------------------------------------+
 //|                 Guppy Mulitple Moving Average (Long).mq4 |
 //|                        Code written by - Matt Trigwell |
 //|                                             |
 //+------------------------------------------------------------------+
 #property copyright  Code written by - Matt Trigwell 
 
 #property indicator_chart_window
 #property indicator_buffers 6
 #property indicator_color1 Blue//CLR_NONE
 #property indicator_color2 Blue//CLR_NONE
 #property indicator_color3 Blue//CLR_NONE
 #property indicator_color4 Blue
 #property indicator_color5 Blue
 #property indicator_color6 Blue
 
 //---- buffers
 double ExtMapBuffer1[];
 double ExtMapBuffer2[];
 double ExtMapBuffer3[];
 double ExtMapBuffer4[];
 double ExtMapBuffer5[];
 double ExtMapBuffer6[];
 
 //+------------------------------------------------------------------+
 //| Custom indicator initialization function                  |
 //+------------------------------------------------------------------+
 int init()
    {
 //---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexStyle(2,DRAW_LINE);
   SetIndexBuffer(2,ExtMapBuffer3);
   SetIndexStyle(3,DRAW_LINE);
   SetIndexBuffer(3,ExtMapBuffer4);
   SetIndexStyle(4,DRAW_LINE);
   SetIndexBuffer(4,ExtMapBuffer5);
   SetIndexStyle(5,DRAW_LINE);
   SetIndexBuffer(5,ExtMapBuffer6);
 
 //----
   return(0);
    }
 
 int deinit()
    {
   return(0);
    }
 
 int start()
    {
   int i,j,limit,counted_bars=IndicatorCounted();
   
   if(counted_bars0) counted_bars--;
   limit=Bars-counted_bars;
   
   for(i=0; i
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!
 客服热线:
客服热线: 手机版
 手机版 二维码
 二维码

 
  
 
        
        