本帖最后由 九转妖 于 2023-11-15 11:31 编辑
副图公式 源码支持手机/电脑
GUP1:=IF(C>REF(C,1),V,0)/100;
GUP2:=IF(C<REF(C,1),V,0)/100;
主力:EMA(MA(GUP1,3),3),COLORWHITE,LINETHICK2;
散户:EMA(MA(GUP2,3),10),COLORGREEN,LINETHICK2;
比值:主力/散户,NODRAW;
差值:主力-散户,NODRAW;
GUP3:=FORCAST(EMA(C,16),7);
总资金:AMOUNT/100000000,COLORFF00FF,NODRAW;
GUP4:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
GUP5:=IF(CLOSE>OPEN,GUP4*(HIGH-LOW),IF(CLOSE<OPEN,GUP4*((HIGH-OPEN)+ (CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED;
GUP6:=IF(CLOSE>OPEN,0-GUP4*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-GUP4*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00;
净入:GUP5+GUP6,COLORMAGENTA,NODRAW;
净比:净入/C*100000;
净值:ABS(净比/差值);
STICKLINE(差值>0 AND 比值>=0 AND 比值<1.2,差值,0,9,0),COLORBROWN;
STICKLINE(差值>0 AND 比值>=0 AND 比值<1.2 AND 净入>0 AND 净值>0.05,差值,差值+净比,9,0),COLORDB70DB;
STICKLINE(比值>1.2,差值,0,9,0),COLORRED;
STICKLINE(比值>1.2 AND 净入>0 AND 净值>0.05,差值,差值+净比,9,0),COLORDB70DB;
STICKLINE(比值>1.2 AND 净入<0 AND 净值>0.05,差值,差值+净比,9,0),COLORGREEN;
STICKLINE(差值<0 AND 比值>=0.8 AND 比值<1,差值,0,9,0),COLORBROWN;
STICKLINE(差值<0 AND 比值>=0.8 AND 比值<1 AND 净入<0 AND 净值>0.05,差值,差值+净比,9,0),COLORYELLOW;
STICKLINE(差值<0 AND 比值<0.8,差值,0,9,0),COLORGREEN;
STICKLINE(差值<0 AND 比值<0.8 AND 净入<0 AND 净值>0.05,差值,差值+净比,9,0),COLORYELLOW;
STICKLINE(差值<0 AND 比值<0.8 AND 净入>0 AND 净值>0.05,差值,差值+净比,9,0),COLORRED;
卖出:=比值>1.2 AND C<O AND 净入<0;
DRAWICON(卖出=1,8,2);
买入:=比值>1.2 AND (差值+净比)>=REF((差值+净比),1) AND C>=REF(C,1) AND MA(净入,3)>=0 AND 卖出=0;
DRAWICON(买入=1,8,1);
选股公式源码
{选股公式:红箭头图标}
GUP1:=IF(C>REF(C,1),V,0)/100;
GUP2:=IF(C<REF(C,1),V,0)/100;
主力:=EMA(MA(GUP1,3),3),COLORWHITE,LINETHICK2;
散户:=EMA(MA(GUP2,3),10),COLORGREEN,LINETHICK2;
比值:=主力/散户;
差值:=主力-散户;
GUP4:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
GUP5:=IF(CLOSE>OPEN,GUP4*(HIGH-LOW),IF(CLOSE<OPEN,GUP4*((HIGH-OPEN)+ (CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED;
GUP6:=IF(CLOSE>OPEN,0-GUP4*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-GUP4*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00;
净入:=GUP5+GUP6,COLORMAGENTA;
净比:=净入/C*100000;
净值:=ABS(净比/差值);
卖出:=比值>1.2 AND C<O AND 净入<0;
买入:=比值>1.2 AND (差值+净比)>=REF((差值+净比),1) AND C>=REF(C,1) AND MA(净入,3)>=0 AND 卖出=0;
红箭头图标:买入=1;
{卖出公式:绿箭头图标}
GUP1:=IF(C>REF(C,1),V,0)/100;
GUP2:=IF(C<REF(C,1),V,0)/100;
主力:=EMA(MA(GUP1,3),3),COLORWHITE,LINETHICK2;
散户:=EMA(MA(GUP2,3),10),COLORGREEN,LINETHICK2;
比值:=主力/散户;
GUP4:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
GUP5:=IF(CLOSE>OPEN,GUP4*(HIGH-LOW),IF(CLOSE<OPEN,GUP4*((HIGH-OPEN)+ (CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED;
GUP6:=IF(CLOSE>OPEN,0-GUP4*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-GUP4*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00;
净入:=GUP5+GUP6,COLORMAGENTA;
卖出:=比值>1.2 AND C<O AND 净入<0;
绿箭头图标:卖出=1; |