您現在的位置:程序化交易>> 股票公式>> 同花順>> 同花順公式>>正文內容

行業板塊漲幅公式源碼[同花順公式]

相關標簽: 通達信 漲幅板塊 源碼 、 n日漲幅統計指標源碼 、 家長云私密版塊 、 默認版塊 、 版塊 、 杭州19樓女性閱讀版塊 、 環球摔迷網 音樂版塊 、 九游9game n 單機版塊 、 創富論壇默認版塊 、

 

 

首先建立一個“漲幅引用”的引用公式后再建立“版塊漲幅”
-----------------------------------------------------


//公式名稱“漲幅引用” 這個名稱不能有任何改動  源碼//


A:動態行情(14);
AA:(收盤價/向前引用(收盤價,1)-1)*100;


 

//★版塊漲幅★ 源碼//


DRAWTEXTEX(STKINDI('1A0001','漲幅引用.A',0,-1)>0,1,0,0,'上證漲幅:'+NUMTOSTR(STKINDI('1A0001','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('1A0001','漲幅引用.A',0,-1)<0,1,0,0,'上證漲幅:'+NUMTOSTR(STKINDI('1A0001','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA01','漲幅引用.A',0,-1)>=0,1,0,150,'工程建筑:'+NUMTOSTR(STKINDI('AA01','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA01','漲幅引用.A',0,-1)<0,1,0,150,'工程建筑:'+NUMTOSTR(STKINDI('AA01','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA02','漲幅引用.A',0,-1)>=0,1,0,300,'電力指數:'+NUMTOSTR(STKINDI('AA02','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA02','漲幅引用.A',0,-1)<0,1,0,300,'電力指數:'+NUMTOSTR(STKINDI('AA02','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA03','漲幅引用.A',0,-1)>=0,1,0,450,'計算機類:'+NUMTOSTR(STKINDI('AA03','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA03','漲幅引用.A',0,-1)<0,1,0,450,'計算機類:'+NUMTOSTR(STKINDI('AA03','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA04','漲幅引用.A',0,-1)>=0,1,0,600,'電子信息:'+NUMTOSTR(STKINDI('AA04','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA04','漲幅引用.A',0,-1)<0,1,0,600,'電子信息:'+NUMTOSTR(STKINDI('AA04','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA05','漲幅引用.A',0,-1)>=0,1,0,750,'地產指數:'+NUMTOSTR(STKINDI('AA05','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA05','漲幅引用.A',0,-1)<0,1,0,750,'地產指數:'+NUMTOSTR(STKINDI('AA05','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA06','漲幅引用.A',0,-1)>=0,1,0,900,'紡織服裝:'+NUMTOSTR(STKINDI('AA06','漲幅引用.A',0,-1)*100,2)+'%'),Colorred; //本文來至CXH99.COM//
DRAWTEXTEX(STKINDI('AA06','漲幅引用.A',0,-1)<0,1,0,900,'紡織服裝:'+NUMTOSTR(STKINDI('AA06','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA07','漲幅引用.A',0,-1)>=0,1,200,0,'鋼鐵指數:'+NUMTOSTR(STKINDI('AA07','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA07','漲幅引用.A',0,-1)<0,1,200,0,'鋼鐵指數:'+NUMTOSTR(STKINDI('AA07','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA08','漲幅引用.A',0,-1)>=0,1,200,150,'供水供氣:'+NUMTOSTR(STKINDI('AA08','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA08','漲幅引用.A',0,-1)<0,1,200,150,'供水供氣:'+NUMTOSTR(STKINDI('AA08','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA09','漲幅引用.A',0,-1)>=0,1,200,300,'化工化纖:'+NUMTOSTR(STKINDI('AA09','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA09','漲幅引用.A',0,-1)<0,1,200,300,'化工化纖:'+NUMTOSTR(STKINDI('AA09','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA10','漲幅引用.A',0,-1)>=0,1,200,450,'電器指數:'+NUMTOSTR(STKINDI('AA10','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA10','漲幅引用.A',0,-1)<0,1,200,450,'電器指數:'+NUMTOSTR(STKINDI('AA10','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA11','漲幅引用.A',0,-1)>=0,1,200,600,'銀行金融:'+NUMTOSTR(STKINDI('AA11','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA11','漲幅引用.A',0,-1)<0,1,200,600,'銀行金融:'+NUMTOSTR(STKINDI('AA11','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA12','漲幅引用.A',0,-1)>=0,1,200,750,'煤炭石油:'+NUMTOSTR(STKINDI('AA12','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA12','漲幅引用.A',0,-1)<0,1,200,750,'煤炭石油:'+NUMTOSTR(STKINDI('AA12','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA13','漲幅引用.A',0,-1)>=0,1,200,900,'釀酒食品:'+NUMTOSTR(STKINDI('AA13','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA13','漲幅引用.A',0,-1)<0,1,200,900,'釀酒食品:'+NUMTOSTR(STKINDI('AA13','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA14','漲幅引用.A',0,-1)>=0,1,400,0,'農林牧漁:'+NUMTOSTR(STKINDI('AA14','漲幅引用.A',0,-1)*100,2)+'%'),Colorred; //本文來至CXH99.COM//
DRAWTEXTEX(STKINDI('AA14','漲幅引用.A',0,-1)<0,1,400,0,'農林牧漁:'+NUMTOSTR(STKINDI('AA14','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA15','漲幅引用.A',0,-1)>=0,1,400,150,'商業連鎖:'+NUMTOSTR(STKINDI('AA15','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA15','漲幅引用.A',0,-1)<0,1,400,150,'商業連鎖:'+NUMTOSTR(STKINDI('AA15','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA16','漲幅引用.A',0,-1)>=0,1,400,300,'建筑材料:'+NUMTOSTR(STKINDI('AA16','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA16','漲幅引用.A',0,-1)<0,1,400,300,'建筑材料:'+NUMTOSTR(STKINDI('AA16','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA17','漲幅引用.A',0,-1)>=0,1,400,450,'其它行業:'+NUMTOSTR(STKINDI('AA17','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA17','漲幅引用.A',0,-1)<0,1,400,450,'其它行業:'+NUMTOSTR(STKINDI('AA17','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA18','漲幅引用.A',0,-1)>=0,1,400,600,'汽車配件:'+NUMTOSTR(STKINDI('AA18','漲幅引用.A',0,-1)*100,2)+'%'),Colorred; //本文來至程序化交易網 cxh99.com//
DRAWTEXTEX(STKINDI('AA18','漲幅引用.A',0,-1)<0,1,400,600,'汽車配件:'+NUMTOSTR(STKINDI('AA18','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA19','漲幅引用.A',0,-1)>=0,1,400,750,'機械指數:'+NUMTOSTR(STKINDI('AA19','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA19','漲幅引用.A',0,-1)<0,1,400,750,'機械指數:'+NUMTOSTR(STKINDI('AA19','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA20','漲幅引用.A',0,-1)>=0,1,400,900,'醫藥指數:'+NUMTOSTR(STKINDI('AA20','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA20','漲幅引用.A',0,-1)<0,1,400,900,'醫藥指數:'+NUMTOSTR(STKINDI('AA20','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA21','漲幅引用.A',0,-1)>=0,1,600,0,'外貿指數:'+NUMTOSTR(STKINDI('AA21','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA21','漲幅引用.A',0,-1)<0,1,600,0,'外貿指數:'+NUMTOSTR(STKINDI('AA21','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA22','漲幅引用.A',0,-1)>=0,1,600,150,'教育傳媒:'+NUMTOSTR(STKINDI('AA22','漲幅引用.A',0,-1)*100,2)+'%'),Colorred; //本文來至程序化交易網 cxh99.com//
DRAWTEXTEX(STKINDI('AA22','漲幅引用.A',0,-1)<0,1,600,150,'教育傳媒:'+NUMTOSTR(STKINDI('AA22','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA23','漲幅引用.A',0,-1)>=0,1,600,300,'儀電儀表:'+NUMTOSTR(STKINDI('AA23','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA23','漲幅引用.A',0,-1)<0,1,600,300,'儀電儀表:'+NUMTOSTR(STKINDI('AA23','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA24','漲幅引用.A',0,-1)>=0,1,600,450,'有色金屬:'+NUMTOSTR(STKINDI('AA24','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA24','漲幅引用.A',0,-1)<0,1,600,450,'有色金屬:'+NUMTOSTR(STKINDI('AA24','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA25','漲幅引用.A',0,-1)>=0,1,600,600,'造紙印刷:'+NUMTOSTR(STKINDI('AA25','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA25','漲幅引用.A',0,-1)<0,1,600,600,'造紙印刷:'+NUMTOSTR(STKINDI('AA25','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA26','漲幅引用.A',0,-1)>=0,1,600,750,'券商指數:'+NUMTOSTR(STKINDI('AA26','漲幅引用.A',0,-1)*100,2)+'%'),Colorred; //內容來至程序化交易網 CXH99.COM//
DRAWTEXTEX(STKINDI('AA26','漲幅引用.A',0,-1)<0,1,600,750,'券商指數:'+NUMTOSTR(STKINDI('AA26','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA27','漲幅引用.A',0,-1)>=0,1,600,900,'電力設備:'+NUMTOSTR(STKINDI('AA27','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA27','漲幅引用.A',0,-1)<0,1,600,900,'電力設備:'+NUMTOSTR(STKINDI('AA27','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA28','漲幅引用.A',0,-1)>=0,1,800,0,'通信指數:'+NUMTOSTR(STKINDI('AA28','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA28','漲幅引用.A',0,-1)<0,1,800,0,'通信指數:'+NUMTOSTR(STKINDI('AA28','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA29','漲幅引用.A',0,-1)>=0,1,800,150,'運輸物流:'+NUMTOSTR(STKINDI('AA29','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA29','漲幅引用.A',0,-1)<0,1,800,150,'運輸物流:'+NUMTOSTR(STKINDI('AA29','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA30','漲幅引用.A',0,-1)>=0,1,800,300,'交通設施:'+NUMTOSTR(STKINDI('AA30','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA30','漲幅引用.A',0,-1)<0,1,800,300,'交通設施:'+NUMTOSTR(STKINDI('AA30','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA31','漲幅引用.A',0,-1)>=0,1,800,450,'旅游酒店:'+NUMTOSTR(STKINDI('AA31','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA31','漲幅引用.A',0,-1)<0,1,800,450,'旅游酒店:'+NUMTOSTR(STKINDI('AA31','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA33','漲幅引用.A',0,-1)>=0,1,800,600,'創投概念:'+NUMTOSTR(STKINDI('AA33','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA33','漲幅引用.A',0,-1)<0,1,800,600,'創投概念:'+NUMTOSTR(STKINDI('AA33','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA37','漲幅引用.A',0,-1)>=0,1,800,750,'環保產業:'+NUMTOSTR(STKINDI('AA37','漲幅引用.A',0,-1)*100,2)+'%'),Colorred;
DRAWTEXTEX(STKINDI('AA37','漲幅引用.A',0,-1)<0,1,800,750,'環保產業:'+NUMTOSTR(STKINDI('AA37','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY;
DRAWTEXTEX(STKINDI('AA38','漲幅引用.A',0,-1)>=0,1,800,900,'外資并購:'+NUMTOSTR(STKINDI('AA38','漲幅引用.A',0,-1)*100,2)+'%'),Colorred; //內容來至程序化交易網 CXH99.COM//
DRAWTEXTEX(STKINDI('AA38','漲幅引用.A',0,-1)<0,1,800,900,'外資并購:'+NUMTOSTR(STKINDI('AA38','漲幅引用.A',0,-1)*100,2)+'%'),COLORGRAY; //本文來至程序化交易網 cxh99.com//

 

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 262069696  點擊在線交流進行 有償 編寫!不貴!點擊查看價格!

 


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
  主站蜘蛛池模板: 足恋玩丝袜脚视频免费网站| 一级做a爰片久久毛片唾| 特黄一级**毛片| 国产乱弄免费视频| 91免费国产在线观看| 成人国产精品免费视频| 九月婷婷人人澡人人添人人爽 | 好男人手机在线| 久久婷婷人人澡人人爱91 | 波多野结衣被绝伦在线观看| 国产suv精品一区二区883| 日本免费xxxx| 国外欧美一区另类中文字幕| 三级国产女主播在线观看| 日韩在线一区二区三区免费视频 | 国产成人精品综合久久久| 99国产在线视频| 成人无号精品一区二区三区| 久久青草免费91线频观看站街| 毛片基地在线观看| 全彩福利本子h全彩在线观看| 青草青草视频2免费观看| 国产精品久久久久久久久久久搜索 | 国产国语一级毛片| 18禁美女裸体网站无遮挡| 奇米视频888| 中文字幕乱视频| 日韩不卡视频在线观看| 亚洲国产理论片在线播放| 男人和女人在床做黄的网站| 噜噜影院无毒不卡| 韩国三级在线视频| 国产特级毛片aaaaaa毛片| 91极品反差婊在线观看| 奶交性视频欧美| 中文字幕一区二区三区有限公司 | 亚洲成在人线中文字幕| 男女一级毛片免费视频看| 四虎影视在线观看永久地址| 香蕉视频一区二区三区| 国产激情视频网站|