相關(guān)標(biāo)簽:牛股形態(tài)主圖指標(biāo) 、 通達(dá)信主圖指標(biāo)公式 、 分時(shí)主圖指標(biāo)公式 、 趨勢(shì)主圖指標(biāo)公式 、 同花順主圖指標(biāo)公式 、 黃金柱主圖指標(biāo)公式 、 macd主圖指標(biāo)公式 、 最好的主圖指標(biāo)公式 、 金鉆指標(biāo)公式主圖 、 挖坑主圖指標(biāo)公式 、 布林線主圖指標(biāo)公式 、 老鴨頭形態(tài)主圖指標(biāo) 、 通達(dá)信bs主圖指標(biāo)公式 、 精準(zhǔn)線主圖指標(biāo)公式 、 波浪主圖指標(biāo)公式 、
形態(tài)揭秘主圖指標(biāo)公式源碼
原理解析:
源碼:
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,30);
MA4:MA(CLOSE,120);
DRAWTEXT(sysparam(3)=BARPOS and h>ref(h,1) and l>=ref(l,1) and C>(ref(o,1)+ref(c,1))/2,hhv(h,30)+50*mindiff,'多頭攻擊形'),ALIGN2,coloryellow;
DRAWTEXT(sysparam(3)=BARPOS and h>ref(h,1) and l>=ref(l,1) and C<=(ref(o,1)+ref(c,1))/2,hhv(h,30)+50*mindiff,'多頭攻擊失敗形'),ALIGN2,coloryellow;
DRAWTEXT(sysparam(3)=BARPOS and h<=ref(h,1) and l<ref(l,1) and C<=(ref(o,1)+ref(c,1))/2,hhv(h,30)+50*mindiff,'空頭攻擊形'),ALIGN2,coloryellow;
DRAWTEXT(sysparam(3)=BARPOS and h<=ref(h,1) and l<ref(l,1) and C>(ref(o,1)+ref(c,1))/2,hhv(h,30)+50*mindiff,'空頭攻擊失敗形'),ALIGN2,coloryellow;
DRAWTEXT(sysparam(3)=BARPOS and h>ref(h,1) and l<ref(l,1) and C>max(ref(o,1),ref(c,1)),hhv(h,30)+50*mindiff,'多空消耗形,多勝'),ALIGN2,coloryellow;
DRAWTEXT(sysparam(3)=BARPOS and h>ref(h,1) and l<ref(l,1) and C<=max(ref(o,1),ref(c,1)),hhv(h,30)+50*mindiff,'多空消耗形,空勝'),ALIGN2,coloryellow;
DRAWTEXT(sysparam(3)=BARPOS and h<=ref(h,1) and l>=ref(l,1) and C>(ref(o,1)+ref(c,1))/2,hhv(h,30)+50*mindiff,'多空試探形,多占上風(fēng)'),ALIGN2,coloryellow;
DRAWTEXT(sysparam(3)=BARPOS and h<=ref(h,1) and l>=ref(l,1) and C<=(ref(o,1)+ref(c,1))/2,hhv(h,30)+50*mindiff,'多空試探形,空占上風(fēng)'),ALIGN2,coloryellow;{程序化交易 www.tumamayizhan.com }
公式導(dǎo)入教程: 【通達(dá)信公式源碼導(dǎo)入方法教程】 【同花順公式源碼導(dǎo)入方法教程】 【大智慧新一代公式源碼導(dǎo)入方法教程】