一、通达信筹码锁定及选股指标公式
DRAWTEXT_FIX(ISLASTBAR,0,0,0,'红线出橙峰见底(第一买点),红线出蓝峰买入(第二买点),红线出绿峰回调买入(第三买点)'),LINETHICK2,COLORFFFF00;
散筹估算:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,2),LINETHICK2,COLORFFFF00;
主筹估算:EMA(WINNER(C)*70,3),LINETHICK3,COLORRED;
筹码锁定:散筹估算-主筹估算,COLOR66FF00,LINETHICK2;
{
选股公式:
散筹估算:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3),LINETHICK3,COLORFFFF00;
主筹估算:=EMA(WINNER(C)*70,3),LINETHICK3,COLORRED;
筹码锁定:=散筹估算-主筹估算,COLOR66FF00,LINETHICK2;
CROSS(主筹估算,散筹估算);
}
二、通达信MACD庐山面目指标公式
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),NODRAW;
DEA:=EMA(DIF,9),NODRAW;
MACD:=(DIF-DEA)*6,NODRAW;
MAX_MACD:=CONST(HHV(MAX(ABS(DIF),ABS(DEA)),365));
NOTEXTMACD1:=(100 * MACD) / MAX_MACD + 50;
STICKLINE(NOTEXTMACD1>50,50,NOTEXTMACD1,50,50),COLORRED;
STICKLINE(NOTEXTMACD1<=50,50,NOTEXTMACD1,50,50),COLORCYAN;
NOTEXTDIF1:(100 * DIF*3) / MAX_MACD + 50,COLORLIGREEN;
NOTEXTDEA1:(100 * DEA*3) / MAX_MACD + 50,COLORYELLOW;
NOTEXT强:IF(NOTEXTDIF1>MA(NOTEXTDIF1,2),NOTEXTDIF1,DRAWNULL),COLORRED,LINETHICK2;