以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 求助,这样的开仓语句怎么写 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=65816) |
-- 作者:DarthYoda -- 发布时间:2014/6/4 20:08:53 -- 求助,这样的开仓语句怎么写 设置全局变量VA、VAC;某根K线走完,如果符合条件A,则准备开多仓,VA:=1;VAC:=close; 如果价格继续下行,达到限价:L<VAC-9*mindiff,序列模式立即下市价单; 请赐教,这样的语句该怎么写?
|
-- 作者:jinzhe -- 发布时间:2014/6/5 9:06:15 -- 需要用后台
if mod(currenttime,100)>=0 and mod(currenttime,100)<=1 then begin extgbdataset(\'va\',1); extgbdataset(\'vac\',close); end
if l<extgbdata(\'vac\')-9*mindiff then tbuy(tholding=0,1,mkt); |
-- 作者:DarthYoda -- 发布时间:2014/6/5 22:04:49 -- 以下是引用jinzhe在2014/6/5 9:06:15的发言:
我的是标准版,能否实现?
需要用后台
if mod(currenttime,100)>=0 and mod(currenttime,100)<=1 then begin extgbdataset(\'va\',1); extgbdataset(\'vac\',close); end
if l<extgbdata(\'vac\')-9*mindiff then tbuy(tholding=0,1,mkt); |
-- 作者:DarthYoda -- 发布时间:2014/6/5 22:09:17 -- 使用标准版,在序列模式下,可以实现吗? |
-- 作者:jinzhe -- 发布时间:2014/6/6 9:06:42 -- 不行,要专业版 [此贴子已经被作者于2014/6/6 9:06:50编辑过]
|