请高手把下列有未来之通达信公式改为选股公式,要求红柱出现时选股!谢谢!!

2024-11-27 23:10:47
推荐回答(2个)
回答1:

VBB1:=TROUGHBARS(3,15,1)<10;
VBB2:=PEAKBARS(3,15,1)<5;
VBB3:=IF(VBB1=1,50,0);
VBB4:=IF(VBB2=1,50,0);
底部:=IF(VBB3=50,10,0);
头部:=IF(VBB4=50,20,60);
买入:IF(底部=10 AND REF(底部,1)=10 AND REF(底部,2)=0,-30,-50);

回答2:

VBB1:=TROUGHBARS(3,15,1)<10;
VBB2:=PEAKBARS(3,15,1)<5;
VBB3:=IF(VBB1=1,50,0);
VBB4:=IF(VBB2=1,50,0);
底部:=IF(VBB3=50,10,0);
头部:=IF(VBB4=50,20,60);
IF(底部=10 AND REF(底部,1)=10 AND REF(底部,2)=0,-30,-50);