请高手帮忙加个报警提醒
要求 :一个币对加载了该指标,能同时监控所有直盘和叉盘币对。 报警要求弹出窗口和声音和表明是哪个货币 周期是应用在小时图的,也可以说是5小时均线,当然可以自己改参数更好。当红柱变绿柱,当绿柱变红柱都报警!
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Green
#property indicator_level1 0
extern int SMA_Period=34;
double SMAx1;
double SMAx2;
void init() {
SetIndexBuffer(0, SMAx1);
SetIndexBuffer(1, SMAx2);
SetIndexStyle(0,DRAW_HISTOGRAM);
SetIndexStyle(1,DRAW_HISTOGRAM);
}
void start() {
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for(int t=0; t=0) {SMAx1[t]=temp;SMAx2[t]=0;}
else {SMAx2[t]=temp;SMAx1[t]=0;}
}
}
QQ截图未命名.jpg
