通达信【五转结构序列】主图更简单好用
AA:=1;N:=CURRBARSCOUNT*AA;{卖出结构} S:=C>REF(C,4);DRAWNUMBER(N=2 AND REFXV(COUNT(S,2),1)=2 AND COUNT(S,5)=5 AND REF(S,5)=0,H*1.01,5),COLORYELLOW;DRAWNUMBER(N=3 AND REFXV(COUNT(S,3),2)=3 AND COUNT(S,5)=5 AND REF(S,5)=0,H*1.01,5),COLORYELLOW;DRAWNUMBER(N=4 AND REFXV(COUNT(S,4),3)=4 AND COUNT(S,5)=5 AND REF(S,5)=0,H*1.01,5),COLORYELLOW;DRAWNUMBER(N>=5 AND REFXV(COUNT(S,5),4)=5 AND COUNT(S,5)=5 AND REF(S,5)=0,H*1.01,5),COLORYELLOW;DRAWNUMBER(N=1 AND COUNT(S,6)=6 AND REF(S,6)=0,H*1.01,4),COLORMAGENTA;DRAWNUMBER(N=2 AND REFXV(COUNT(S,2),1)=2 AND COUNT(S,6)=6 AND REF(S,6)=0,H*1.01,4),COLORMAGENTA;DRAWNUMBER(N=3 AND REFXV(COUNT(S,3),2)=3 AND COUNT(S,6)=6 AND REF(S,6)=0,H*1.01,4),COLORMAGENTA;DRAWNUMBER(N>=4 AND REFXV(COUNT(S,4),3)=4 AND COUNT(S,6)=6 AND REF(S,6)=0,H*1.01,4),COLORMAGENTA;DRAWNUMBER(N=1 AND COUNT(S,7)=7 AND REF(S,7)=0,H*1.01,3),COLORMAGENTA;DRAWNUMBER(N=2 AND REFXV(COUNT(S,3),1)=3 AND COUNT(S,7)=7 AND REF(S,7)=0,H*1.01,3),COLORMAGENTA;DRAWNUMBER(N>=3 AND REFXV(COUNT(S,3),2)=3 AND COUNT(S,7)=7 AND REF(S,7)=0,H*1.01,3),COLORMAGENTA;DRAWNUMBER(N=2 AND COUNT(S,8)=8 AND REF(S,8)=0,H*1.01,2),COLORMAGENTA;DRAWNUMBER(N>=2 AND REFXV(COUNT(S,2),1)=2 AND COUNT(S,8)=8 AND REF(S,8)=0,H*1.01,2),COLORMAGENTA;DRAWNUMBER(N>=1 AND COUNT(S,9)=9 AND REF(S,9)=0,H*1.01,1),COLORYELLOW;DRAWTEXT_FIX(C>O,0.01,0.9,0,'gspt.COM'),COLOR222222;
未来函数检测结果如下:
该公式包含未来函数:REFX
该公式包含未来函数:REFXV
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
AA赋值:1
N赋值:CURRBARSCOUNT*AA
{卖出结构} S赋值:C>4日前的C
DRAWNUMBER(N=2 AND REFXV(统计2日满足S的天数,1)=2 AND 统计5日满足S的天数=5 AND 5日前的S=0,H*1.01,5),画黄色
DRAWNUMBER(N=3 AND REFXV(统计3日满足S的天数,2)=3 AND 统计5日满足S的天数=5 AND 5日前的S=0,H*1.01,5),画黄色
DRAWNUMBER(N=4 AND REFXV(统计4日满足S的天数,3)=4 AND 统计5日满足S的天数=5 AND 5日前的S=0,H*1.01,5),画黄色
DRAWNUMBER(N>=5 AND REFXV(统计5日满足S的天数,4)=5 AND 统计5日满足S的天数=5 AND 5日前的S=0,H*1.01,5),画黄色
DRAWNUMBER(N=1 AND 统计6日满足S的天数=6 AND 6日前的S=0,H*1.01,4),COLORMAGENTA
DRAWNUMBER(N=2 AND REFXV(统计2日满足S的天数,1)=2 AND 统计6日满足S的天数=6 AND 6日前的S=0,H*1.01,4),COLORMAGENTA
DRAWNUMBER(N=3 AND REFXV(统计3日满足S的天数,2)=3 AND 统计6日满足S的天数=6 AND 6日前的S=0,H*1.01,4),COLORMAGENTA
DRAWNUMBER(N>=4 AND REFXV(统计4日满足S的天数,3)=4 AND 统计6日满足S的天数=6 AND 6日前的S=0,H*1.01,4),COLORMAGENTA
DRAWNUMBER(N=1 AND 统计7日满足S的天数=7 AND 7日前的S=0,H*1.01,3),COLORMAGENTA
DRAWNUMBER(N=2 AND REFXV(统计3日满足S的天数,1)=3 AND 统计7日满足S的天数=7 AND 7日前的S=0,H*1.01,3),COLORMAGENTA
DRAWNUMBER(N>=3 AND REFXV(统计3日满足S的天数,2)=3 AND 统计7日满足S的天数=7 AND 7日前的S=0,H*1.01,3),COLORMAGENTA
DRAWNUMBER(N=2 AND 统计8日满足S的天数=8 AND 8日前的S=0,H*1.01,2),COLORMAGENTA
DRAWNUMBER(N>=2 AND REFXV(统计2日满足S的天数,1)=2 AND 统计8日满足S的天数=8 AND 8日前的S=0,H*1.01,2),COLORMAGENTA
DRAWNUMBER(N>=1 AND 统计9日满足S的天数=9 AND 9日前的S=0,H*1.01,1),画黄色
当满足条件C>O时,在横轴0.01纵轴0.9位置书写文字