VAR1:=IF(DATE>=1990601,0,1);{準確買賣} VAR2:=TROUGHBARS(3,15,1)<10; VAR3:=PEAKBARS(3,15,1)<10; VAR4:=IF(VAR2=1,50,0); VAR5:=IF(VAR3=1,50,0); 買:= IF(VAR4=50,50,0); 賣:= IF(VAR5=50,100,0); A:IF( 買>REF(買,1),50,0); B:IF(賣>REF(賣,1),50,0); DRAWTEXT(A=50,50,'+' ),COLOR00FF00; DRAWTEXT(B=50,50,'-'),COLORRED; |
|