您现在的位置:程序化交易>> 股票公式>> 其他>> 其他软件公式>>正文内容

飞狐三平顶鬼变脸宝塔线公式源码[其他软件公式]

飞狐鬼变脸宝塔线公式源码:

 

sensitivy:=o; towero:=o; towerc:=c; fc:=c;
i:=2;
while i<=datacount do begin
towero[i]:=towerc[i-1];
towerc[i]:=fc[i];
sensitivy[i]:=towero[i-1];
if (towerc[i-1]-towero[i-1])*(towerc[i-1]-sensitivy[i-1])<=0 then
begin
towero[i]:=towero[i-1];
sensitivy[i]:=towerc[i-1];
end
else if between(sensitivy[i-1],towero[i-1],towerc[i-1]) then sensitivy[i]:=sensitivy[i-1];
i:=i+1;
end;tj:=(sensitivy-towero)*(sensitivy-towerc)<=0 and sensitivy<>towerc;
stickline(tj,max(towero,towerc),sensitivy,7,1), colorred;
stickline(tj,min(towero,towerc),sensitivy,7,0), color006600;
stickline(sensitivy<=min(towero,towerc) and not(tj),towero,towerc,7,1), colorred;
stickline(sensitivy>=max(towero,towerc) and not(tj),towero,towerc,7,0), color006600;
今开盘:TOWERO,LINETHICK0;
今收盘:TOWERC,LINETHICK0;
今敏感:sensitivy,LINETHICK0;三平底翻红: min(towero,towerc)=ref(min(towero,towerc),1) and min(towero,towerc)=ref(min(towero,towerc),2) and max(towero,towerc)>sensitivy,LINETHICK,COLORRED;
三平顶翻绿: max(towero,towerc)=ref(max(towero,towerc),1) and max(towero,towerc)=ref(max(towero,towerc),2) and min(towero,towerc)<SENSITIVY,LINETHICK,COLOR006600;
if k=0 then exit;
DRAWICON(三平底翻红,min(towero,towerc)*0.98,4);DRAWICON(三平顶翻绿,max(towero,towerc)*1.02,5);

 

十一的时候看了童牧野的宝塔线,四处找源码,南客大师的跟童牧野的画法有点出入,就自己在他的基础了改了改,还整合其它一些源码里东西.虽然飞狐本身带了鬼变脸主图,但自己思考后再画出来理解的深刻,其实按杨新宇博士的话说就是收盘价的一种非线性变换,现在发出来在大家参考参考吧.搞了半天,图贴不上啊,老提示

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容