期貨交易 n=26 趨勢(shì)線:=3*SMA((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 底部:=LLV(CLOSE,30); MA3:=MA(底部,2); X:=MA(CLOSE,26); 壓力:=HHV(HIGH,30); STICKLINE(CLOSE>=X,CLOSE,HIGH,1,0),colorFF; STICKLINE(CLOSE>=X,OPEN,CLOSE,8,0),colorFF; STICKLINE(CLOSE>=X,OPEN,LOW,1,0),colorFF; STICKLINE(CLOSE<=X,OPEN,CLOSE,8,0),colorFF0000; STICKLINE(CLOSE<=X,OPEN,HIGH,1,0),colorFF0000; STICKLINE(CLOSE<=X,CLOSE,LOW,1,0),colorFF0000; PARTLINE(MA3>=REF(MA3,1) AND CLOSE>=X AND CLOSE>MA3,MA3),colorFFFFFF; PARTLINE(壓力<=REF(壓力,1) AND CLOSE<=X,壓力),colorFFFFFF; DRAWICON(FILTER(LOW<=X AND CLOSE>=X AND MA3>=REF(MA3,1) AND CLOSE/OPEN>1.02 AND WINNER(CLOSE)<0.4,20),LOW,1),colorFFFF; DRAWICON(FILTER(HIGH>=壓力 AND CLOSE<HIGH AND CLOSE<OPEN AND OPEN/CLOSE>1.03 AND WINNER(CLOSE)>0.6,5),HIGH,2),colorFF00; 趨勢(shì)線:=3*SMA((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 短期乖離率:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; DRAWTEXT(FILTER(IF(CROSS(趨勢(shì)線,10) AND CLOSE/LOW>1.04 AND 短期乖離率<0.35,1,0) AND CLOSE>OPEN,5),LOW-0.07,''),ALIGN2,colorFFFF; VARA:=AMOUNT/VOL/100; VARB:=(3*HIGH+LOW+OPEN+2*CLOSE)/7; VARC:=SUM(AMOUNT,7)/VARA/100; VARD:=DMA(VARB,VOL/VARC); VARE:=(CLOSE-VARD)/VARD*100; VARF:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; VARJ:=MA(VARE,20)+STD(VARE,20); BIAS18:=(CLOSE-MA(CLOSE,18))/MA(CLOSE,18)*100; K:=SMA(VARF,3,1); 頂:=REF(BIAS18,1)>=5 AND CROSS(VARJ,VARE) AND K>79; DRAWTEXT(FILTER(REF(BIAS18,1)>=5 AND CROSS(VARJ,VARE) AND K>79,5),HIGH*1.02,''),colorFFFF;
期貨交易c TYM:=(HHV(HIGH,20) - (0.5 * (HHV(HIGH,20) - LLV(LOW,20)))); PARTLINE(ALL((CLOSE > TYM),3),TYM),LINETHICK2,colorFFFF; PARTLINE(ALL((CLOSE < TYM),3),TYM),LINETHICK2,colorFFFFFF; STICKLINE(ALL((CLOSE > TYM),3),OPEN,CLOSE,8,0),colorFF00FF; STICKLINE(ALL((CLOSE > TYM),3),HIGH,LOW,1,0),colorFF00FF; STICKLINE(ALL((CLOSE < TYM),3),OPEN,CLOSE,8,0),colorFF00; STICKLINE(ALL((CLOSE < TYM),3),LOW,HIGH,1,0),colorFF00;
期貨交易D input:N(10,1,500); HH:=HHV(HIGH,N); LL:=LLV(LOW,N); HH1:=BARSLAST((HH > REF(HH,1))); LL1:=BARSLAST((LL < REF(LL,1))); PARTLINE((HH1 < LL1),LL),LINETHICK2,colorBB0066; PARTLINE((HH1 > LL1),HH),LINETHICK2,color1B8800; STICKLINE((HH1 < LL1),CLOSE,OPEN,9,0),colorFF; STICKLINE((HH1 < LL1),HIGH,LOW,0,0),colorFF; STICKLINE((HH1 > LL1),CLOSE,OPEN,9,0),colorFF0000; STICKLINE((HH1 > LL1),HIGH,LOW,0,0),colorFF0000; DRAWICON(CROSS(HH1,LL1),HH,11); DRAWICON(CROSS(LL1,HH1),LL,12); DRAWTEXT(CROSS(HH1,LL1),HH,'開(kāi)空平多'),colorFF00; DRAWTEXT(CROSS(LL1,HH1),LL,'開(kāi)多平空'),colorFF00FF; DRAWTEXT(FILTER(((HH1 < REF(HH1,1)) AND (HH1 < LL1)),90),LOW,'♂加多'),colorFF00FF; DRAWTEXT(FILTER(((LL1 < REF(LL1,1)) AND (HH1 > LL1)),90),HIGH,'♀加空'),colorFF00;
期貨交易E input:N(13,0,99); 適用于:STICKLINE((EMA(CLOSE,13) >= EMA(CLOSE,34)),LOW,HIGH,1,0),colorFF; 五:STICKLINE((EMA(CLOSE,13) >= EMA(CLOSE,34)),OPEN,CLOSE,8,0),colorFF; 十五:STICKLINE((EMA(CLOSE,13) < EMA(CLOSE,34)),LOW,HIGH,1,0),colorFF0000; 三十:STICKLINE((EMA(CLOSE,13) < EMA(CLOSE,34)),OPEN,CLOSE,8,0),colorFF0000; 六十:PARTLINE((EMA(CLOSE,13) >= EMA(CLOSE,34)),LLV(CLOSE,N)),LINETHICK2,color9966FF; 分鐘!:PARTLINE((EMA(CLOSE,13) < EMA(CLOSE,34)),HHV(CLOSE,N)),LINETHICK2,colorFFFF00; 周期:DRAWICON(CROSS(EMA(CLOSE,34),EMA(CLOSE,13)),HIGH,11); 用:DRAWICON(CROSS(EMA(CLOSE,13),EMA(CLOSE,34)),LOW,12); DRAWTEXT(CROSS(EMA(CLOSE,13),EMA(CLOSE,34)),LOW,'開(kāi)多平空'); DRAWTEXT(CROSS(EMA(CLOSE,34),EMA(CLOSE,13)),HIGH,'開(kāi)空平多'); drawtext(BARPOS=SYSPARAM(1),HIGH,' 適用于5, 15, 30, 60分鐘周期'),align5,colorffff;
期貨交易F DK:=MA(CLOSE,N)-MA(CLOSE,20); VAR1:=REF(CROSS(DK,0),1); VAR2:=REF(CROSS(0,DK),1); 江:COUNT(CROSS(0,DK),0)=1 AND REF(COUNT(CROSS(0,DK),0),1)=0,LINETHICK0; 海:COUNT(CROSS(DK,0),0)=1 AND REF(COUNT(CROSS(DK,0),0),1)=0,LINETHICK0; 論:BARSLAST(VAR1 OR 江),LINETHICK0; 壇:BARSLAST(VAR2 OR 海),LINETHICK0; 期:=COUNT(CROSS(DK,0),0)=COUNT(CROSS(0,DK),0) AND REF(COUNT(CROSS(DK,0),0),1)=1 AND REF(COUNT(CROSS(0,DK),0),1)=0; 貨:=COUNT(CROSS(DK,0),0)=COUNT(CROSS(0,DK),0) AND REF(COUNT(CROSS(DK,0),0),1)=0 AND REF(COUNT(CROSS(0,DK),0),1)=1; VAR3:=IF(期 OR 貨,REF(IF(論<壇,REF(HHV(HIGH,2),論),REF(LLV(LOW,2),壇)),1),IF(論<壇,REF(HHV(HIGH,2),論),REF(LLV(LOW,2),壇))); 交:=REF(CLOSE,1)<=REF(VAR3,1) AND CLOSE>VAR3 AND 論<壇; 易:=REF(CLOSE,1)>=REF(VAR3,1) AND CLOSE<VAR3 AND 壇<論; 會(huì):交 AND COUNT(交,論)=1,LINETHICK0; 員:易 AND COUNT(易,壇)=1,LINETHICK0; 專:COUNT(會(huì),BARSCOUNT(論))>0 AND COUNT(員,BARSCOUNT(論))=0,LINETHICK0; 用:COUNT(員,BARSCOUNT(壇))=0 AND COUNT(員,BARSCOUNT(壇))>0,LINETHICK0; 指:=專 OR 會(huì) OR BARSLAST(會(huì))<BARSLAST(員); 標(biāo):=用 OR 員 OR BARSLAST(會(huì))>BARSLAST(員); STICKLINE(指,LOW,HIGH,1,0),colorFF; STICKLINE(指,OPEN,CLOSE,8,0),colorFF; STICKLINE(標(biāo),LOW,HIGH,1,0),colorFF0000; STICKLINE(標(biāo),OPEN,CLOSE,8,0),colorFF0000; PARTLINE(指,REF(LLV(LOW,2),壇)),LINETHICK2,colorFF00FF; PARTLINE(標(biāo),REF(HHV(HIGH,2),論)),LINETHICK2,colorFFFFFF; DRAWTEXT(指 AND REF(指,1)=0 OR COUNT(指,0)=1,REF(LLV(LOW,2),壇),'開(kāi)多平空'),colorFF00FF; DRAWTEXT(標(biāo) AND REF(標(biāo),1)=0 OR COUNT(標(biāo),0)=1,REF(HHV(HIGH,2),壇),'開(kāi)空平多'),colorFFFFFF; DRAWTEXT(指 AND FILTER(LOW<REF(LLV(LOW,2),5),壇),LOW,'♂加多'),colorFF00FF; DRAWTEXT(標(biāo) AND FILTER(HIGH>REF(HHV(HIGH,2),論),5),HIGH,'♀加空'),colorFF00; DRAWTEXT(SYSPARAM(1)=BARPOS,CLOSE,'江海論壇會(huì)員專用長(zhǎng)線指標(biāo) 適用于日以上周期'),ALIGN5,colorFFFF;
期貨交易J input:N(10,2,12); DIRECTION:=(CLOSE - REF(CLOSE,n)); XX:=ABS((CLOSE - REF(CLOSE,1))); VOLATILITY:=SUM(XX,n); ER:=ABS((DIRECTION / VOLATILITY)); FASTC:=(2 / (2 + 1)); SLOWC:=(2 / (30 + 1)); SSC:=((ER * (FASTC - SLOWC)) + SLOWC); CONSTANT:=(SSC * SSC); CC:=CLOSE; YY:=(REF(CLOSE,1) + (CONSTANT * (CLOSE - REF(CLOSE,1)))); IF DATACOUNT > N THEN DD[N]:=CC[(N + 1)]; FOR I=N + 1 to DATACOUNT DO DD[I]:=(DD[(I - 1)] + (CONSTANT[I] * (CC[I] - DD[(I - 1)]))); 止損線:=(DD),LINETHICK2,colorFFFF; FFILTER:=((15 / 100) * STD((止損線 - REF(止損線,1)),n)); XA:=IF((止損線 < REF(止損線,1)),止損線,0); XN:=BARSLAST((XA > 0)); AMALOW:=REF(止損線,XN); YA:=IF((止損線> REF(止損線,1)),止損線,0); YN:=BARSLAST((YA > 0)); AMAHIGH:=REF(止損線,YN); RR:=IF(((AMAHIGH - 止損線) > FFILTER),(0 - 1),0); TT:=IF(((止損線 - AMALOW) > FFILTER),1,RR); TJ:=((CLOSE > OPEN) OR ((CLOSE = OPEN) AND (CLOSE > REF(CLOSE,1)))); 多頭持倉(cāng):STICKLINE((TT = 1),LOW,HIGH,0.8,0),COLORRED; STICKLINE((TT = 1),OPEN,CLOSE,7,0),COLORRED; STICKLINE((TT = 1),OPEN,CLOSE,5,0),COLORRED; STICKLINE((TT = 1),OPEN,CLOSE,2,0),COLORRED; STICKLINE((TT = 1),OPEN,CLOSE,1,0),COLORRED; 空頭持倉(cāng):STICKLINE((TT = (0 - 1)),LOW,HIGH,0.8,0),COLORBLUE; STICKLINE((TT = (0 - 1)),OPEN,CLOSE,7,0),COLORBLUE; STICKLINE((TT = (0 - 1)),OPEN,CLOSE,5,0),COLORBLUE; STICKLINE((TT = (0 - 1)),OPEN,CLOSE,2,0),COLORBLUE; STICKLINE((TT = (0 - 1)),OPEN,CLOSE,1,0),COLORBLUE; 持幣觀望:STICKLINE((TT = 0),LOW,HIGH,0.8,0),COLORMAGENTA; STICKLINE((TT = 0),OPEN,CLOSE,7,0),COLORMAGENTA; STICKLINE((TT = 0),OPEN,CLOSE,5,0),COLORMAGENTA; STICKLINE((TT = 0),OPEN,CLOSE,2,0),COLORMAGENTA; STICKLINE((TT = 0),OPEN,CLOSE,1,0),COLORMAGENTA;
|
|
|