以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 图表信号过滤 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=82221) |
-- 作者:PanS -- 发布时间:2015/8/10 12:52:56 -- 图表信号过滤 图表上显示开平信号,如何做到一根K线只显示1个信号,不会反复。 平空:SELLSHORT(PK or Timep ,1,ThisCLOSE); //平空信号 开多:BUY (KD AND HOLDING=0 and Timek ,1,ThisCLOSE); //开多信号 平多:SELL (PD or Timep ,1,ThisCLOSE); //平多信号 开空:BUYSHORT (KK AND HOLDING=0 and Timek ,1,ThisCLOSE); //开空信号 |
-- 作者:jinzhe -- 发布时间:2015/8/10 13:18:17 -- 一根k线上不要反手信号吗? variable:bj=0; if bj=0 and holding=0 and kd then begin buy.......; bj:=1; end
if bj=0 and holding=0 and kk then begin buyshort....; bj:=1; end
if bj=1 and exitbars>0 and kd then buy......; if bj=1 and exitbars>0 and kk then buyshort......; if (pk or timep) and enterbars>0 then sellshort.....; if (pd or timep) and enterbars>0 then sell.........; [此贴子已经被作者于2015/8/10 13:18:31编辑过]
|
-- 作者:PanS -- 发布时间:2015/8/10 13:54:13 -- 金老师,我不用交易,只要图表显示的箭头不反复就行了,有没有简单点的函数控制 |
-- 作者:jinzhe -- 发布时间:2015/8/10 13:57:53 -- 呵呵,能简单我为什么要搞复杂 |
-- 作者:PanS -- 发布时间:2015/8/10 14:12:22 -- 呵呵,了解,谢谢 |