通达信炒三跌源码选股/副图贴图

三跌选股,百分之十止损,百分之二十止盈,胜率能达到百分之九十

 二跌不超过十分之一仓位,三跌不超过五分之一仓位,四跌不超过四分之一仓位,五跌以下酌情处理

 
NCAAA2:= 0.2
NCZQD:= 55
NCAAA3:=0.2

卖出线:=100;
阶段卖:= 90;
底部:= 10;

 

趋势0:=SMA((L-LLV(LOW,NCZQD))/(HHV(HIGH,NCZQD)-LLV(LOW,NCZQD))*100,5,1),LINETHICK2,COLORGREEN;

NCAH2:=VALUEWHEN(CROSS(底部,趋势0),L-L*NCAAA) ;
NCAHL2:=VALUEWHEN(CROSS(底部,趋势0),L) ;
NCAL2:=IF(L<NCAH2,1,0);

NCAH3:=VALUEWHEN(CROSS(NCAH2,L),NCAH2-NCAH2*NCAAA0) ;

NCAL3:=IF(L<NCAH3 AND L<NCAH2,1,0);
底部黑马:=IF(趋势0<=10    AND NCAL2=1,1,0);
底部黑马2:=IF(趋势0<=10    AND NCAL3=1,1,0);
底部黑马2=1;

{二跌选股

NCAAA2:= 0.2
NCZQD:= 55
NCAAA3:=0.2

卖出线:=100;
阶段卖:= 90;
底部:= 10;

 

趋势0:=SMA((L-LLV(LOW,NCZQD))/(HHV(HIGH,NCZQD)-LLV(LOW,NCZQD))*100,5,1),LINETHICK2,COLORGREEN;

NCAH2:=VALUEWHEN(CROSS(底部,趋势0),L-L*NCAAA) ;
NCAHL2:=VALUEWHEN(CROSS(底部,趋势0),L) ;
NCAL2:=IF(L<NCAH2,1,0);

NCAH3:=VALUEWHEN(CROSS(NCAH2,L),NCAH2-NCAH2*NCAAA0) ;

NCAL3:=IF(L<NCAH3 AND L<NCAH2,1,0);
底部黑马:=IF(趋势0<=10    AND NCAL2=1,1,0);
底部黑马2:=IF(趋势0<=10    AND NCAL3=1,1,0);
底部黑马=1;