顺水外汇EA交易网MT4
标题:
希望高手能把这个指标加上弹窗提示,谢谢
[打印本页]
作者:
ytpld
时间:
2018-1-11 18:17
标题:
希望高手能把这个指标加上弹窗提示,谢谢
希望高手能把这个指标加上弹窗提示,在出现多的时候弹窗提示多,再空的时候弹窗提示空,在平的时候提示平,谢谢
[attach]23721[/attach]
#property indicator_chart_window
#property indicator_buffers 6
#property indicator_color1 White
#property indicator_color2 White
#property indicator_color3 Red
#property indicator_color4 Lime
#property indicator_color5 Gray
#property indicator_color6 Gray
extern color zhengdang = Gray;
double gd_80 = 2063.0;
double gd_unused_88 = 12.0;
double gd_unused_96 = 31.0;
double gd_unused_104 = 24.0;
int g_width_112 = 8;
double g_ibuf_116[];
double g_ibuf_120[];
double g_ibuf_124[];
double g_ibuf_128[];
double g_ibuf_132[];
double g_ibuf_136[];
int gi_unused_140 = 0;
int gi_unused_144 = 0;
string gs_148 = "MHDMT_XMA";
string gs_156 = "MHDMT_GRAY_BELT";
int init() {
string ls_unused_0;
IndicatorBuffers(6);
SetIndexStyle(0, DRAW_LINE);
SetIndexBuffer(0, g_ibuf_116);
SetIndexStyle(1, DRAW_LINE);
SetIndexBuffer(1, g_ibuf_120);
SetIndexStyle(2, DRAW_LINE, STYLE_DASH);
SetIndexBuffer(2, g_ibuf_124);
SetIndexStyle(3, DRAW_LINE, STYLE_DASH);
SetIndexBuffer(3, g_ibuf_128);
SetIndexStyle(4, DRAW_LINE);
SetIndexBuffer(4, g_ibuf_132);
SetIndexStyle(5, DRAW_LINE);
SetIndexBuffer(5, g_ibuf_136);
IndicatorShortName("MHDMT_ZT");
SetIndexLabel(0, "ZD");
SetIndexLabel(1, "ZK");
SetIndexLabel(2, "KS");
SetIndexLabel(3, "DS");
SetIndexLabel(4, "GBH");
SetIndexLabel(5, "GBL");
return (0);
}
int deinit() {
ObjectsDeleteAll(WindowOnDropped());
return (0);
}
int start() {
double ld_0;
double ld_8;
bool li_16;
bool li_20;
int ind_counted_24 = IndicatorCounted();
ObjectsDeleteAll(WindowOnDropped());
int li_28 = WindowFirstVisibleBar();
int highest_32 = iHighest(NULL, 0, MODE_HIGH, WindowBarsPerChart(), WindowFirstVisibleBar() - WindowBarsPerChart() + 1);
double ld_36 = (WindowPriceMax() - WindowPriceMin()) / 15.0;
int window_44 = WindowOnDropped();
ObjectCreate("label_object_B1", OBJ_LABEL, 0, 0, 0);
ObjectSetText("label_object_B1", "【QQ:83218858 】", 10, "Arial", Yellow);
ObjectSet("label_object_B1", OBJPROP_XDISTANCE, 250);
ObjectSet("label_object_B1", OBJPROP_YDISTANCE, 5);
ObjectSet("label_object_B1", OBJPROP_XDISTANCE, 250);
ObjectSet("label_object_B1", OBJPROP_YDISTANCE, 5);
ObjectDelete("duoqujian");
ObjectCreate("duoqujian", OBJ_TEXT, 0, Time[li_28 / 2], High[highest_32]);
ObjectDelete("kongqujian");
ObjectCreate("kongqujian", OBJ_TEXT, 0, Time[li_28 / 2], High[highest_32] - ld_36);
ObjectSetText("kongqujian", "", 16, "黑体", DarkGreen);
ObjectDelete("zhendangqujian");
ObjectCreate("zhendangqujian", OBJ_TEXT, 0, Time[li_28 / 2], High[highest_32] - 2.0 * ld_36);
ObjectSetText("zhendangqujian", "", 16, "黑体", zhengdang);
if (Year() ld_0 && g_ibuf_116[li_48] > ld_8) {
ObjectCreate("duo" + DoubleToStr(Time[li_48], 0), OBJ_TREND, window_44, Time[li_48], g_ibuf_116[li_48], Time[li_48], g_ibuf_120[li_48]);
ObjectSet("duo" + DoubleToStr(Time[li_48], 0), OBJPROP_COLOR, Maroon);
ObjectSet("duo" + DoubleToStr(Time[li_48], 0), OBJPROP_RAY, FALSE);
ObjectSet("duo" + DoubleToStr(Time[li_48], 0), OBJPROP_WIDTH, g_width_112);
ObjectSet("duo" + DoubleToStr(Time[li_48], 0), OBJPROP_BACK, TRUE);
}
if (g_ibuf_120[li_48] ld_8) {
ObjectCreate("dang" + DoubleToStr(Time[li_48], 0), OBJ_TREND, window_44, Time[li_48], g_ibuf_116[li_48], Time[li_48], g_ibuf_120[li_48]);
ObjectSet("dang" + DoubleToStr(Time[li_48], 0), OBJPROP_COLOR, zhengdang);
ObjectSet("dang" + DoubleToStr(Time[li_48], 0), OBJPROP_RAY, FALSE);
ObjectSet("dang" + DoubleToStr(Time[li_48], 0), OBJPROP_WIDTH, g_width_112);
ObjectSet("dang" + DoubleToStr(Time[li_48], 0), OBJPROP_BACK, TRUE);
}
if (g_ibuf_116[li_48 + 1] Low[li_48] && (g_ibuf_120[li_48] > ld_0 && g_ibuf_116[li_48] > ld_8) || (g_ibuf_120[li_48] ld_8)) {
ObjectCreate("duosong" + DoubleToStr(Time[li_48], 0), OBJ_TEXT, 0, Time[li_48], g_ibuf_128[li_48]);
ObjectSetText("duosong" + DoubleToStr(Time[li_48], 0), "损", 10, "黑体", Red);
ObjectCreate("zuoduo" + DoubleToStr(Time[li_48], 0), OBJ_TEXT, 0, Time[li_48], Low[li_48]);
ObjectSetText("zuoduo" + DoubleToStr(Time[li_48], 0), "多", 12, "黑体", Red);
li_16 = TRUE;
}
if (High[li_48 + 1] g_ibuf_120[li_48] && (g_ibuf_120[li_48] ld_8)) {
ObjectCreate("kongsong" + DoubleToStr(Time[li_48], 0), OBJ_TEXT, 0, Time[li_48], g_ibuf_124[li_48]);
ObjectSetText("kongsong" + DoubleToStr(Time[li_48], 0), "损", 10, "黑体", Lime);
ObjectCreate("zuokong" + DoubleToStr(Time[li_48], 0), OBJ_TEXT, 0, Time[li_48], High[li_48]);
ObjectSetText("zuokong" + DoubleToStr(Time[li_48], 0), "空", 12, "黑体", Lime);
li_20 = TRUE;
}
if (g_ibuf_116[li_48 + 1] Low[li_48] && (g_ibuf_120[li_48] ld_8)) && li_16 == FALSE) {
ObjectCreate("kongping" + DoubleToStr(Time[li_48], 0), OBJ_TEXT, 0, Time[li_48], Low[li_48]);
ObjectSetText("kongping" + DoubleToStr(Time[li_48], 0), "平", 12, "黑体", Yellow);
}
if (High[li_48 + 1] g_ibuf_120[li_48] && (g_ibuf_120[li_48] > ld_0 && g_ibuf_116[li_48] > ld_8) || (!(g_ibuf_120[li_48] ld_8)) && li_20 == FALSE) {
ObjectCreate("duoping" + DoubleToStr(Time[li_48], 0), OBJ_TEXT, 0, Time[li_48], High[li_48]);
ObjectSetText("duoping" + DoubleToStr(Time[li_48], 0), "平", 12, "黑体", Yellow);
}
}
}
return (0);
}
作者:
梦不觉
时间:
2018-1-11 19:38
lz是在做广告吧,怎么就只有“平平平。。。”外加一个qq号。和截图根本不符。
作者:
ytpld
时间:
2018-1-11 21:05
未来主要看你如何使用了,高手啊,哪去了,帮帮忙吧
作者:
xzhxie
时间:
2018-1-11 21:28
晕,也不上个图,我怎么看都是平字,没有多和空。
作者:
人民币
时间:
2018-1-11 22:47
什么样子的。。文件和截图上传一下。。
作者:
呆子off
时间:
2018-1-12 00:05
未来、。、、、、
作者:
好起来了
时间:
2018-1-12 00:17
有你分享 太好了
作者:
(~_o_~)~zZ
时间:
2018-1-12 00:42
回复有金币,挣钱是唯一
作者:
estar250
时间:
2018-1-12 01:19
看看~~看看~~看看~~看看~~
作者:
tonyye1229
时间:
2018-1-12 01:25
路过。。先看看。
作者:
wbjingshi
时间:
2018-1-12 02:24
有未来函数 垃圾
作者:
简单爱
时间:
2018-1-12 02:50
看看 看看看 看看看看 看看
作者:
rjtabc
时间:
2018-1-12 02:57
回复有金币,挣钱是唯一
作者:
mbrcao
时间:
2018-1-12 03:40
何如效果
作者:
gjc1984
时间:
2018-1-12 04:07
在任何周期上都不建议用这个指标
作者:
wmyrzy
时间:
2018-1-12 04:16
多谢分享的啊
欢迎光临 顺水外汇EA交易网MT4 (http://waterforex.com/)
Powered by Discuz! X3.2