任何人都有一些代碼會發出警報,因為前一個酒吧的低位被打破了?

沒關係,我想通了。

#property copyright版權所有©2011,MetaQuotes Software Corp.
#property鏈接http://www.metaquotes.net

#property indior_chart_window


extern bool Show_Alert = true;


bool bSoundAlert = True;/
string sSoundFile = Alert.wav;
int iDelayBetweenAlarm = 10;/每次報警之間的延遲

// ----------------------------------------------- -------------------
//|自定義室內初始化功能|
// ----------------------------------------------- -------------------
int init()
{
//- - 在室內
//----
返回(0);
}
// ----------------------------------------------- -------------------
//|定制室內取消初始化功能|
// ----------------------------------------------- -------------------
int deinit()
{
//----

//----
返回(0);
}
// ----------------------------------------------- -------------------
//|自定義室內迭代功能|
// ----------------------------------------------- -------------------
int start()




{
int counter,setalert;
int alert = 0;


int counts_bars = IndiorCounted();
//----
if(High [0] gt; High [1])

{
if(bSoundAlert Show_Alert == true)警報(1);

}
//----
返回(0);
}
// ----------------------------------------------- -------------------

void警報(int Direction)
{
static datetime AlertLastTime = 0;

if(TimeCurrent()gt; AlertLastTime){
AlertLastTime = TimeCurrent() iDelayBetweenAlarm;
PlaySound(sSoundFile);

}
}