专为那些又想赚钱又不想动脑筋的股友设计
日:=120;
昨前:=3;
高:=REF(HHV(H,日),昨前);
低:=REF(LLV(L,日),昨前);
一:(高-低)*0.191+低,NODRAW,COLOR505050;
二:(高-低)*0.236+低,NODRAW,COLOR003E00;
三:(高-低)*0.382+低,NODRAW,COLOR0000BB;
中:(高-低)*0.5+低,NODRAW,COLOR0F0F0F;
六:(高-低)*0.618+低,NODRAW,COLORB500B5;
八:(高-低)*0.809+低,NODRAW,COLOR0039B0;
车:(MA(H/L,120)-1)*100,NODRAW,COLOR000000;
SS:100,COLOR000000;
DD:0,COLOR000000;
DRAWTEXT(CURRBARSCOUNT=60,60,HYBLOCK),COLORred;
DRAWNUMBER(CURRBARSCOUNT=2,60,车),COLORFFFFFF;
DRAWNUMBER(ISLASTBAR AND C>=低 AND C<一,95,一),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=一 AND C<二,95,二),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=二 AND C<三,95,三),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=三 AND C<中,95,中),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=中 AND C<六,95,六),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=六 AND C<八,95,八),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=八 AND C<高,95,高),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=低 AND C<一,30,低),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=一 AND C<二,30,一),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=二 AND C<三,30,二),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=三 AND C<中,30,三),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=中 AND C<六,30,中),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=六 AND C<八,30,六),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C>=八 AND C<高,30,八),COLOR000000;
DRAWNUMBER(ISLASTBAR AND C<低,70,低),COLOR000000;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
日赋值:120
昨前赋值:3
高赋值:REF(日日内H最高值,昨前)
低赋值:REF(日日内L最低值,昨前)
输出一:(高-低)*0.191+低,NODRAW,COLOR505050
输出二:(高-低)*0.236+低,NODRAW,COLOR003E00
输出三:(高-低)*0.382+低,NODRAW,COLOR0000BB
输出中:(高-低)*0.5+低,NODRAW,COLOR0F0F0F
输出六:(高-低)*0.618+低,NODRAW,COLORB500B5
输出八:(高-低)*0.809+低,NODRAW,COLOR0039B0
输出车:(H/L的120日简单移动平均-1)*100,NODRAW,COLOR000000
输出SS:100,COLOR000000
输出DD:0,COLOR000000
当满足条件 到最后交易的周期=60时,在60和HYBLOCK位置书写文字
DRAWNUMBER( 到最后交易的周期=2,60,车),COLORFFFFFF
DRAWNUMBER(ISLASTBAR AND C>=低 AND C<一,95,一),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=一 AND C<二,95,二),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=二 AND C<三,95,三),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=三 AND C<中,95,中),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=中 AND C<六,95,六),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=六 AND C<八,95,八),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=八 AND C<高,95,高),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=低 AND C<一,30,低),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=一 AND C<二,30,一),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=二 AND C<三,30,二),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=三 AND C<中,30,三),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=中 AND C<六,30,中),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=六 AND C<八,30,六),COLOR000000
DRAWNUMBER(ISLASTBAR AND C>=八 AND C<高,30,八),COLOR000000
DRAWNUMBER(ISLASTBAR AND C<低,70,低),COLOR000000