财富铜模型[文华赢智源码]
源码如下:[code][N1,1.000000,50.000000,18.000000]
UP:=REF(HHV(HIGH,N1),1);
DOWN:=REF(LLV(LOW,N1),1);
Y:=UP-DOWN;
A:=UP*0.001/2;
AUP:=UP+A;
ADOWN:=DOWN-A;
UP1:=IF(Y/UP<0.0045,AUP,UP);
DOWN1:=IF(Y/UP<0.0045,ADOWN,DOWN);
Z:=REF(HHV(HIGH,1),1);
T:=REF(LLV(LOW,1),1);
HIGH>UP1&&TIME>0959&&TIME<1424&&Z<>T,BK;
DOWN1>LOW&&TIME>0959&&TIME<1424&&Z<>T,SK;
HIGH>UP1||TIME>1456||Z=T,BP;
DOWN1>LOW||TIME>1456||Z=T,SP;
《新办 》模型源码:
H:=HIGH;
L:=LOW;
HH1:=IF(H<REF(H,2)&&REF(H,1)<REF(H,2),REF(H,2),0);
LL1:=IF(L>REF(L,2)&&REF(L,1)>REF(L,2),REF(L,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IF(CLOSE>HH2,-3,IF(CLOSE<LL2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IF(K2=1,HH2,LL2);
G1:=VALUEWHEN(ISLASTBAR,G);
W1:=K2;
W1>0,SPK;
W1<=0,BPK;
[/code]
页:
[1]