A1买入操作(同花顺版源代码)
{VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
绿探底震仓:IF(VAR2,10,DRAWNULL),COLORGREEN,LINETHICK9;
红买: IF(VAR2>VAR3,10,DRAWNULL), COLORRED,LINETHICK9;
蓝卖: IF(VAR2<VAR3,10,DRAWNULL),COLORBLUE,LINETHICK9;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
上穿买:SMA(RSV,3,1),COLORRED;
下穿卖:SMA(上穿买,3,1),COLORFFFF00;
买点:=CROSS(上穿买,下穿卖);
三日买点:=上穿买>REF(上穿买,1) AND 买点 ;
WI:=上穿买=下穿卖;
DRAWTEXT(三日买点,下穿卖,'买入位置'),COLORRED,LINETHICK5;
VAR3:=PEAKBARS(3,15,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,2,0);
顶A:IF(顶>REF(顶,1),50,0),COLORGREEN;
DRAWTEXT(顶A=50,65,'快逃'),COLOR00FF00;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1);
IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK1;
IF(K<REF(K,1),K,DRAWNULL),COLORGREEN,LINETHICK1;};
=====================================================
VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
绿探底震仓:IF(VAR2,10,DRAWNULL),COLORGREEN,LINETHICK9;
红买: IF(VAR2>VAR3,10,DRAWNULL), COLORRED,LINETHICK9;
蓝卖: IF(VAR2<VAR3,10,DRAWNULL),COLORBLUE,LINETHICK9;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
上穿买:SMA(RSV,3,1),COLORRED;
下穿卖:SMA(上穿买,3,1),COLORFFFF00;
买点:=CROSS(上穿买,下穿卖);
三日买点:=上穿买>REF(上穿买,1) AND 买点 ;
WI:=上穿买=下穿卖;
DRAWTEXT(三日买点,下穿卖,'买入位置'),COLORRED,LINETHICK5;
VAR3:=PEAKBARS(3,15,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,2,0);
顶A:IF(顶>REF(顶,1),50,0),COLORGREEN;
DRAWTEXT(顶A=50,65,'快逃'),COLOR00FF00;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1);
IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK1;
IF(K<REF(K,1),K,DRAWNULL),COLORGREEN,LINETHICK1;};