大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人

您現在的位置:程序化交易>> 期貨公式>> 博易大師>> 博易大師知識>>正文內容

請老師幫忙增加可以顯示小數點后兩位?謝謝 [博易POBO]

咨詢內容:

請老師幫忙增加可以顯示小數點后兩位?謝謝

N:=120;
CURRBARSCOUNT:=DATACOUNT-BARPOS+1;
KT:=BARSLAST(CURRBARSCOUNT=N);
GD:=REFX(IF(ISLASTBAR=1,HHV(H,KT),0),DATACOUNT-BARPOS-1);//{高點}
DD:=REFX(IF(ISLASTBAR=1,LLV(L,KT),0),DATACOUNT-BARPOS-1);//{低點}
KJ:=GD-DD;//{高低點差值=分區高度}
GD4:=IF(CURRBARSCOUNT<=N/30+16,GD,DRAWNULL);
高:=IF(CURRBARSCOUNT<=N/30+16,GD,DRAWNULL),COLORWHITE,COLOR00FFFF,PRECIS0;
低:=IF(CURRBARSCOUNT<=N/30+16,DD,DRAWNULL),COLORWHITE,COLORFFFF00,PRECIS0;

高區:IF(CURRBARSCOUNT<=N+16,GD,DRAWNULL),COLORWHITE,DASH,COLOR004080,PRECIS0;
低區:IF(CURRBARSCOUNT<=N+16,DD,DRAWNULL),COLORWHITE,DASH,COLOR004080,PRECIS0;

壓力:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.764,DRAWNULL),COLORGREEN,COLOR00FF00,PRECIS0;
警示:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.618,DRAWNULL),COLOR00FFFF,PRECIS0;
突破:IF(CURRBARSCOUNT<=N/40+16,DD+KJ/2,DRAWNULL),COLORYELLOW,COLOR0000FF,PRECIS0;
強勢:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.382,DRAWNULL),COLORFF00FF,PRECIS0;
支撐一:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.236,DRAWNULL),COLORRED,COLOR00FFFF,PRECIS0;
支撐二:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.191,DRAWNULL),COLORRED,COLOR00FFFF,PRECIS0;
低漲:IF(CURRBARSCOUNT<=N/40+16,(C/LLV(LOW,KT)-1)*100,DRAWNULL),COLORFF8000,COLOR0000FF,NODRAW,PRECIS0;
天數:BARSLAST(L=DD),COLORWHITE,NODRAW,PRECIS0;

?//{STICKLINE1(CURRBARSCOUNT=N/30,GD,DD,0,0),COLORGREEN;
?//STICKLINE1(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN;}
?STICKLINE(CURRBARSCOUNT<=N/30,支撐一,支撐一,14,0),COLORFF00FF;
STICKLINE(CURRBARSCOUNT<=N/30,支撐二,支撐二,14,0),COLORFF00FF;
?STICKLINE(CURRBARSCOUNT<=N/30,強勢,強勢,14,0),COLORFF00FF;
?STICKLINE(CURRBARSCOUNT<=N/30,突破,突破,14,0),COLORABABAB;
?STICKLINE(CURRBARSCOUNT<=N/30,警示,警示,14,0),COLOR00FFFF;
?STICKLINE(CURRBARSCOUNT<=N/30,壓力,壓力,14,0),COLOR00FFFF;





?DRAWTEXT(CURRBARSCOUNT=N/40+16,壓力,'壓力:764'),COLORMAGENTA,FONTSIZE10,ALIGN2,VALIGN1;
?DRAWTEXT(CURRBARSCOUNT=N/40+16,警示,'警示:618'),FONTSIZE10,ALIGN2,VALIGN1;
?DRAWTEXT(CURRBARSCOUNT=N/40+16,突破,'突破:500'),FONTSIZE10,ALIGN2,VALIGN1;
?DRAWTEXT(CURRBARSCOUNT=N/40+16,強勢,'強勢:382'),FONTSIZE10,ALIGN2,VALIGN1;
DRAWTEXT(CURRBARSCOUNT=N/40+16,支撐一,'支撐一:236'),FONTSIZE10,ALIGN2,VALIGN1;
?DRAWTEXT(CURRBARSCOUNT=N/40+16,支撐二,'支撐二:191'),FONTSIZE10,ALIGN2,VALIGN1;
?DRAWTEXT(CURRBARSCOUNT=N/40+16,低,'低位:000'),FONTSIZE10,ALIGN2,VALIGN1;

?M:=BARSLAST(CURRBARSCOUNT=N);
平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLORWHITE,POINTDOT,COLOR004080,PRECIS0;
?CD:=CURRBARSCOUNT,NODRAW;
?STICKLINE(CD=46,HHV(高區,60),LLV(低區,60),10,1),COLORBLACK,COLOR004080;
?STICKLINE(CD=120,HHV(高區,60),LLV(低區,60),10,1),COLORBLUE,COLOR004080;
?STICKLINE(CD=1,HHV(高區,60),LLV(低區,60),0.10,1),COLOR000000,COLOR004080;

?DRAWNUMBER(ISLASTBAR,GD,GD,0),COLORWHITE,FONTSIZE15,ALIGN0,VALIGN1;
?DRAWNUMBER(ISLASTBAR,DD,DD,0),COLORWHITE,FONTSIZE15,ALIGN0,VALIGN1

?

?來源:程序化99網( m.weiqiv.net.cn )

博易技術人員: N:=120;
CURRBARSCOUNT:=DATACOUNT-BARPOS+1;
KT:=BARSLAST(CURRBARSCOUNT=N);
GD:=REFX(IF(ISLASTBAR=1,HHV(H,KT),0),DATACOUNT-BARPOS-1);//{高點}
DD:=REFX(IF(ISLASTBAR=1,LLV(L,KT),0),DATACOUNT-BARPOS-1);//{低點}
KJ:=GD-DD;//{高低點差值=分區高度}
GD4:=IF(CURRBARSCOUNT<=N/30+16,GD,DRAWNULL);
高:=IF(CURRBARSCOUNT<=N/30+16,GD,DRAWNULL),COLORWHITE,COLOR00FFFF,PRECIS0;
低:=IF(CURRBARSCOUNT<=N/30+16,DD,DRAWNULL),COLORWHITE,COLORFFFF00,PRECIS0;

高區:IF(CURRBARSCOUNT<=N+16,GD,DRAWNULL),COLORWHITE,DASH,COLOR004080,PRECIS0;
低區:IF(CURRBARSCOUNT<=N+16,DD,DRAWNULL),COLORWHITE,DASH,COLOR004080,PRECIS0;

壓力:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.764,DRAWNULL),COLORGREEN,COLOR00FF00,PRECIS0;
警示:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.618,DRAWNULL),COLOR00FFFF,PRECIS0;
突破:IF(CURRBARSCOUNT<=N/40+16,DD+KJ/2,DRAWNULL),COLORYELLOW,COLOR0000FF,PRECIS0;
強勢:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.382,DRAWNULL),COLORFF00FF,PRECIS0;
支撐一:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.236,DRAWNULL),COLORRED,COLOR00FFFF,PRECIS0;
支撐二:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.191,DRAWNULL),COLORRED,COLOR00FFFF,PRECIS0;
低漲:IF(CURRBARSCOUNT<=N/40+16,(C/LLV(LOW,KT)-1)*100,DRAWNULL),COLORFF8000,COLOR0000FF,NODRAW,PRECIS0;
天數:BARSLAST(L=DD),COLORWHITE,NODRAW,PRECIS0;

?//{STICKLINE1(CURRBARSCOUNT=N/30,GD,DD,0,0),COLORGREEN;
?//STICKLINE1(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN;}
?STICKLINE(CURRBARSCOUNT<=N/30,支撐一,支撐一,14,0),COLORFF00FF;
STICKLINE(CURRBARSCOUNT<=N/30,支撐二,支撐二,14,0),COLORFF00FF;
?STICKLINE(CURRBARSCOUNT<=N/30,強勢,強勢,14,0),COLORFF00FF;
?STICKLINE(CURRBARSCOUNT<=N/30,突破,突破,14,0),COLORABABAB;
?STICKLINE(CURRBARSCOUNT<=N/30,警示,警示,14,0),COLOR00FFFF;
?STICKLINE(CURRBARSCOUNT<=N/30,壓力,壓力,14,0),COLOR00FFFF;





?DRAWTEXT(CURRBARSCOUNT=N/40+16,壓力,'壓力:764'),COLORMAGENTA,FONTSIZE10,ALIGN2,VALIGN1;
?DRAWTEXT(CURRBARSCOUNT=N/40+16,警示,'警示:618'),FONTSIZE10,ALIGN2,VALIGN1;
?DRAWTEXT(CURRBARSCOUNT=N/40+16,突破,'突破:500'),FONTSIZE10,ALIGN2,VALIGN1;
?DRAWTEXT(CURRBARSCOUNT=N/40+16,強勢,'強勢:382'),FONTSIZE10,ALIGN2,VALIGN1;
DRAWTEXT(CURRBARSCOUNT=N/40+16,支撐一,'支撐一:236'),FONTSIZE10,ALIGN2,VALIGN1;
?DRAWTEXT(CURRBARSCOUNT=N/40+16,支撐二,'支撐二:191'),FONTSIZE10,ALIGN2,VALIGN1;
?DRAWTEXT(CURRBARSCOUNT=N/40+16,低,'低位:000'),FONTSIZE10,ALIGN2,VALIGN1;

?M:=BARSLAST(CURRBARSCOUNT=N);
平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLORWHITE,POINTDOT,COLOR004080,PRECIS0;
?CD:=CURRBARSCOUNT,NODRAW;
?STICKLINE(CD=46,HHV(高區,60),LLV(低區,60),10,1),COLORBLACK,COLOR004080;
?STICKLINE(CD=120,HHV(高區,60),LLV(低區,60),10,1),COLORBLUE,COLOR004080;
?STICKLINE(CD=1,HHV(高區,60),LLV(低區,60),0.10,1),COLOR000000,COLOR004080;

?DRAWNUMBER(ISLASTBAR,GD,GD,2),COLORWHITE,FONTSIZE15,ALIGN0,VALIGN1;
?DRAWNUMBER(ISLASTBAR,DD,DD,2),COLORWHITE,FONTSIZE15,ALIGN0,VALIGN1 老師,再煩請將以下幾個可以顯示小數點后兩位?謝謝!
?
?
壓力:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.764,DRAWNULL),COLORGREEN,COLOR00FF00,PRECIS0;
警示:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.618,DRAWNULL),COLOR00FFFF,PRECIS0;
突破:IF(CURRBARSCOUNT<=N/40+16,DD+KJ/2,DRAWNULL),COLORYELLOW,COLOR0000FF,PRECIS0;
強勢:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.382,DRAWNULL),COLORFF00FF,PRECIS0;
支撐一:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.236,DRAWNULL),COLORRED,COLOR00FFFF,PRECIS0;
支撐二:IF(CURRBARSCOUNT<=N/40+16,DD+KJ*0.191,DRAWNULL),COLORRED,COLOR00FFFF,PRECIS0; 來源 程序化久久網

 

有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友

可聯系技術人員 QQ: 262069696  點擊在線交流或微信號:cxh99cxh99  進行 有償收費 編寫!

怎么收費,代編流程等詳情請點擊閱讀!

(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 国产一级一级一级成人毛片 | 亚洲国产欧洲精品路线久久 | 成人看片免费无限观看视频 | 国产一级特黄a大片免费 | 精品午夜寂寞影院在线观看 | 中文字幕在线看日本大片 | 九九色视频 | 色国产精品一区在线观看 | 极品美女一级毛片 | 毛片在线观看视频 | 国产成人亚洲精品77 | 国产免费私人影院永久免费 | 色综合久久天天综合绕观看 | 中文字幕一区二区三 | 久久er国产精品免费观看1 | 日本在线观看永久免费网站 | 国产激情视频一区二区三区 | 中文字幕在线免费观看 | 99资源在线观看 | 天天干天天操天天爱 | 精品久久久久久久久久香蕉 | 精品中文字幕久久久久久 | 欧美日韩成人高清色视频 | 国产成人综合网在线观看 | 国产精品久久久久a影院 | 新香蕉视频在线 | 天天干干干干 | 在线亚洲欧美性天天影院 | 久久www免费人成看片色多多 | 婷婷色在线 | 国产精品亚洲专一区二区三区 | 91日本视频 | 日本高清专区一区二无线 | 特级一级黄色片 | 国产在线精品一区二区高清不卡 | 久久青草18免费观看网站 | 国产在线视频不卡 | 亚洲另类图 | 国产色av| 日本一级特黄毛片免费视频 | 日日拍夜夜嗷嗷叫狠狠 |