能代码的大佬帮忙看看这个指标为什么不能放到图表上去
能代码的大佬帮忙看看这个指标为什么不能放到图表上去mt4的版本 问题 估计要1.36现在是1.38 1.37 1.38版本的都不行,是我用AI写的代码估计是代码的问题 1、代码错误,编译不成功。
2、缺少“顶底”指标。 第二个语法错误,应该是要在前面加上:
string PeriodToString(int period){
string value = "";
if(period == 0){
period = Period();
}
switch(period){
case PERIOD_M1:value = "1分足 (M1)"; break;
case PERIOD_M5:value = "5分足 (M5)"; break;
case PERIOD_M15: value = "15分足 (M15)"; break;
case PERIOD_M30: value = "30分足 (M30)"; break;
case PERIOD_H1:value = "1時間足 (H1)"; break;
case PERIOD_H4:value = "4時間足 (H4)"; break;
case PERIOD_D1:value = "日足 (D1)"; break;
case PERIOD_W1:value = "週足 (W1)"; break;
case PERIOD_MN1: value = "月足 (MN1)"; break;
default: break;
}
return(value);
}
string PeriodToStringEn(int period){
string value = "";
if(period == 0){
period = Period();
}
switch(period){
case PERIOD_M1:value = "1 minute (M1)"; break;
case PERIOD_M5:value = "5 minutes (M5)"; break;
case PERIOD_M15: value = "15 minutes (M15)"; break;
case PERIOD_M30: value = "30 minutes (M30)"; break;
case PERIOD_H1:value = "1 hour (H1)"; break;
case PERIOD_H4:value = "4 hours (H4)"; break;
case PERIOD_D1:value = "1 day (D1)"; break;
case PERIOD_W1:value = "1 week (W1)"; break;
case PERIOD_MN1: value = "1 month (MN1)"; break;
default: break;
}
return(value);
}
{:1_194:} 谢谢
页:
[1]