國瑞煊公式改寫文華模型
價值合金鋼
參數 N,1,100,10
M,1,100,10
N1,1,100,20
M1,1,100,20
以下是源碼
LL:=LLV(LOW,(N + M));HH:=HHV(HIGH,(N + M));SR:=(2 * HH - LL);SS:=(2 * LL - HH);DD:=(SR - SS);DM:=(DD / 2);DKKPX:=(DM + SS);SDXT:=DKKPX;LL1:=LLV(LOW,(N1 + M1));HH1:=HHV(HIGH,(N1 + M1));SR1:=((2 * HH1) - LL1);SS1:=((2 * LL1) - HH1);DD1:=(SR1 - SS1);DM1:=(DD1 / 2);SDXT1:=(DM1 + SS1);AY:=SDXT1;AA:=SDXT;YY:=(((HIGH + LOW) + CLOSE) / 3);A0:=((HIGH + LOW) / 2);A1:=SMA(A0,13,1);A2:=HHV(HIGH,24);A3:=LLV(LOW,24);STICKLINE(YY < REF(AA,1),OPEN,CLOSE,7 ,0), COLORCYAN;STICKLINE(YY < REF(AA,1),high,CLOSE,1 ,0), COLORCYAN;STICKLINE(YY < REF(AA,1),OPEN,low,1 ,0), COLORCYAN;STICKLINE(YY < REF(AA,1) and A2 = REF(A2,0),OPEN,CLOSE, 7,0), COLORCYAN;STICKLINE(YY < REF(AA,1) and A2 = REF(A2,0),OPEN,low,1 ,0), COLORCYAN;STICKLINE(YY < REF(AA,1) and A2 = REF(A2,0),OPEN,low,1 ,0), COLORCYAN;STICKLINE(YY > REF(AA,1) and A3 > REF(A3,0),OPEN,CLOSE, 7,0), COLORRED;STICKLINE(YY > REF(AA,1) and A3 > REF(A3,0),OPEN,CLOSE, 1,0), COLORRED;STICKLINE(YY > REF(AA,1) and A3 > REF(A3,0),OPEN,CLOSE, 1,0), COLORRED;STICKLINE(YY > REF(AA,1) and A3 = REF(A3,0),OPEN,CLOSE, 7,0), COLORRED;STICKLINE(YY > REF(AA,1) and A3 = REF(A3,0),high,CLOSE, 1,0), COLORRED;STICKLINE(YY > REF(AA,1) and A3 = REF(A3,0),OPEN,low, 1,0), COLORRED;STICKLINE(YY > AA and YY < AY,OPEN,CLOSE,7 ,0), COLORYELLOW;STICKLINE(YY > AA and YY < AY,high,CLOSE,1 ,0), COLORYELLOW;STICKLINE(YY > AA and YY < AY,OPEN,low,1 ,0), COLORYELLOW;STICKLINE(YY < AA and YY > AY,OPEN,CLOSE,7 ,0), COLORYELLOW;STICKLINE(YY < AA and YY > AY,high,CLOSE,1 ,0), COLORYELLOW;STICKLINE(YY < AA and YY > AY,OPEN,low,1,0), COLORYELLOW;
決勝趨勢王
VAR0:=(((CLOSE - LLV(LOW,65)) / (HHV(HIGH,65) - LLV(LOW,65))) * 100);VAR1:=SMA(VAR0,20,1);AA:=SMA(VAR1,5,1);ZZC:=(((CLOSE - LLV(LOW,20)) / (HHV(HIGH,32) - LLV(LOW,20))) * 100);JNYY1:=SMA(ZZC,3,1);V2:=SMA(JNYY1,3,1);BB:=SMA(V2,5,1);V6:=SMA(VAR1,13,1);VA3:=(((3*VAR1)+(2*V6))/4);ZZC1:=(((CLOSE - LLV(LOW,20)) / (HHV(HIGH,32) - LLV(LOW,20))) * 100);VA4:=SMA(ZZC,4,1);A55:=SMA(VA4,12,1);stickline(va4>a55,low,open,1,0),colorred; stickline(va4>a55,open,close,7,0),colorred; stickline(va4>a55,close,high,1,0),colorred; stickline(va4<a55,low,open,1,0), colorblue; stickline(va4<a55,open,close,7,0), colorblue; stickline(va4<a55,close,high,1,0), colorblue;
企業套保策略
TYA:=((((((((((LOW + HIGH) + CLOSE) + REF(CLOSE,1)) + REF(LOW,1)) + REF(HIGH,1)) + REF(CLOSE,2)) + REF(LOW,2)) + REF(HIGH,2)) / 9));{1}HDA:=(((((HHV(TYA,(17 * 2)) + REF(HHV(TYA,(17 * 2)),1)) + REF(HHV(TYA,(17 * 2)),2)) + REF(HHV(TYA,(17 * 2)),3)) + REF(HHV(TYA,(17 * 2)),4)) / 5);{2}LDA:=(((((LLV(TYA,(17 * 2)) + REF(LLV(TYA,(17 * 2)),1)) + REF(LLV(TYA,(17 * 2)),2)) + REF(LLV(TYA,(17 * 2)),3)) + REF(LLV(TYA,(17 * 2)),4)) / 5);{3}A1:=(REF(HDA,1) = (HHV(TYA,((2 * 21) + 0))));{4}A2:=(REF(LDA,1) = (LLV(TYA,((2 * 21) + 0))));{5}A:=(REF(HDA,BARSLAST(A1)));{6}B:=(REF(LDA,BARSLAST(A2)));{7}T1:=((BARSLAST(A1) < BARSLAST(A2)) and (NOT(A1)));{8}T2:=((BARSLAST(A1) > BARSLAST(A2))and(NOT(A2)));{9}BF:=IF(T1,A,A);{10}HH:=MA(BF,1);{11}BG:=IF(T2,B,B);{12}LL:=MA(BG,1);HH1:=(BARSLAST((CLOSE > (REF(HH,1) * 1.003))));{13}LL1:=(BARSLAST((CLOSE < (REF(LL,1) * 0.997))));{14}PARTLINE((HH1 < LL1),LL),COLORRED;{15}PARTLINE((HH1 > LL1),HH),COLORGREEN;{16}DRAWTEXT(CROSS(HH1,LL1),HH,"空頭");{17}DRAWTEXT(CROSS(LL1,HH1),LL,"多頭");{18}STICKLINE((HH1 < LL1),OPEN,CLOSE,7,0),COLORRED;{19}STICKLINE((HH1 < LL1),high,CLOSE,1,0),COLORRED;{20}STICKLINE((HH1 < LL1),OPEN,low,1,0),COLORRED;{21}STICKLINE((HH1 > LL1),OPEN,CLOSE,7,0),COLORGREEN;{22}STICKLINE((HH1 > LL1),high,CLOSE,1,0),COLORGREEN;{22}STICKLINE((HH1 > LL1),OPEN,low,1,0),COLORGREEN;
推薦閱讀:
※網路時代快速學習模型的建構與運用
※2018年十大培訓趨勢(二):用ALO模型設計場景化培訓體系
※傳說中的MP28+?——MP40熱破
※模型教程:直愣愣的模型
※除了醜陋之外近乎完美——SS06紅蜘蛛