有同學(xué)看上我的主圖指標(biāo)《老李:MA》,現(xiàn)發(fā)原碼。如果看大盤則把
“換手%平均成本:sum(AMOUNT,a1)/sum(v,a1)/100,COLORWHITE,LINEDOT,LINETHICK1;”中“LINETHICK1”改為“LINETHICK0”。
指標(biāo)《老李:MA》
INPUT:P1(10,0,100),P2(40,0,100),P3(5,0,100),P4(0,0,100),N1(11,0,20),N2(9,0,20);
DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,'版塊:'+BLKNAME),ALIGN4;
MA1:EMA(CLOSE,P1),COLORYELLOW;
MA2:EMA(CLOSE,P2),COLORMAGENTA;
MA3:=EMA(CLOSE,P3);
MA4:=EMA(CLOSE,P4);
頂:HHV(HIGH,N1),POINTDOT,COLORYELLOW;
底:LLV(LOW,N2),POINTDOT,COLORCYAN;
中線:((HHV(HIGH,N1))+(LLV(LOW,N2)))/2,POINTDOT,COLORGRAY,LINETHICK0;
超短壓力:STICKLINE(CLOSE<OPEN and REF(CLOSE,1)>REF(OPEN,1),REF(CLOSE,1),REF(CLOSE,1),20,0),COLORMAGENTA,LINETHICK2;
F:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
今小昨:=IF(CLOSE<REF(OPEN,1) AND f<0,1,0);
pA:=今小昨;
今小前:=IF(CLOSE<REF(OPEN,2) AND f<0,1,0);
pB:=今小前;
STICKLINE(PA=0 AND REF(PA,1)=1 AND PB=0 AND REF(PB,1)=1,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(PA=1 AND REF(PA,1)=0 AND PB=1 AND REF(PB,1)=0,OPEN,CLOSE,3,0),COLORGRAY;{colorAAAAAA}
a1:=SUMBARS(v ,CAPITAL );
換手%平均成本:sum(AMOUNT,a1)/sum(v,a1)/100,COLORWHITE,LINEDOT,LINETHICK1;
版主能否加點(diǎn)分?股票論壇 www.55188.com
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)
點(diǎn)擊舉報(bào)。