 
等级: 超级版主
- 注册:
- 2021-5-18
- 曾用名:
|
本帖最后由 技术008 于 2025-4-28 14:15 编辑
cond1:DYNAINFO( 4)/DYNAINFO( 3)>1.09;
zf:close/ref(close,1)>1.09;
cond2:ref(all(not(zf),5),1);
cond3:not(STRICMP(STRLEFT(stkname,2 ),'st') = 0 or STRICMP(STRLEFT(stkname,3 ), '*st') = 0 );
cond4:currenttime>093000 and currenttime<100000;
buy_num:=EXTGBDATA(numtostr(CURRENTDATE,0));
cond5:DYNAINFO( 56)>50*100000000 and DYNAINFO( 56)<300*100000000;
if cond1 and cond2 and cond3 and cond4 and BUY_NUM<5 and cond5 then
begin
tbuy(1,20000/c,mkt);
EXTGBDATASET( numtostr(CURRENTDATE,0),buy_num+1 );
END
if tbuyholding(0)>0 and currenttime<103000 then tsell(1,tbuyholding(0),mkt);
用在日线上,另外这个不支持回测只能通过交易去看结果。后台监控主板品种,这个交易品种自己事先把主板品种加到自选股然后后台直接监控自选股就行了,这个步骤代码不好编写请手工提前处理好 |
|