以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 麻烦老师,看一下 (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=87285) |
-- 作者:么么 -- 发布时间:2015/11/13 16:46:08 -- 麻烦老师,看一下 一开盘价为基础上涨,1个价位开1手多单,上涨3个价位开1手多单,上涨5个价位开1手多单,上涨7个价位开1手多单,上涨8个价位开1手多单,在60日均线下方则不开,60日均线上方才开, variable:n=0,n1=0,n2=0,n3=0,n4=0; variable:m1=0,m2=0,m3=0; variable:tt=0,tt1=0,tt2=0,tt3=0,tt4=0; oo:VALUEWHEN(todaybar=1,o); ma60:=ma(c,60); if c>oo+1 and n<2 and c>ma60 and n=0 and time<>tt then begin buy(1,1,market); n:=n+1; tt:=time; end if c>oo+3 and 2>n1<4 and c>ma60 and n1=0 and time<>tt1 then begin buy(1,1,market); n1:=n+1; tt1:=time; end if c>oo+5 and 4>n2<6 and c>ma60 and n2=0 and time<>tt2 then begin buy(1,1,market); n2:=n+1; tt2:=time; end if c>oo+7 and 6>n3<8 and c>ma60 and n3=0 and time<>tt3 then begin buy(1,1,market); n3:=n+1; tt3:=time; end if c>oo+9 and 8>n4<10 and c>ma60 and n4=0 and time<>tt4 then begin buy(1,1,market); n4:=n+1; tt4:=time; end if openprofit>500 and holding>0 then begin sell(1,0,market); end if time=closetime(0) then n:=0; if time=closetime(0) then n1:=0; if time=closetime(0) then n2:=0; if time=closetime(0) then n3:=0; if time=closetime(0) then n4:=0; |
-- 作者:么么 -- 发布时间:2015/11/13 16:52:37 -- 补充,成交后的一个价位当日再不成交 |
-- 作者:jinzhe -- 发布时间:2015/11/13 17:00:57 -- 2>n1<4 这样写要表达什么意思? |
-- 作者:么么 -- 发布时间:2015/11/13 17:11:48 -- GLOBALVARIABLE:n1=0,n2=0,n3=0; GLOBALVARIABLE:tt1=0,tt2=0,tt3=0; oo:=VALUEWHEN(todaybar=1,o);
if l<open-20*mindiff and n1=0 and
time<>tt1 then begin
tbuy(1,11,mkt); n1:=1; tt1:=time; end if c<oo-60*mindiff and n2=0 and time<>tt2
then begin tbuy(1,22,mkt); n2:=1; tt2:=TIME; END if c<oo-80*mindiff and n3=0 and time<>tt3
then begin tbuy(1,44,mkt); n3:=1; tt3:=time; end if time=closetime(0) then begin n1:=0; n2:=0; n3:=0; tt1:=0; tt2:=0; tt3:=0; end 老师,麻烦划三条线,在开仓的地方 |
-- 作者:jinzhe -- 发布时间:2015/11/13 17:17:01 -- 在开仓的地方,画什么样的3跳线? |
-- 作者:么么 -- 发布时间:2015/11/13 17:20:32 -- 划3条指标线 |
-- 作者:jinzhe -- 发布时间:2015/11/13 17:23:12 -- 请问是什么样的指标线?请直接明示要什么样的线, |
-- 作者:么么 -- 发布时间:2015/11/13 17:26:58 -- 那老师,你先看一下我这个,是不是写的对呢,是不是一个点位只开仓1次 |
-- 作者:jinzhe -- 发布时间:2015/11/13 17:27:53 -- 对, 虽然不明白你的TT是干什么用的
|