老张 发表于 2011-9-25 09:51:44

请牛版帮帮忙!关于背景画线问题

牛版你好:

我有个问题,想把顾比均线指标的几根线都画在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

你是否在笑 发表于 2012-11-25 18:27:51

我帮你 喝喝

樱子 发表于 2012-11-25 18:27:51

你好 , 写过很多ea了, 请看我用户名, 加后可提供博客看看我的ea介绍

川跃k线 发表于 2012-11-25 18:27:51

支持~~

rainbow 发表于 2012-11-25 18:27:51

挺好啊

45646 发表于 2012-11-25 18:27:51

嘿嘿

揭发fx110 发表于 2012-11-25 18:27:51

我有个EA,收费的,看哪个能破解

nanfeng 发表于 2015-4-5 01:33:21

顶楼主~~~~~~~~~~~~~~~

iwnn0263 发表于 2015-4-16 03:38:29

nice!!!!!!!!!!!!

lovezyq 发表于 2015-4-24 02:38:47

支持楼主
页: [1] 2
查看完整版本: 请牛版帮帮忙!关于背景画线问题