大智慧三叉见顶副图指标
源码
{10三叉见顶}
nday := 3;
down := hhv(high,20)/high<=1.15;
pma1 := ma(close,5);
pma2 := ma(close,10);
vma1 := ma(vol,5);
vma2 := ma(vol,10);
diff := ema(close,12) - ema(close,26);
dea := ema(diff,9);
ppday := barslast(cross(pma2,pma1));
vvday := barslast(cross(vma2,vma1));
macdday := barslast(cross(dea,diff));
见顶:ppday<=nday and vvday<=nday and macdday<=nday,stick3d;