BB_Alert Arrows

BB_Alert Arrows最新版

更新日期:2022-03-01分类标签: 语言:中文平台:没限制

35 人已下载 手机查看

BB_Alert Arrows

/*
Generated by EX4-TO-MQ4 decompiler V4.0.469.1 [-]
Website: https://purebeam.biz
E-mail : purebeam@gmail.com
*/
#property copyright “BB_AlertArrows.mq4”
#property link “Copyright ?010, admin@forexstrategiesbinaryoptions.com”

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Yellow
#property indicator_color2 Yellow

extern int SignalGap = 3;
extern bool EnableSoundAlert = TRUE;
extern bool EnableMailAlert = FALSE;
int gi_88 = 24;
double g_ibuf_92[];
double g_ibuf_96[];
int g_bars_100;
int g_count_104;
bool gi_108;

int init() {
SetIndexStyle(0, DRAW_ARROW, STYLE_SOLID, 1);
SetIndexStyle(1, DRAW_ARROW, STYLE_SOLID, 1);
SetIndexArrow(1, 233);
SetIndexArrow(0, 234);
SetIndexBuffer(0, g_ibuf_92);
SetIndexBuffer(1, g_ibuf_96);
g_bars_100 = Bars;
g_count_104 = 0;
return (0);
}

int start() {
int highest_20;
int lowest_24;
int li_0 = IndicatorCounted();
if (li_0 < 0) return (-1);
if (li_0 > 0) li_0–;
int li_16 = Bars – 1;
if (li_0 >= 1) li_16 = Bars – li_0 – 1;
if (li_16 < 0) li_16 = 0;
for (int li_8 = li_16; li_8 >= 0; li_8–) {
highest_20 = iHighest(NULL, 0, MODE_HIGH, gi_88, li_8 – gi_88 / 2);
lowest_24 = iLowest(NULL, 0, MODE_LOW, gi_88, li_8 – gi_88 / 2);
if (li_8 == highest_20) g_ibuf_92[li_8] = High[highest_20] + SignalGap * Point;
if (li_8 == lowest_24) g_ibuf_96[li_8] = Low[lowest_24] – SignalGap * Point;
}
gi_108 = f0_1();
if (gi_108) g_count_104 = 0;
if (g_count_104 == 0) {
if (EnableSoundAlert) {
if (g_ibuf_92[0] != EMPTY_VALUE && g_ibuf_92[0] > 0.0) {
Alert(TimeToStr(Time[0], TIME_DATE|TIME_MINUTES) + ” BB_Alert Arrows sell ” + Symbol() + ” ” + f0_0(Period()));
g_count_104++;
if (EnableMailAlert) {
SendMail(TimeToStr(Time[0], TIME_DATE|TIME_MINUTES) + ” BO_Alert Arrows sell ” + Symbol() + ” ” + f0_0(Period()), TimeToStr(Time[0], TIME_DATE|TIME_MINUTES) + ” BO_Alert Arrows sell ” +
Symbol() + ” ” + f0_0(Period()));
}
}
if (g_ibuf_96[0] != EMPTY_VALUE && g_ibuf_96[0] > 0.0) {
Alert(TimeToStr(Time[0], TIME_DATE|TIME_MINUTES) + ” BB_Alert Arrows buy ” + Symbol() + ” ” + f0_0(Period()));
g_count_104++;
SendMail(TimeToStr(Time[0], TIME_DATE|TIME_MINUTES) + ” BB_Alert Arrows buy ” + Symbol() + ” ” + f0_0(Period()), TimeToStr(Time[0], TIME_DATE|TIME_MINUTES) + ” BO_Alert Arrows buy ” +
Symbol() + ” ” + f0_0(Period()));
}
}
}
return (0);
}

int f0_1() {
bool li_ret_0 = FALSE;
if (g_bars_100 != Bars) {
li_ret_0 = TRUE;
g_bars_100 = Bars;
}
return (li_ret_0);
}

string f0_0(int ai_0) {
if (ai_0 == 1) return (“M1”);
if (ai_0 == 5) return (“M5”);
if (ai_0 == 15) return (“M15”);
if (ai_0 == 30) return (“M30”);
if (ai_0 == 60) return (“H1”);
if (ai_0 == 240) return (“H4”);
if (ai_0 == 1440) return (“D1”);
if (ai_0 == 10080) return (“W1”);
if (ai_0 == 43200) return (“MN1”);
return (“”);
}

如果你对文件有了解,请帮助投票!

If you are familiar with the file, please help vote!

平均评分 0 / 5. 投票数: 0

到目前为止还没有投票!成为第一位投票人。

相关资源

暂无评论

暂无评论...