当前位置:→ 公式网 > 通达信公式 > 正文  公式解密、改选股等业务 联系点击查看详情...

以下是四区主图与一品理念(提供大智慧L2、飞狐、通达信版本)(无源码的请下载附件导入)

在此双节之际,特奉上一品小礼:【四区主图】源码,目的在于传递一种属于一品自己的操盘理念,希望能够对朋友们有一点小小的启发。
指标理念与使用参考:
1、指标理念:顺势而为,是操盘的最高境界;只有趋势良好的目标,才是操作中最为安全可靠、而又获利最快的目标!【四区主图】想表达的就是这样的一点含义。
2、指标设计:【四区主图】即是将主图所见全部K线,以坐标形式,自动分为上下左右四个部分;右侧,再根据黄金分割定律,细分为上下四个区域;每个区域自上而下分别代表:强势拉升、震荡整理、反弹中部、弱势探底等四个不同状态。
3、一品选择:高高在上,无阻飞扬,是一品最喜欢选择的目标!因此,这样的目标往往处于主图画面的右上角----无论是短线或是中线,都是这样!因此,一品特意将【四区主图】的右上角强势拉升区域配上深蓝背景色,以示强调与突出!这,便是一品的最爱!
特别提醒:1、指标,永远只是参考;决策,还是需要人脑!----理解了理念,无需指标,你也一样掌握了技巧!
2、热点板块+趋势良好+初期放量上涨=牛股启动买点,送给大家结合【四区主图】思考。
 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. {四区主图----创幻论坛一品茶缘编写,大智慧L2版本主图指标}   
  2. MA5:MA(CLOSE,5),COLORFFFFFF,PRECIS2,LAYER0;   
  3. MA10:MA(CLOSE,10),COLOR00FFFF,PRECIS2,LAYER0;   
  4. MA20:MA(C,20),COLORFF00FF,PRECIS2,LAYER0;   
  5. W:=BARSLAST(DISPSTATUS=1);   
  6. P:=BACKSET(DISPSTATUS=2,W/2+1);   
  7. K:=BARSLAST(CROSS(P,0.5));   
  8. KJ:=HHVALL(HIGH)-LLVALL(LOW);   
  9. VERTLINE(CROSS(P,0.5),4),COLOR00FFFF;   
  10. 平衡:LLVALL(LOW)+KJ/2,COLOR00FFFF,DOTLINE,PRECIS2;   
  11. FILLRGN(平衡,HHVALL(HIGH),W>K,RGB(0,0,200)),PRECIS2;{该行设置背景色}   
  12. 压力:IF(K>=0,HHVALL(HIGH)-KJ*0.191,平衡),COLORFF00FF,DOTLINE,PRECIS2;   
  13. 支撑:IF(K>=0,LLVALL(LOW)+KJ*0.191,平衡),COLOR00FF00,DOTLINE,PRECIS2;   
  14. 低吸:K>=0 and CROSS(平衡,LOW),COLORFF8899,LINETHICK0,PRECIS2;   
  15. 低涨:(C/LLV(LOW,W)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;   
  16. 天:BARSLAST(L=LLV(LOW,W)),COLOR00FFFF,LINETHICK0,PRECIS0;   
  17. DRAWTEXT(HIGH=HHVALL(HIGH) and K>=0,HIGH*1.01,'←'+NUMTOSTRN(HIGH,2)),COLORFFFFFF;   
  18. DRAWICON(低吸,LOW,6);   
  19. {以下设置提示文字部分}   
  20. DRAWTEXT(DISPSTATUS=2,压力,'0.809'),COLOR0000FF,ALIGN0;   
  21. DRAWTEXT(DISPSTATUS=2,平衡,'0.500'),COLORFFFFFF,ALIGN0;   
  22. DRAWTEXT(DISPSTATUS=2,支撑,'0.191'),COLOR00FFFF,ALIGN0;   
  23. DRAWTEXT(K=0,HHVALL(HIGH)-KJ/12,'★强势区域--急拉减仓!'),COLOR00FFFF,ALIGN1;   
  24. DRAWTEXT(K=0,HHVALL(HIGH)-KJ/3,'●震荡整理--寻机低吸!'),COLOR00FF00,ALIGN1;   
  25. DRAWTEXT(K=0,LLVALL(LOW)+KJ/3,'◆反弹中轨--逢高休息!'),COLORFFFFFF,ALIGN1;   
  26. DRAWTEXT(K=0,LLVALL(LOW)+KJ/10,'■弱势区域--暂不参与!'),COLORFFFF00,ALIGN1;   
  27. {以下设置个股信息}   
  28. DRAWTEXTREL(10,50,'所属板块:'+BKNAME),COLORFFFFFF;   
  29. DRAWTEXTREL(10,120,'股票名称:'+'【'+STKLABEL+' '+STKNAME+'】'),COLOR00FF00;   
  30. DD:=FINANCE2(35);SS:=FINANCE2(37);   
  31. DRAWTEXTREL(10,190,'总股本:'+NUMTOSTRN(DD,0)+'万' +'  流通A股:'+NUMTOSTRN(SS,0)+'万'),COLOR00FFFF;   
  32. DRAWTEXTREL(10,300,'■低点至今上涨:'+NUMTOSTRN(低涨,2)+'%  '+NUMTOSTRN(天,0)+'天'),COLOR0000FF;   
  33. DRAWTEXTREL(10,360,'■目前可见K线:'+NUMTOSTRN(W+1,0)+'天'),COLOR00FF00;   
  34. DRAWTEXTREL(10,420,'■建议查阅K线:短线30天,中长线120天!'),COLORFF8899;   
  35. DRAWTEXTREL(10,920,'====【创幻论坛の一品茶缘】===='),COLOR889999;   
  36. {以下设置五彩立体K线}   
  37. STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;   
  38. STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),OPEN,CLOSE,7,0),colorred;   
  39. STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan;   
  40. STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),OPEN,CLOSE,7,0),colorcyan;   
  41. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;    
  42. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800;   
  43. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;   
  44. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;   
  45. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;   
  46. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;   
  47. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;   
  48. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;   
  49. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;   
  50. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;   
  51. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;    
  52. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;   
  53. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;   
  54. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;   
  55. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;    
  56. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;   
  57. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;   
  58. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;  

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. {四区主图----创幻论坛一品茶缘编写,飞狐版本主图指标}   
  2. W:=BARSLAST(barpos=sysparam(2));   
  3. P:=BACKSET(barpos=sysparam(3),W/2+1);   
  4. K:=BARSLAST(CROSS(P,0.5));   
  5. KJ:=SYSPARAM(4)-SYSPARAM(5);   
  6. 平衡:SYSPARAM(5)+KJ/2,COLOR00FFFF,LINEDOT;   
  7. FILLRGN(W>K,平衡,SYSPARAM(4)),COLORFF0000;{该行设置背景色}   
  8. VERTLINE(CROSS(P,0.5)),COLOR00FFFF,LINEDASHDOT;   
  9. 压力:IF(K>=0,SYSPARAM(4)-KJ*0.191,平衡),COLORFF00FF,LINEDOT;   
  10. 支撑:IF(K>=0,SYSPARAM(5)+KJ*0.191,平衡),COLOR00FF00,LINEDOT;   
  11. 低吸:K>=0 and CROSS(平衡,LOW),COLORFF8899,LINETHICK0;   
  12. 低涨:(C/LLV(LOW,W)-1)*100,COLOR0000FF,LINETHICK0;   
  13. 天:BARSLAST(L=LLV(LOW,W)),COLOR00FFFF,LINETHICK0;   
  14. DRAWTEXT(HIGH=SYSPARAM(4) and K>=0,HIGH*1.01,'←'+NUMTOSTR(HIGH,2)),COLORFFFFFF;   
  15. DRAWICON(低吸,LOW,6);   
  16. {以下设置提示文字部分}   
  17. DRAWTEXT(barpos=sysparam(3),压力,'0.809'),COLOR0000FF,ALIGN1;   
  18. DRAWTEXT(barpos=sysparam(3),平衡,'0.500'),COLORFFFFFF,ALIGN1;   
  19. DRAWTEXT(barpos=sysparam(3),支撑,'0.191'),COLOR00FFFF,ALIGN1;   
  20. DRAWTEXT(K=0,SYSPARAM(4)-KJ/12,'★强势区域--急拉减仓!'),COLOR00FFFF,ALIGN0;   
  21. DRAWTEXT(K=0,SYSPARAM(4)-KJ/3,'●震荡整理--寻机低吸!'),COLOR00FF00,ALIGN0;   
  22. DRAWTEXT(K=0,SYSPARAM(5)+KJ/3,'◆反弹中轨--逢高休息!'),COLORFFFFFF,ALIGN0;   
  23. DRAWTEXT(K=0,SYSPARAM(5)+KJ/10,'■弱势区域--暂不参与!'),COLORFFFF00,ALIGN0;   
  24. {以下设置个股信息}   
  25. DRAWTEXTEX(C>0,1,10,50,'所属板块:'+BLKNAME),COLORFFFFFF;   
  26. DRAWTEXTEX(C>0,1,10,120,'股票名称:'+'【'+STKLABEL+' '+STKNAME+'】'),COLOR00FF00;   
  27. DD:=FINANCE(1);SS:=FINANCE(7);   
  28. DRAWTEXTEX(C>0,1,10,190,'总股本:'+NUMTOSTR(DD,0)+'万' +'  流通A股:'+NUMTOSTR(SS,0)+'万'),COLOR00FFFF;   
  29. DRAWTEXTEX(C>0,1,10,300,'■低点至今上涨:'+NUMTOSTR(低涨,2)+'%  '+NUMTOSTR(天,0)+'天'),COLOR0000FF;   
  30. W1:=IF(barpos=sysparam(3),W+1,0);   
  31. DRAWTEXTEX(C>0,1,10,360,'■目前可见K线:'+NUMTOSTR(HHV(W1,W),0)+'天'),COLOR00FF00;   
  32. DRAWTEXTEX(C>0,1,10,420,'■建议查阅K线:短线30天,中长线120天!'),COLORFF8899;   
  33. DRAWTEXTEX(C>0,1,10,920,'====【创幻论坛の一品茶缘】===='),COLOR889999;   
  34.   
  35. {以下设置五彩立体K线}   
  36. STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;   
  37. STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),OPEN,CLOSE,7,0),colorred;   
  38. STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan;   
  39. STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),OPEN,CLOSE,7,0),colorcyan;   
  40. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;    
  41. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800;   
  42. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;   
  43. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;   
  44. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;   
  45. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;   
  46. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;   
  47. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;   
  48. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;   
  49. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;   
  50. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;    
  51. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;   
  52. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;   
  53. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;   
  54. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;    
  55. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;   
  56. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;   
  57. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;   
  58. MA5:MA(CLOSE,5),COLORFFFFFF;   
  59. MA10:MA(CLOSE,10),COLOR00FFFF;   
  60. MA20:MA(C,20),COLORFF00FF;  

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. {四区主图----创幻论坛一品茶缘编写,通达信版本主图指标}   
  2. {INPUT:N(120,1,250);}   
  3. K:=BARSLAST(CURRBARSCOUNT=N);   
  4. GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));   
  5. DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));   
  6. KJ:=GD-DD;   
  7. GD4:=IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL);   
  8. DRAWBAND(GD4,RGB(0,0,250),DD+KJ/2,RGB(0,0,0));{该行设置背景色}   
  9. 平衡:IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLOR00FFFF,NODRAW;   
  10. 压力:IF(CURRBARSCOUNT<=N,GD-KJ*0.191,DRAWNULL),COLORFF00FF,NODRAW;   
  11. 支撑:IF(CURRBARSCOUNT<=N,DD+KJ*0.191,DRAWNULL),COLOR00FF00,NODRAW;   
  12. 低吸:IF(CURRBARSCOUNT<=N/2 AND CROSS(平衡,LOW),1,DRAWNULL),COLORFF8899,NODRAW;   
  13. 低涨:IF(CURRBARSCOUNT<=N,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;   
  14. 天:BARSLAST(L=DD),COLOR00FFFF,NODRAW;   
  15. MA5:MA(CLOSE,5),COLORFFFFFF;   
  16. MA10:MA(CLOSE,10),COLOR00FFFF;   
  17. MA20:MA(C,20),COLORFF00FF;   
  18. 高:IF(CURRBARSCOUNT<=N,GD,DRAWNULL),COLOR00FFFF,POINTDOT;   
  19. 低:IF(CURRBARSCOUNT<=N,DD,DRAWNULL),COLOR00FF00,POINTDOT;   
  20. {以下设置主图显示方式}   
  21. STICKLINE(CURRBARSCOUNT=N,GD,DD,0,-1),COLORGREEN;   
  22. STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,-1),COLORGREEN;   
  23. STICKLINE(CURRBARSCOUNT=1,GD,DD,0,-1),COLORGREEN;   
  24. STICKLINE(CURRBARSCOUNT<=N,平衡,平衡,3,-1),COLORWHITE;   
  25. STICKLINE(CURRBARSCOUNT<=N/2,压力,压力,3,-1),COLORRED;   
  26. STICKLINE(CURRBARSCOUNT<=N/2,支撑,支撑,3,-1),COLORGREEN;   
  27. DRAWKLINE(HIGH,OPEN,LOW,CLOSE);   
  28. DRAWICON(低吸,LOW,13);   
  29. {以下设置提示文字部分}   
  30. DRAWTEXT(CURRBARSCOUNT=1,压力,'0.809'),COLOR0000FF;   
  31. DRAWTEXT(CURRBARSCOUNT=1,平衡,'0.500'),COLORFFFFFF;   
  32. DRAWTEXT(CURRBARSCOUNT=1,支撑,'0.191'),COLOR00FFFF;   
  33. DRAWTEXT(CURRBARSCOUNT=N/2+9,GD-KJ/12,'★强势区域--急拉减仓!'),COLOR00FFFF;   
  34. DRAWTEXT(CURRBARSCOUNT=N/2+9,GD-KJ/3,'●震荡整理--寻机低吸!'),COLOR00FF00;   
  35. DRAWTEXT(CURRBARSCOUNT=N/2+9,DD+KJ/3,'◆反弹中轨--逢高休息!'),COLORFFFFFF;   
  36. DRAWTEXT(CURRBARSCOUNT=N/2+9,DD+KJ/10,'■弱势区域--暂不参与!'),COLORFFFF00;   
  37. DRAWTEXT(CURRBARSCOUNT=N,GD-KJ/12,'■目前K线天数:请看参数!'),COLOR0000FF;   
  38. DRAWTEXT(CURRBARSCOUNT=N,压力,'■建议查阅K线:短线30天,中长线120天!'),COLORFF8899;   
  39. DRAWTEXT(CURRBARSCOUNT=N,DD+KJ/10,'====【创幻论坛の一品茶缘】===='),COLOR889999;  

图片参考(飞狐版本)
 

图片参考(大智慧L2版本)



关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - RSS订阅 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © 铭网科技,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识