-- 作者:金字塔之巅
-- 发布时间:2021/4/26 10:54:35
-- 公式编写
老师,这是博易大师的一个指标,麻烦改成金字塔的,多谢!
AA:=H>REF(HHV(H,3),1)&&H>REFX(HHV(H,3),3); BB:=L<REF(LLV(L,3),1)&&L<REFX(LLV(L,3),3); DRAWNUMBER(AA,H,H,0,COLORRED); DRAWNUMBER(BB,L,L,0,COLORGREEN); A:=EMA(CLOSE,26); T:=EMA(CLOSE,13); B:=EMA(A,9); T1:=EMA(T,9); DEA:EMA(T-(T1-T),2); DIFF:DEA-EMA(((A-B)-(T-T1)),1)*6; FILLRGN(DEA>DIFF,DEA,DIFF,RGB(230,255,204)); FILLRGN(DEA<DIFF,DEA,DIFF,RGB(239,204,234)); DRAWCOLORKLINE(ISUP,COLORRED,M); DRAWCOLORKLINE(ISDOWN,COLORGREEN,N); DRAWCOLORKLINE(ISEQUAL,COLORWHITE,1); 此主题相关图片如下:张扬.png
|
-- 作者:FireScript
-- 发布时间:2021/4/26 12:16:47
--
除了最后的函数,其他都不需要改变。
AA:=H>REF(HHV(H,3),1)&&H>REFX(HHV(H,3),3); BB:=L<REF(LLV(L,3),1)&&L<REFX(LLV(L,3),3); DRAWNUMBER(AA,H,H,0,COLORRED); DRAWNUMBER(BB,L,L,0,COLORGREEN); A:=EMA(CLOSE,26); T:=EMA(CLOSE,13); B:=EMA(A,9); T1:=EMA(T,9); DEA:EMA(T-(T1-T),2); DIFF:DEA-EMA(((A-B)-(T-T1)),1)*6; FILLRGN(DEA>DIFF,DEA,DIFF,RGB(230,255,204)); FILLRGN(DEA<DIFF,DEA,DIFF,RGB(239,204,234)); STICKLINE(ISUP,o,c,0.8,1,COLORRED); STICKLINE(ISDOWN,o,c,0.8,1,COLORGREEN); STICKLINE(ISEQUAL,o,c,0.8,1,COLORWHITE);
这样试下。
|