大智慧春夏秋冬主图指标
源码
N1:=8;N2:=21;
DL: MA((HIGH+LOW+CLOSE)/3,N1);
ML: MA((HIGH+LOW+CLOSE)/3,N2);
Var1:=EMA((OPEN+CLOSE)/2,26);
Var2:=MA(COST(30),3);
平均成本: MA(COST(50),3);
Var3:=MA(COST(80),3);
Var4:=(HIGH+LOW+CLOSE)/3;
Var5:=EMA((OPEN+HIGH+LOW+CLOSE)/4,233);
Var6:=Var5+Var5*6/100;
严冬: STICKLINE(Var4>0.1,HIGH,LOW,0.5,0);
早春: STICKLINE(Var4<平均成本 AND Var4>ML OR Var4<Var5 AND Var4>ML OR Var4>ML AND Var1>ML,HIGH,LOW,0.5,0);
初夏: STICKLINE(Var4>平均成本 AND Var4>Var1 AND Var4>Var5 AND Var2>REF(Var2,1) OR Var4>Var2 AND Var4>Var1 AND Var4>Var5 AND Var2>REF(Var2,1),HIGH,LOW,0.5,0);
深秋: STICKLINE(Var4>Var6 AND Var4>Var3 AND DL>ML AND Var1>REF(Var1,1),HIGH,LOW,0.5,0);
STICKLINE(Var4>0.1 AND CLOSE<OPEN,OPEN,CLOSE,8,0);
STICKLINE(Var4>0.1 AND CLOSE>=OPEN,OPEN,CLOSE,8,1);
STICKLINE(Var4<平均成本 AND Var4>ML AND CLOSE<OPEN OR Var4<Var5 AND Var4>ML AND CLOSE<OPEN OR Var4>ML AND Var1>ML AND CLOSE<OPEN,OPEN,CLOSE,8,0);
STICKLINE(Var4<平均成本 AND Var4>ML AND CLOSE>OPEN OR Var4<Var5 AND Var4>ML AND CLOSE>OPEN OR Var4>ML AND Var1>ML AND CLOSE>=OPEN,OPEN,CLOSE,8,1);
STICKLINE(Var4>平均成本 AND Var4>Var1 AND Var4>Var5 AND Var2>REF(Var2,1) AND CLOSE<OPEN OR Var4>Var2 AND Var4>Var1 AND Var4>Var5 AND Var2>REF(Var2,1) AND CLOSE<OPEN,OPEN,CLOSE,8,0);
STICKLINE(Var4>平均成本 AND Var4>Var1 AND Var4>Var5 AND Var2>REF(Var2,1) AND CLOSE>OPEN OR Var4>Var2 AND Var4>Var1 AND Var4>Var5 AND Var2>REF(Var2,1) AND CLOSE>=OPEN,OPEN,CLOSE,8,1);
STICKLINE(Var4>Var6 AND Var4>Var3 AND DL>ML AND Var1>REF(Var1,1) AND CLOSE<OPEN,OPEN,CLOSE,8,0);
STICKLINE(Var4>Var6 AND Var4>Var3 AND DL>ML AND Var1>REF(Var1,1) AND CLOSE>=OPEN,OPEN,CLOSE,8,1);