请教我个声音报价EA存在什么问题
原以为xfxyldj版的声音报价EA没更新啦,只好硬着头皮自己做(刚刚才发现X已做更新,白忙乎一场,呵呵),可是在加载时却无法加载,不知道问题出在哪(我取整数的最后两位,没找着取整函数),请老大多指点,另外还想问一下,该怎样描述布林线的收缩程度,谢谢
//+------------------------------------------------------------------+
//| fm声音报价.mq4 |
//| fm |
//| fm |
//+------------------------------------------------------------------+
#property copyright "zjfm"
#property link "zjfm"
extern bool sound_alert = 1; // 声音报警,默认为开
int init()
{
//---- indicators
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
int start(){
int i, shift;
double i1;
double i2;
shift=Bars;
i2=MathFloor(MathMod(Close*10),10);
i1=MathFloor(MathMod(Close,10));
if(i1==0){
PlaySound("0");}
else if(i1==1){
PlaySound("1");}
else if(i1==2){
PlaySound("2");}
else if(i1==3){
PlaySound("3");}
else if(i1==4){
PlaySound("4");}
else if(i1==5){
PlaySound("5");}
else if(i1==6){
PlaySound("6");}
else if(i1==7){
PlaySound("7");}
else if(i1==8){
PlaySound("8");}
else if(i1==9){
PlaySound("9");}
if(i2==0){
PlaySound("0");}
else if(i2==1){
PlaySound("1");}
else if(i2==2){
PlaySound("2");}
else if(i2==3){
PlaySound("3");}
else if(i2==4){
PlaySound("4");}
else if(i2==5){
PlaySound("5");}
else if(i2==6){
PlaySound("6");}
else if(i2==7){
PlaySound("7");}
else if(i2==8){
PlaySound("8");}
else if(i2==9){
PlaySound("9");}
return(0);
}
//+------------------------------------------------------------------+