| 
 | 
 
 
 楼主 |
发表于 2023-3-16 16:45:28
|
显示全部楼层
 
 
 
 本帖最后由 bcsunwww 于 2023-3-16 16:52 编辑  
 
function strategy0 BEGIN limitcycle:day; 
    if (IsLastBar) then 
    begin 
            num := StkCount(StkName); 
            for i = 1 to num do 
            begin 
                stkcode := StkFromBlk(StkName, i); 
                ppp:=Ref(RefStkC(stkcode),1);   
                if (ppp>30.00) then 
                    begin 
                    AddToBlock(stkcode, '中价股'); 
                    end 
                zzt:=(Ref(RefStkC(stkcode),1)- Ref(RefStkC(stkcode),2))/Ref(RefStkC(stkcode),1) > 1.095 and Ref(RefStkC(stkcode),1)=Ref(RefStkH(stkcode),1);   
                if zzt then 
                    begin 
                    AddToBlock(stkcode, '昨涨停'); 
                    end 
            end 
    end 
 
end 
 
 
SetPoolSample('A股', 0); 
strategy0; |   
 
 
 
 |