顺水外汇EA交易网MT4
标题:
牛版,请帮修改一下指标,如图
[打印本页]
作者:
Tomi.wang
时间:
2018-1-11 13:33
标题:
牛版,请帮修改一下指标,如图
请牛版修改一下这个指标 把图片上面画红方框的地方删除掉,谢谢
作者:
此用户不存在
时间:
2018-1-11 14:09
什么东东
作者:
steven319
时间:
2018-1-11 14:51
这是供应需求指标,有未来,我有个类似的,没有这上面的广告,平时不用,偶尔看下。
[attach]18947[/attach]
作者:
admin
时间:
2018-1-11 15:52
有源码的话 在源码里找到这句 在语句最前加入屏蔽符号// 就行了
作者:
Tomi.wang
时间:
2018-1-11 16:41
非常感谢 我们两的指标可能不是同一个
作者:
Tomi.wang
时间:
2018-1-11 17:49
我把源码放上来 能帮忙修改一下嘛 我实在是不会弄
/*
Generated by ex4-to-mq4 decompiler (forex-warez.com) 4.0.509.5
Website: wWW .F Or EX - wAR eZ .Com
E-mail : aN dR EYbBr V@ Gm A il .Co m
*/
#property copyright "Wayne da"
#property link "http://3016.taobao.com"
#property indicator_chart_window
extern bool onscreen = TRUE;
extern color lineletters = LimeGreen;
extern int alertopenorclose = 1;
extern int fontsize = 9;
double Gd_92;
double Gd_100;
double Gd_108;
double Gd_116;
double Gd_124;
// 52D46093050F38C27267BCE42543EF60
int deinit() {
f0_1();
return (0);
}
// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
SetIndexStyle(0, DRAW_LINE);
SetIndexStyle(1, DRAW_LINE);
SetIndexStyle(2, DRAW_LINE);
SetIndexStyle(3, DRAW_LINE);
SetIndexStyle(4, DRAW_LINE);
IndicatorShortName("http://3016.taobao.com");
SetIndexDrawBegin(0, 1);
IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS));
f0_3();
return (0);
}
// EA2B2676C28C0DB26D39331A336C6B92
int start() {
color color_0;
color color_4;
if (Year() > 3027) {
Alert("产品到期");
return;
}
if (Year() == 3027 && Month() >= 11) {
Alert("产品到期");
f0_1();
return;
}
Gd_92 = (iHigh(NULL, PERIOD_D1, 1) + iLow(NULL, PERIOD_D1, 1) + iClose(NULL, PERIOD_D1, 1)) / 3.0;
Gd_108 = Gd_92 + 20.0 * Point;
Gd_124 = Gd_92 + 4.0 * f0_2() / 3.0 - 10.0 * Point;
Gd_100 = Gd_92 - 20.0 * Point;
Gd_116 = Gd_92 - 4.0 * f0_2() / 3.0 + 10.0 * Point;
for (int index_8 = 0; index_8 istochastic_72 && istochastic_80 >= istochastic_88 && istochastic_96 > istochastic_104) {
text_12 = "短线强势做多";
color_0 = Blue;
Li_28 = 1;
}
if (istochastic_64 > istochastic_72 && istochastic_80 >= istochastic_88 && istochastic_96 == istochastic_104) {
text_12 = "短线强势做多";
color_0 = Blue;
Li_28 = 1;
}
if (istochastic_64 > istochastic_72 && istochastic_80 >= istochastic_88 && istochastic_96 istochastic_104) {
text_12 = "短线弱势做空";
color_0 = Sienna;
}
if (istochastic_64 > istochastic_72 && istochastic_80 istochastic_88) {
text_12 = "短线观望为主";
color_0 = White;
}
if (istochastic_64 > istochastic_72) Ls_unused_32 = "上升";
else Ls_unused_32 = "下降";
if (istochastic_80 > istochastic_88) Ls_unused_40 = "上升";
else Ls_unused_40 = "下降";
if (istochastic_96 > istochastic_104) Ls_unused_48 = "上升";
else Ls_unused_48 = "下降";
if (istochastic_112 > istochastic_120 && istochastic_64 >= istochastic_72 && istochastic_128 > istochastic_136) {
text_56 = "中线强势做多";
color_4 = Blue;
}
if (istochastic_112 > istochastic_120 && istochastic_64 >= istochastic_72 && istochastic_128 == istochastic_136) {
text_56 = "中线强势做多";
color_4 = Blue;
}
if (istochastic_112 > istochastic_120 && istochastic_64 >= istochastic_72 && istochastic_128 istochastic_136) {
text_56 = "中线弱势做空";
color_4 = Sienna;
}
if (istochastic_112 > istochastic_120 && istochastic_64 istochastic_72) {
text_56 = "中线观望为主";
color_4 = White;
}
ObjectCreate("Signal1", OBJ_LABEL, 0, 0, 0);
ObjectSetText("Signal1", text_12, 12, "Arial Bold", color_0);
ObjectSet("Signal1", OBJPROP_CORNER, 0);
ObjectSet("Signal1", OBJPROP_XDISTANCE, 80);
ObjectSet("Signal1", OBJPROP_YDISTANCE, 35);
ObjectCreate("qushi", OBJ_LABEL, 0, 0, 0);
ObjectSetText("qushi", "当前趋势:", 12, "Arial Bold", lineletters);
ObjectSet("qushi", OBJPROP_CORNER, 0);
ObjectSet("qushi", OBJPROP_XDISTANCE, 5);
ObjectSet("qushi", OBJPROP_YDISTANCE, 35);
ObjectCreate("Signal5", OBJ_LABEL, 0, 0, 0);
ObjectSetText("Signal5", text_56, 12, "Arial Bold", color_4);
ObjectSet("Signal5", OBJPROP_CORNER, 0);
ObjectSet("Signal5", OBJPROP_XDISTANCE, 200);
ObjectSet("Signal5", OBJPROP_YDISTANCE, 35);
if (alertopenorclose == 1) {
Ls_20 = "开";
if (Ask > Gd_108 && Ask Gd_100 - 10.0 * Point && Li_28 == 2) {
Alert("Sell" + Symbol() + "@" + DoubleToStr(Gd_100, Digits) + "-" + DoubleToStr(Gd_100 - 10.0 * Point, Digits) + "," + "TP@" + DoubleToStr(Gd_116, Digits) + ",SL@" +
DoubleToStr(Gd_92 + 6.0 * Point, Digits));
}
}
if (onscreen == TRUE) {
Comment("\n " + "http://3016.taobao.com "
+ "\n "
+ "\n -------------------------------------------------------------------"
+ "\n 今天是 : " + Year() + "年" + Month() + "月" + Day() + "日"
+ "\n 到期时间: " + Year() + "年" + "11月" + "1日"
+ "\n 日均波幅: " + DoubleToStr(4.0 * f0_2() / 3.0, Digits)
+ "\n 今日波幅: " + DoubleToStr(iHigh(NULL, PERIOD_D1, 0) - iLow(NULL, PERIOD_D1, 0), Digits)
+ "\n 警报:" + " " + Ls_20
+ "\n -------------------------------------------------------------------"
+ "\n ----------------------买入区域---------------------------------"
+ "\n -------------------------------------------------------------------"
+ "\n 买入 " + Symbol() + " @ " + DoubleToStr(Gd_108, Digits)
+ "\n 止损价格 @ " + DoubleToStr(Gd_92 - 6.0 * Point, Digits)
+ "\n 止赢价格 @ " + DoubleToStr(Gd_124, Digits)
+ "\n "
+ "\n -------------------------------------------------------------------"
+ "\n ----------------------卖出区域---------------------------------"
+ "\n -------------------------------------------------------------------"
+ "\n 卖出 " + Symbol() + " @ " + DoubleToStr(Gd_100, Digits)
+ "\n 止损价格 @ " + DoubleToStr(Gd_92 + 6.0 * Point, Digits)
+ "\n 止赢价格 @ " + DoubleToStr(Gd_116, Digits)
+ "\n "
+ "\n -------------------------------------------------------------------"
+ "\n ----------------------开发团队---------------------------------"
+ "\n -------------------------------------------------------------------"
+ "\n 开发者: 外汇参谋长 "
+ "\n QQ: 83218858 "
+ "\n 官方网址: http://3016.taobao.com "
+ "\n (请小心使用) "
+ "\n -------------------------------------------------------------------");
}
return (0);
}
// B5951E63289A09C605832E2C235B3510
double f0_2() {
double ihigh_0 = iHigh(NULL, PERIOD_D1, 1);
double ilow_8 = iLow(NULL, PERIOD_D1, 1);
double ihigh_16 = iHigh(NULL, PERIOD_D1, 2);
double ilow_24 = iLow(NULL, PERIOD_D1, 2);
double ihigh_32 = iHigh(NULL, PERIOD_D1, 3);
double ilow_40 = iLow(NULL, PERIOD_D1, 3);
double ihigh_48 = iHigh(NULL, PERIOD_D1, 4);
double ilow_56 = iLow(NULL, PERIOD_D1, 4);
double ihigh_64 = iHigh(NULL, PERIOD_D1, 5);
double ilow_72 = iLow(NULL, PERIOD_D1, 5);
double ihigh_80 = iHigh(NULL, PERIOD_D1, 6);
double ilow_88 = iLow(NULL, PERIOD_D1, 6);
double ihigh_96 = iHigh(NULL, PERIOD_D1, 7);
double ilow_104 = iLow(NULL, PERIOD_D1, 7);
double ihigh_112 = iHigh(NULL, PERIOD_D1, 8);
double ilow_120 = iLow(NULL, PERIOD_D1, 8);
double ihigh_128 = iHigh(NULL, PERIOD_D1, 9);
double ilow_136 = iLow(NULL, PERIOD_D1, 9);
double ihigh_144 = iHigh(NULL, PERIOD_D1, 10);
double ilow_152 = iLow(NULL, PERIOD_D1, 10);
double ihigh_160 = iHigh(NULL, PERIOD_D1, 11);
double ilow_168 = iLow(NULL, PERIOD_D1, 11);
double ihigh_176 = iHigh(NULL, PERIOD_D1, 12);
double ilow_184 = iLow(NULL, PERIOD_D1, 12);
double ihigh_192 = iHigh(NULL, PERIOD_D1, 13);
double ilow_200 = iLow(NULL, PERIOD_D1, 13);
double ihigh_208 = iHigh(NULL, PERIOD_D1, 14);
double ilow_216 = iLow(NULL, PERIOD_D1, 14);
double ihigh_224 = iHigh(NULL, PERIOD_D1, 15);
double ilow_232 = iLow(NULL, PERIOD_D1, 15);
double ihigh_240 = iHigh(NULL, PERIOD_D1, 16);
double ilow_248 = iLow(NULL, PERIOD_D1, 16);
double ihigh_256 = iHigh(NULL, PERIOD_D1, 17);
double ilow_264 = iLow(NULL, PERIOD_D1, 17);
double ihigh_272 = iHigh(NULL, PERIOD_D1, 18);
double ilow_280 = iLow(NULL, PERIOD_D1, 18);
double ihigh_288 = iHigh(NULL, PERIOD_D1, 19);
double ilow_296 = iLow(NULL, PERIOD_D1, 19);
double ihigh_304 = iHigh(NULL, PERIOD_D1, 20);
double ilow_312 = iLow(NULL, PERIOD_D1, 20);
double Ld_320 = ihigh_0 - ilow_8;
double Ld_328 = 0.2 * (ihigh_0 - ilow_8 + (ihigh_16 - ilow_24) + (ihigh_32 - ilow_40) + (ihigh_48 - ilow_56) + (ihigh_64 - ilow_72));
double Ld_336 = (ihigh_0 - ilow_8 + (ihigh_16 - ilow_24) + (ihigh_32 - ilow_40) + (ihigh_48 - ilow_56) + (ihigh_64 - ilow_72) + (ihigh_80 - ilow_88) + (ihigh_96 - ilow_104) +
(ihigh_112 - ilow_120) + (ihigh_128 - ilow_136) + (ihigh_144 - ilow_152)) / 10.0;
double Ld_344 = 0.05 * (ihigh_0 - ilow_8 + (ihigh_16 - ilow_24) + (ihigh_32 - ilow_40) + (ihigh_48 - ilow_56) + (ihigh_64 - ilow_72) + (ihigh_80 - ilow_88) + (ihigh_96 - ilow_104) +
(ihigh_112 - ilow_120) + (ihigh_128 - ilow_136) + (ihigh_144 - ilow_152) + (ihigh_160 - ilow_168) + (ihigh_176 - ilow_184) + (ihigh_192 - ilow_200) + (ihigh_208 - ilow_216) + (ihigh_224 - ilow_232) + (ihigh_240 - ilow_248) + (ihigh_256 - ilow_264) + (ihigh_272 - ilow_280) + (ihigh_288 - ilow_296) + (ihigh_304 - ilow_312));
double Ld_352 = (Ld_320 + Ld_328 + Ld_336 + Ld_344) / 4.0;
return (3.0 * (Ld_352 / 4.0));
}
// 07B832B085C8BE8D5A781F658B5FC5FD
void f0_0(int Ai_0, double Ad_4, double Ad_12, double Ad_20, double Ad_28, double Ad_36) {
ObjectSet("p_Line", OBJPROP_PRICE1, Ad_4);
ObjectSet("p_Line", OBJPROP_PRICE2, Ad_4);
ObjectSet("p_Line", OBJPROP_TIME1, Time[Ai_0]);
ObjectSet("p_Line", OBJPROP_TIME2, Time[0]);
ObjectCreate("Pivot", OBJ_TEXT, 0, 0, 0);
ObjectSetText("Pivot", "观望区间", fontsize, "Arial", lineletters);
ObjectSet("Pivot", OBJPROP_TIME1, Time[Ai_0]);
ObjectSet("Pivot", OBJPROP_PRICE1, Ad_4);
ObjectSet("B1_Line", OBJPROP_PRICE1, Ad_12);
ObjectSet("B1_Line", OBJPROP_PRICE2, Ad_12);
ObjectSet("B1_Line", OBJPROP_TIME1, Time[Ai_0]);
ObjectSet("B1_Line", OBJPROP_TIME2, Time[0]);
ObjectCreate("Beli1", OBJ_TEXT, 0, 0, 0);
ObjectSetText("Beli1", "买入价格", fontsize, "Arial", lineletters);
ObjectSet("Beli1", OBJPROP_TIME1, Time[Ai_0]);
ObjectSet("Beli1", OBJPROP_PRICE1, Ad_12);
ObjectSet("B2_Line", OBJPROP_PRICE1, Ad_20);
ObjectSet("B2_Line", OBJPROP_PRICE2, Ad_20);
ObjectSet("B2_Line", OBJPROP_TIME1, Time[Ai_0]);
ObjectSet("B2_Line", OBJPROP_TIME2, Time[0]);
ObjectCreate("Beli2", OBJ_TEXT, 0, 0, 0);
ObjectSetText("Beli2", " 买入目标", fontsize, "Arial", lineletters);
ObjectSet("Beli2", OBJPROP_TIME1, Time[Ai_0]);
ObjectSet("Beli2", OBJPROP_PRICE1, Ad_20);
ObjectSet("S1_Line", OBJPROP_PRICE1, Ad_28);
ObjectSet("S1_Line", OBJPROP_PRICE2, Ad_28);
ObjectSet("S1_Line", OBJPROP_TIME1, Time[Ai_0]);
ObjectSet("S1_Line", OBJPROP_TIME2, Time[0]);
ObjectCreate("Jual1", OBJ_TEXT, 0, 0, 0);
ObjectSetText("Jual1", "卖出价格", fontsize, "Arial", lineletters);
ObjectSet("Jual1", OBJPROP_TIME1, Time[Ai_0]);
ObjectSet("Jual1", OBJPROP_PRICE1, Ad_28);
ObjectSet("S2_Line", OBJPROP_PRICE1, Ad_36);
ObjectSet("S2_Line", OBJPROP_PRICE2, Ad_36);
ObjectSet("S2_Line", OBJPROP_TIME1, Time[Ai_0]);
ObjectSet("S2_Line", OBJPROP_TIME2, Time[0]);
ObjectCreate("Jual2", OBJ_TEXT, 0, 0, 0);
ObjectSetText("Jual2", " 卖出目标 ", fontsize, "Arial", lineletters);
ObjectSet("Jual2", OBJPROP_TIME1, Time[Ai_0]);
ObjectSet("Jual2", OBJPROP_PRICE1, Ad_36);
}
// D1C4DE9551306000435023FAEBD0B9CD
void f0_3() {
ObjectCreate("p_Line", OBJ_TREND, 0, 0, 0);
ObjectSet("p_Line", OBJPROP_COLOR, White);
ObjectSet("p_Line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("p_Line", OBJPROP_WIDTH, 1);
ObjectCreate("B1_Line", OBJ_TREND, 0, 0, 0);
ObjectSet("B1_Line", OBJPROP_COLOR, Blue);
ObjectSet("B1_Line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("B1_Line", OBJPROP_WIDTH, 2);
ObjectCreate("B2_Line", OBJ_TREND, 0, 0, 0);
ObjectSet("B2_Line", OBJPROP_COLOR, Aqua);
ObjectSet("B2_Line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("B2_Line", OBJPROP_WIDTH, 2);
ObjectCreate("S2_Line", OBJ_TREND, 0, 0, 0);
ObjectSet("S2_Line", OBJPROP_COLOR, Yellow);
ObjectSet("S2_Line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("S2_Line", OBJPROP_WIDTH, 2);
ObjectCreate("S1_Line", OBJ_TREND, 0, 0, 0);
ObjectSet("S1_Line", OBJPROP_COLOR, Red);
ObjectSet("S1_Line", OBJPROP_STYLE, STYLE_SOLID);
ObjectSet("S1_Line", OBJPROP_WIDTH, 2);
}
// AC43AFB6EC3C8E74DBE13E2B86E3F06D
void f0_1() {
ObjectDelete("p_Line");
ObjectDelete("Pivot");
ObjectDelete("B1_Line");
ObjectDelete("Beli1");
ObjectDelete("B2_Line");
ObjectDelete("Beli2");
ObjectDelete("S2_Line");
ObjectDelete("Jual2");
ObjectDelete("S1_Line");
ObjectDelete("Jual1");
}
作者:
过去了
时间:
2018-1-11 18:56
我也是才学,不知对不对。哪里不行,再改。呵呵……
感谢原作者的分享!!
作者:
过去了
时间:
2018-1-11 20:06
这个很简单的,大家都不忍心改,
[attach]18948[/attach]
我也是改改试试。
这个指标主要是分析,20天内K线幅度变化,再进行操作的。具体看代码,我也只能理解到这层……
作者:
过去了
时间:
2018-1-11 20:50
中间有个LABEL,现在删除了。呵呵感谢原作者的分享!!
作者:
过去了
时间:
2018-1-11 20:58
昨天没开盘。
作者:
过去了
时间:
2018-1-11 21:48
上面是实盘截图,对比了下楼主发的图,所有红框的都取消了。至少我是这样认为的……
作者:
Tomi.wang
时间:
2018-1-11 22:25
非常感谢 就是这样的 这个指标原理是比较简单 可是对于我这种对代码什么都不懂的人就是非常难
作者:
过去了
时间:
2018-1-11 23:01
哦,原理我也不明白,只是瞎猜……能帮到你我也开心……慢慢来,一切都会好……
作者:
yuanmingyuan
时间:
2018-1-12 00:21
谢谢分享
作者:
Rosie22
时间:
2018-1-12 01:46
謝謝分享 ! 请教一下,这指标是怎么个分析法?
欢迎光临 顺水外汇EA交易网MT4 (http://waterforex.com/)
Powered by Discuz! X3.2