input:N(13,1,99),M(1,0,60),P(3,1,300),P2(5,1,300),P3(36,1,300),P4(13,1,300),P5(65,1,300); a1:=1; a2:=(EMA(CLOSE,3)) * a1; a3:=(EMA((((SLOPE(CLOSE,22)) * 20) + CLOSE),55)) * a1; a4:=MA(a3,1); a5:=a4 * 0.985; a6:=MA(CLOSE,5); a7:=MA(CLOSE,13); a8:=MA(CLOSE,21); a9:=IF((a2 > a4),a4,a5); STICKLINE((a2 > (a4 * a1)),(a4 * 1.001),(a4 + 0.018),6,501),linethick2,colorRed; STICKLINE((a2 < (a4 * a1)),(a4 * 1.001),(a4 + 0.018),6,501),linethick2,colorGreen; a10:=(CLOSE > (REF(CLOSE,1))) AND (CLOSE > (REF(CLOSE,2))); a11:=((REF(a10,1)) AND (CLOSE <= (REF(CLOSE,1)))) AND (CLOSE >= (REF(CLOSE,2))); a12:=((REF(a11,1)) AND (CLOSE >= (REF(CLOSE,1)))) AND (CLOSE <= (REF(CLOSE,2))); a13:=((REF(a12,1)) AND (CLOSE <= (REF(CLOSE,1)))) AND (CLOSE >= (REF(CLOSE,2))); a14:=((REF(a13,1)) AND (CLOSE >= (REF(CLOSE,1)))) AND (CLOSE <= (REF(CLOSE,2))); a15:=((REF(a14,1)) AND (CLOSE <= (REF(CLOSE,1)))) AND (CLOSE >= (REF(CLOSE,2))); a16:=((REF(a15,1)) AND (CLOSE >= (REF(CLOSE,1)))) AND (CLOSE <= (REF(CLOSE,2))); a17:=((REF(a16,1)) AND (CLOSE <= (REF(CLOSE,1)))) AND (CLOSE >= (REF(CLOSE,2))); a18:=((REF(a17,1)) AND (CLOSE >= (REF(CLOSE,1)))) AND (CLOSE <= (REF(CLOSE,2))); a19:=((REF(a18,1)) AND (CLOSE <= (REF(CLOSE,1)))) AND (CLOSE >= (REF(CLOSE,2))); a20:=((REF(a19,1)) AND (CLOSE >= (REF(CLOSE,1)))) AND (CLOSE <= (REF(CLOSE,2))); a21:=((REF(a20,1)) AND (CLOSE <= (REF(CLOSE,1)))) AND (CLOSE >= (REF(CLOSE,2))); a22:=(CLOSE < (REF(CLOSE,1))) AND (CLOSE < (REF(CLOSE,2))); a23:=((REF(a22,1)) AND (CLOSE >= (REF(CLOSE,1)))) AND (CLOSE <= (REF(CLOSE,2))); a24:=((REF(a23,1)) AND (CLOSE <= (REF(CLOSE,1)))) AND (CLOSE >= (REF(CLOSE,2))); a25:=((REF(a24,1)) AND (CLOSE >= (REF(CLOSE,1)))) AND (CLOSE <= (REF(CLOSE,2))); a26:=((REF(a25,1)) AND (CLOSE <= (REF(CLOSE,1)))) AND (CLOSE >= (REF(CLOSE,2))); a27:=((REF(a26,1)) AND (CLOSE >= (REF(CLOSE,1)))) AND (CLOSE <= (REF(CLOSE,2))); a28:=((REF(a27,1)) AND (CLOSE <= (REF(CLOSE,1)))) AND (CLOSE >= (REF(CLOSE,2))); a29:=((REF(a28,1)) AND (CLOSE >= (REF(CLOSE,1)))) AND (CLOSE <= (REF(CLOSE,2))); a30:=((REF(a29,1)) AND (CLOSE <= (REF(CLOSE,1)))) AND (CLOSE >= (REF(CLOSE,2))); a31:=((REF(a30,1)) AND (CLOSE >= (REF(CLOSE,1)))) AND (CLOSE <= (REF(CLOSE,2))); a32:=((REF(a31,1)) AND (CLOSE <= (REF(CLOSE,1)))) AND (CLOSE >= (REF(CLOSE,2))); a33:=((REF(a32,1)) AND (CLOSE >= (REF(CLOSE,1)))) AND (CLOSE <= (REF(CLOSE,2))); a34:=(REF((((((((((((a22 OR a23) OR a24) OR a25) OR a26) OR a27) OR a28) OR a29) OR a30) OR a31) OR a32) OR a33),1)) AND a10; STICKLINE((a34 * a1),LOW,(LOW + 0.1),12,1),linethick2,colorYellow; a35:=(REF((((((((((((a10 OR a11) OR a12) OR a13) OR a14) OR a15) OR a16) OR a17) OR a18) OR a19) OR a20) OR a21),1)) AND a22; STICKLINE((a35 * a1),HIGH,(HIGH - 0.1),12,1),linethick2,colorWhite; a36:=a6 * a1; a37:=(MA(CLOSE,10)) * a1; a38:=(MA(CLOSE,20)) * a1; a39:=(MA(CLOSE,30)) * a1; a40:=(MA(CLOSE,250)) * a1; a41:=BARSLAST((CROSS(a36,a37))); a42:=BARSLAST((CROSS(a37,a36))); a43:=IF((a41 < a42),(a41 + 1),0); a44:=IF((a42 < a41),(a42 + 1),0); a45:=(((a36 > a38) AND (a37 > a38)) AND (a38 > (REF(a38,1)))) AND (a39 > (REF(a39,1))); a46:=a43 * a45; a47:=a44 * a45; a48:=((((HHV(a43,5)) >= 2) AND a45) AND (a36 > (REF(a36,1)))) AND (a36 > a37); a49:=a48 * a43; a50:=BARSLAST(((a49 > 0) AND NOT((REF(a49,1))))) + 1; a51:=((CLOSE / (REF(CLOSE,a50))) - 1) * 100; a52:=(a46 > 0) AND (a49 = 0); a53:=BARSLAST(a52) + 1; a54:=(ATAN((((a36 / (REF(a36,1))) - 1) * 100)) * 180) / 3.14159; a55:=(a54 > (REF(a54,1))) AND ((REF(a54,1)) < (REF(a54,2))); a56:=(a36 > (REF(a36,1))) AND ((REF(a36,1)) < (REF(a36,2))); a57:=FILTER((((a55 OR a56) AND (CLOSE > a36)) AND a48),3); a58:=BARSLAST(a57); STICKLINE(a52,(((OPEN + CLOSE) / 2) - 0.01),(((OPEN + CLOSE) / 2) + 0.01),4,0),colorGreen; STICKLINE(a52,LOW,HIGH,1,1),colorGreen; STICKLINE(a57,(((OPEN + CLOSE) / 2) - 0.01),(((OPEN + CLOSE) / 2) + 0.01),4,0),colorYellow; STICKLINE(a57,LOW,HIGH,1,1),colorYellow; STICKLINE(((a58 > 0) AND (a58 <= 5)),(REF(OPEN,(a58 + 1))),(REF(OPEN,(a58 + 1))),4,1),colorWhite; DRAWTEXT(a57,LOW,'▲'),colorYellow; DRAWTEXT(a49,a9,'○'),colorWhite; DRAWTEXT(a52,a9,'□'),colorGreen; DRAWTEXT(((a2 > (a4 * a1)) AND (a34 * a1)),(LOW - 0.05),'?'),linethick3,colorRed; DRAWTEXT(((a2 < (a4 * a1)) AND (a35 * a1)),(HIGH + 0.05),'?'),linethick3,Color9000F5; a59:=EMA(CLOSE,5); a60:=IF((CLOSE = INDEXC),((((INDEXC + INDEXH) + INDEXL) + INDEXO) / 4),((AMOUNT / (VOL + 0.01)) / 100)); a61:=(((LOW + (a60 - LOW)) + (CLOSE - LOW))); [1] [2] 下一页 |