蜡烛图全景图(通达信公式 主图 源码 测试图)

通达信免费指标 10-24 阅读:740 评论:0
年涨幅:(DYNAINFO(7)-O#YEAR)/O#YEAR*100,NODRAW;
季涨幅:(DYNAINFO(7)-O#SEASON)/O#SEASON*100,NODRAW;
月涨幅:(DYNAINFO(7)-O#MONTH)/O#MONTH*100,NODRAW;
周涨幅:(DYNAINFO(7)-O#WEEK)/O#WEEK*100,NODRAW,COLORCYAN;
 
 
年毛利:(HHV(H,YEAR)-LLV(L,YEAR))/LLV(L,YEAR)*100*0.44,NODRAW,COLORRED;
月毛利:(HHV(H,MONTH)-LLV(L,MONTH))/LLV(L,MONTH)*100*0.44,NODRAW,COLORGREEN;
周毛利:(HHV(H,WEEKDAY)-LLV(L,WEEKDAY))/LLV(L,WEEKDAY)*100*0.44,NODRAW;
日毛利:(HHV(H,1)-LLV(L,1))/LLV(L,1)*100*0.44,NODRAW,COLORYELLOW;
 
 
{年涨跌}
年O:=O#YEAR,NODRAW;年C:=C#YEAR,NODRAW;
年H:=H#YEAR,NODRAW;年L:=L#YEAR,NODRAW;
 
{STICKLINE(年C>=年O,年O,年C,5,0),COLOR34567F;{年涨}
{STICKLINE(年C<年O,年O,年C,5,0),COLORLICYAN;{年跌}
 
 
STICKLINE(年C>=年O,年L,年H,5,0),COLORFF3EBF;{年涨}
STICKLINE(年C<=年O,年L,年H,5,0),COLORFF7648;{年跌}
STICKLINE(年C>=年O,年O,年C,5,0),COLOR00008B;{年涨}
STICKLINE(年C<年O,年O,年C,5,0),COLORAA0000;{年跌};
 
 
{季涨跌}
季O:=O#SEASON,NODRAW;季C:=C#SEASON,NODRAW;
季H:=H#SEASON,NODRAW;季L:=L#SEASON,NODRAW;
 
{STICKLINE(季C>=季O,季C,季O,5,0),COLOR996998;{季度涨}
{STICKLINE(季C<季O,季C,季O,5,0),COLORGRAY;{季度跌}
 
 
STICKLINE(季C>=季O,季H,季L,5,0),COLORLIRED;{季度涨}
STICKLINE(季C<季O,季H,季L,5,0),COLORLIGREEN;{季度跌}
STICKLINE(季C>=季O,季C,季O,5,0),COLOR996998;{季度涨}
STICKLINE(季C<季O,季C,季O,5,0),COLORGRAY;{季度跌};
 
 
{月涨跌}
月O:=O#MONTH,NODRAW;月H:=H#MONTH,NODRAW;
月L:=L#MONTH,NODRAW;月C:=C#MONTH,NODRAW;
 
STICKLINE(月C>=月O,月H,月L,5,1),COLORYELLOW;{月涨}
STICKLINE(月C<月O,月H,月L,5,1),COLORWHITE;{月跌}
STICKLINE(月C>=月O,月C,月O,5,1),COLORLIRED;{月涨}
STICKLINE(月C<月O,月C,月O,5,1),COLORGREEN;{月跌}
 
{周涨跌}
周O:=O#WEEK,NODRAW;周H:=H#WEEK,NODRAW;
周L:=L#WEEK,NODRAW;周C:=C#WEEK,NODRAW;
STICKLINE(WEEKDAY=3 AND 周C>周O,周H,周L,1,0),COLORCC3299;
STICKLINE(WEEKDAY=3 AND 周C<周O,周H,周L,1,0),COLORBLUE;
STICKLINE(周C>=周O,周O,周C,5,0),COLORCC3299;{周涨}
STICKLINE(周C<周O,周O,周C,5,0),COLORBLUE;{周跌}
 
 
 
{画K线} 
 
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

 

版权声明

本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!

服务热线

18020657357

微信客服

微信客服