Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共5 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:请问版主一个问题

1楼
jckk 发表于:2015/4/3 14:38:02

一个图表策略,跟信号用手动操作。能否在信号处添加提示音?

2楼
jinzhe 发表于:2015/4/3 14:43:36
使用playsound函数,playsound的条件写开仓条件
3楼
jckk 发表于:2015/4/3 15:02:05

请版主帮忙改一下。

 

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

4楼
jinzhe 发表于:2015/4/3 15:09:22

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

5楼
jckk 发表于:2015/4/3 15:15:19
O,谢谢版主!!
共5 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03027 s, 3 queries.