请牛版帮帮忙!关于背景画线问题
牛版你好: 我有个问题,想把顾比均线指标的几根线都画在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 |
打赏
最新创建圈子
- 新闻EA运行效果图圈 2019-05-05
圈主:admin 帖子:1