大智慧山谷山峰副图指标
源码
{山谷山峰}
SFVar1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
山峰:=SMA(SFVar1,5,1)-8;
SFVar2:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
SFVar3:=SMA(SFVar2,5,1)-17;
山谷: CROSS(SFVar3,山峰) AND 山峰<14,stick3d,colorred;
山头: CROSS(山峰,SFVar3) AND SFVar3>=60;
山顶: CROSS(山峰,85);
SFVar4:=SMA(Vol,5,1);
SFVar5:=(SFVar4-llv(SFVar4,10))/(hhv(SFVar4,10)-llv(SFVar4,10))*100;
SFVar6:=SMA(SFVar5,3,1);
SFVar7:=100-SFVar6;
SFVar8:=REF(SFVar7,1)>REF(SFVar7,2) AND SFVar7<34;
SFVar9:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
群山:=SMA(SFVar9,3,1);
下山:SFVar8 AND 群山>82;