通达信宝塔线中线买卖法 设计思路、源码
{牛牛指标网提供:www.tdx001.com}
“宝塔在手,堪比天王”---宝塔线中线买卖法(通达信副图)
设计思路:
1.周线下使用;
2.最近三根宝塔线底部基本平齐,且第三根宝塔线平底前提下翻红.亦即:宝塔线三平底翻红;
3.股价站上5周均线,且5周均线向上;
满足上述条件时,马上“放塔”---中线买入点;
4.反之,卖出以股价跌破5周线,且5周线掉头向下,宝塔线三平顶翻绿清仓、止损,马上“收塔”。
=========================
{宝塔在手源码}
放塔:CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)<REF(CLOSE,3) AND IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) OR (REF(CLOSE,2)<REF(CLOSE,4) AND REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7))))AND CROSS(C,MA(C,5)) AND MA(C,5)>REF(MA(C,5),1),COLORRED;
收塔:CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,1)>REF(CLOSE,3) AND IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) OR (REF(CLOSE,2)>REF(CLOSE,4) AND REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))))AND CROSS(MA(C,5),C) AND MA(C,5)<REF(MA(C,5),1),COLORGREEN;
DRAWBAND(0>放塔,RGB(0,0,0),0<放塔,RGB(250,0,0));
DRAWBAND(0>收塔,RGB(0,0,0),0<收塔,RGB(0,250,0));
DRAWTEXT(放塔,放塔,'放塔'),COLOR00FFFF;
DRAWTEXT(收塔,收塔,'收塔'),COLORFFFF00;
2873924328.jpg
|