一个图表策略,跟信号用手动操作。能否在信号处添加提示音?
请版主帮忙改一下。
if holding=0 and myfailtrade=1 and time<151500 then begin
if entrylongcond then
buy(1,1,limitr,max(open,entryupperband));
end
if holding=0 and myfailtrade=1 and time<151500 then begin
if entryshortcond then
buyshort(1,1,limitr,min(open,entrylowerband));
end
if holding>0 then begin
if exitlongcond then
sell(1,holding,limitr,min(open,exitlowerband));
end
if holding<0 then begin
if exitshortcond then
sellshort(1,holding,limitr,max(open,exitupperband));
end
if holding=0 and myfailtrade=1 and time<151500 then begin
if entrylongcond then
buy(1,1,limitr,max(open,entryupperband));
playsound(1,'所需要播放声音的路径名');
end
if holding=0 and myfailtrade=1 and time<151500 then begin
if entryshortcond then
buyshort(1,1,limitr,min(open,entrylowerband));
playsound(1,'所需要播放声音的路径名');
end
if holding>0 then begin
if exitlongcond then
sell(1,holding,limitr,min(open,exitlowerband));
playsound(1,'所需要播放声音的路径名');
end
if holding<0 then begin
if exitshortcond then
sellshort(1,holding,limitr,max(open,exitupperband));
playsound(1,'所需要播放声音的路径名');
end