顺水外汇EA交易网MT4
标题:
麻烦高人帮忙修改一下指标
[打印本页]
作者:
老氓子
时间:
2018-1-11 13:26
标题:
麻烦高人帮忙修改一下指标
/*
Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
Website: www.ex4-mq4-decompiler.narod.ru
E-mail : andreybbrv@gmail.com
*/
#property copyright "Copyright ?2006, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
#property indicator_chart_window
#property indicator_buffers 6
#property indicator_color1 Red
#property indicator_color2 Blue
#property indicator_color3 Red
#property indicator_color4 Aqua
#property indicator_color5 Blue
#property indicator_color6 Red
extern int Z = 2;
extern int Z1 = 3;
extern int S = 0;
extern int S1 = 0;
double gd_92;
double gd_100;
double gd_108;
double gd_116 = 0.0;
double gd_124;
double gd_132 = 0.0;
double gd_140;
double gd_148;
int gi_156 = 0;
double gd_unused_168 = 0.0;
int gi_unused_176 = 0;
double g_ibuf_180[];
double g_ibuf_184[];
double g_ibuf_188[];
double g_ibuf_192[];
double g_ibuf_196[];
double g_ibuf_200[];
double g_ibuf_204[];
double g_ibuf_208[];
int init() {
IndicatorBuffers(8);
SetIndexBuffer(6, g_ibuf_188);
SetIndexBuffer(7, g_ibuf_192);
IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS));
SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 2);
SetIndexBuffer(0, g_ibuf_180);
SetIndexStyle(1, DRAW_LINE, STYLE_SOLID, 2);
SetIndexBuffer(1, g_ibuf_184);
SetIndexDrawBegin(0, Z1 + 1);
SetIndexDrawBegin(1, Z1 + 1);
SetIndexDrawBegin(2, Z1 + 1);
SetIndexDrawBegin(3, Z1 + 1);
SetIndexDrawBegin(4, Z1 + 1);
SetIndexDrawBegin(5, Z1 + 1);
SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID, 2);
SetIndexBuffer(2, g_ibuf_196);
SetIndexStyle(3, DRAW_HISTOGRAM, STYLE_SOLID, 2);
SetIndexBuffer(3, g_ibuf_200);
SetIndexStyle(4, DRAW_ARROW, STYLE_DASH, 3);
SetIndexArrow(4, 108);
SetIndexBuffer(4, g_ibuf_204);
SetIndexStyle(5, DRAW_ARROW, STYLE_DASH, 3);
SetIndexArrow(5, 108);
SetIndexBuffer(5, g_ibuf_208);
IndicatorShortName("NeuroTrend");
SetIndexLabel(0, "NTLine1");
SetIndexLabel(1, "NTLine2");
SetIndexLabel(2, "NTBar1");
SetIndexLabel(3, "NTBar2");
SetIndexLabel(4, "NTSig1");
SetIndexLabel(5, "NTSig2");
return (0);
}
int deinit() {
return (0);
}
int start() {
ObjectCreate("Original Created by SEFC", OBJ_LABEL, 0, 0, 0);
ObjectSetText("Original Created by SEFC", "www.traders-software.narod.ru", 12, "Lucida Handwriting", SpringGreen);
ObjectSet("Original Created by SEFC", OBJPROP_CORNER, 2);
ObjectSet("Original Created by SEFC", OBJPROP_XDISTANCE, 5);
ObjectSet("Original Created by SEFC", OBJPROP_YDISTANCE, 10);
int li_8;
int li_unused_0 = MarketInfo(Symbol(), MODE_DIGITS);
if (Bars 0) li_8 = Bars - l_ind_counted_4 - 1;
for (int li_12 = li_8; li_12 >= 0; li_12--) {
gd_92 = High[iHighest(NULL, 0, MODE_HIGH, Z, li_12)] + S * Point;
gd_100 = Low[iLowest(NULL, 0, MODE_LOW, Z, li_12)] - S * Point;
gd_108 = High[iHighest(NULL, 0, MODE_HIGH, Z1, li_12)] + S1 * Point;
gd_116 = Low[iLowest(NULL, 0, MODE_LOW, Z1, li_12)] - S1 * Point;
if (Close[li_12] > g_ibuf_180[li_12 + 1]) gd_124 = gd_100;
else gd_124 = gd_92;
if (Close[li_12] > g_ibuf_184[li_12 + 1]) gd_132 = gd_116;
else gd_132 = gd_108;
g_ibuf_180[li_12] = gd_124;
g_ibuf_184[li_12] = gd_132;
gd_140 = 0.0;
gd_148 = 0.0;
if (Close[li_12] gd_124 && Close[li_12] > gd_132) {
gd_140 = Low[li_12];
gd_148 = High[li_12];
}
g_ibuf_196[li_12] = gd_140;
g_ibuf_200[li_12] = gd_148;
if (Close[li_12] > gd_132 && Close[li_12] > gd_124 && gi_156 != 1) {
g_ibuf_204[li_12] = gd_132;
g_ibuf_208[li_12] = EMPTY_VALUE;
gi_156 = 1;
}
if (Close[li_12] < gd_132 && Close[li_12] < gd_124 && gi_156 != 2) {
g_ibuf_208[li_12] = gd_132;
g_ibuf_204[li_12] = EMPTY_VALUE;
gi_156 = 2;
}
}
return (0);
}
以上是源码,麻烦高人把K线上的颜色去掉,恢复成原来的K线样子,加载这个指标后K线会变色,看不到原来的颜色,如方便帮忙优化一下源码,好像有点卡
[attach]17919[/attach]
参数里的颜色改了也不行,
作者:
mahuamin
时间:
2018-1-11 13:35
去掉柱线了
作者:
老氓子
时间:
2018-1-11 13:42
非常感谢.....
作者:
wll520
时间:
2018-1-11 13:54
测试了欧元,属网格,金字塔逆势加仓,网格大小15,止盈8点,最大加到0.75手,总资金20%最大回撤止损并停止 ...
有好建议请提出来呀 多多指教
作者:
宅里香
时间:
2018-1-11 14:16
谢谢分享!
作者:
yejin98
时间:
2018-1-11 15:08
感谢分享
作者:
bluesapple
时间:
2018-1-11 15:35
学习学习谢谢
作者:
wbl_1
时间:
2018-1-11 16:43
路过!!!!!!
作者:
wbl_1
时间:
2018-1-11 18:12
楼主高人啊,我先收藏了
作者:
wbl_1
时间:
2018-1-11 19:38
看帖子的都发表一下看法
作者:
wbl_1
时间:
2018-1-11 20:57
顶起来!!不好碰到的好帖子
作者:
liuchenzhang
时间:
2018-1-11 21:31
谢谢楼主的共享
作者:
wbl_1
时间:
2018-1-11 21:54
我反复看了多遍,好帖,得支持
作者:
wbl_1
时间:
2018-1-11 22:07
谢谢您,顶
作者:
wbl_1
时间:
2018-1-11 23:18
佩服你,能发这么好的帖子,厉害
欢迎光临 顺水外汇EA交易网MT4 (http://waterforex.com/)
Powered by Discuz! X3.2