麻煩老師重新編寫一下,不要把K線圖上下壓縮成小圖。謝謝老師 [博易POBO]
咨询内容:
麻煩老師重新編寫一下,不要把K線圖上下壓縮成小圖。謝謝老師
A:=BACKSET(ISLASTBAR,DAYBARPOS);
REFX1(C,9999),DOT;
DRAWSL(ISLASTBAR,C,0,999,0,COLORWHITE),DOT;
VERTLINE1(DAYBARPOS=1&&A),DOT,RGB(75,75,75);//日分隔缐,RGB(98,98,98),RGB(98,98,98)
DRAWSL(ISLASTBAR,REF(O,DAYBARPOS-1),0,-DAYBARPOS+1,0,RGB(192,192,192));//開盤價,RGB(192,192,192)
DRAWSL(ISLASTBAR,C,0,-DAYBARPOS+1,0,RGB(255,255,0)),DOT;//即時價
DRAWSL(ISLASTBAR,HHV(H,DAYBARPOS),0,-DAYBARPOS+1,0,RGB(255,0,0));//最高價
DRAWSL(ISLASTBAR,LLV(L,DAYBARPOS),0,-DAYBARPOS+1,0,RGB(0,255,0));//最低價
DRAWSL1(ISLASTBAR,(HHV(H,DAYBARPOS)+LLV(L,DAYBARPOS))/2,0,DAYBARPOS-1,1),DOT,RGB(128,128,255);//均價
DRAWNUMBER1(ISLASTBAR,REF(O,DAYBARPOS-1),REF(O,DAYBARPOS-1),2),ALIGN0,VALIGN0;
DRAWNUMBER1(ISLASTBAR,C,C,2),ALIGN0,VALIGN0,RGB(255,255,0);//即時價
DRAWNUMBER1(ISLASTBAR,HHV(H,DAYBARPOS),HHV(H,DAYBARPOS),2),ALIGN0,VALIGN0,RGB(255,0,0);//最高價
DRAWNUMBER1(ISLASTBAR,LLV(L,DAYBARPOS),LLV(L,DAYBARPOS),2),ALIGN0,VALIGN0,RGB(0,255,0);//最低價
DRAWNUMBER1(ISLASTBAR,(HHV(H,DAYBARPOS)+LLV(L,DAYBARPOS))/2,(HHV(H,DAYBARPOS)+LLV(L,DAYBARPOS))/2,1),ALIGN0,VALIGN1,RGB(128,128,255);//均價
A:=BACKSET(ISLASTBAR,DAYBARPOS);
REFX(C,9999),POINTDOT;
DRAWSL(ISLASTBAR,C,0,999,0),COLORWHITE,POINTDOT;
VERTLINE(DAYBARPOS=1&&A,1);//日分隔缐,RGB(98,98,98),RGB(98,98,98)
DRAWSL(ISLASTBAR,REF(O,DAYBARPOS-1),0,DAYBARPOS,1),COLORC0C0C0;//開盤價,RGB(192,192,192)
DRAWSL(ISLASTBAR,C,0,DAYBARPOS,1),COLOR00FFFF;//即時價
DRAWSL(ISLASTBAR,HHV(H,DAYBARPOS),0,DAYBARPOS,1),COLOR0000FF;//最高價
DRAWSL(ISLASTBAR,LLV(L,DAYBARPOS),0,DAYBARPOS,1),COLOR00FF00;//最低價
DRAWSL(ISLASTBAR,(HHV(H,DAYBARPOS)+LLV(L,DAYBARPOS))/2,0,DAYBARPOS,1),COLORFF8080;//均價
DRAWNUMBER(ISLASTBAR,REF(O,DAYBARPOS-1),REF(O,DAYBARPOS-1),2),ALIGN0,VALIGN0;
DRAWNUMBER(ISLASTBAR,C,C,2),ALIGN0,VALIGN0,COLORC0C0C0;//即時價
DRAWNUMBER(ISLASTBAR,HHV(H,DAYBARPOS),HHV(H,DAYBARPOS),2),ALIGN0,VALIGN0,COLOR00FFFF;//最高價
DRAWNUMBER(ISLASTBAR,LLV(L,DAYBARPOS),LLV(L,DAYBARPOS),2),ALIGN0,VALIGN0,COLOR00FF00;//最低價
DRAWNUMBER(ISLASTBAR,(HHV(H,DAYBARPOS)+LLV(L,DAYBARPOS))/2,(HHV(H,DAYBARPOS)+LLV(L,DAYBARPOS))/2,1),ALIGN0,VALIGN1,COLORFF8080;//均價 来源 程序化久久网
麻煩老師重新編寫一下,不要把K線圖上下壓縮成小圖。謝謝老師
麻煩老師重新編寫一下,不要把K線圖上下壓縮成小圖。謝謝老師
A:=BACKSET(ISLASTBAR,DAYBARPOS);
REFX1(C,9999),DOT;
DRAWSL(ISLASTBAR,C,0,999,0,COLORWHITE),DOT;
VERTLINE1(DAYBARPOS=1&&A),DOT,RGB(75,75,75);//日分隔缐,RGB(98,98,98),RGB(98,98,98)
DRAWSL(ISLASTBAR,REF(O,DAYBARPOS-1),0,-DAYBARPOS+1,0,RGB(192,192,192));//開盤價,RGB(192,192,192)
DRAWSL(ISLASTBAR,C,0,-DAYBARPOS+1,0,RGB(255,255,0)),DOT;//即時價
DRAWSL(ISLASTBAR,HHV(H,DAYBARPOS),0,-DAYBARPOS+1,0,RGB(255,0,0));//最高價
DRAWSL(ISLASTBAR,LLV(L,DAYBARPOS),0,-DAYBARPOS+1,0,RGB(0,255,0));//最低價
DRAWSL1(ISLASTBAR,(HHV(H,DAYBARPOS)+LLV(L,DAYBARPOS))/2,0,DAYBARPOS-1,1),DOT,RGB(128,128,255);//均價
DRAWNUMBER1(ISLASTBAR,REF(O,DAYBARPOS-1),REF(O,DAYBARPOS-1),2),ALIGN0,VALIGN0;
DRAWNUMBER1(ISLASTBAR,C,C,2),ALIGN0,VALIGN0,RGB(255,255,0);//即時價
DRAWNUMBER1(ISLASTBAR,HHV(H,DAYBARPOS),HHV(H,DAYBARPOS),2),ALIGN0,VALIGN0,RGB(255,0,0);//最高價
DRAWNUMBER1(ISLASTBAR,LLV(L,DAYBARPOS),LLV(L,DAYBARPOS),2),ALIGN0,VALIGN0,RGB(0,255,0);//最低價
DRAWNUMBER1(ISLASTBAR,(HHV(H,DAYBARPOS)+LLV(L,DAYBARPOS))/2,(HHV(H,DAYBARPOS)+LLV(L,DAYBARPOS))/2,1),ALIGN0,VALIGN1,RGB(128,128,255);//均價
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: DAYBARPOS:=BARSLAST(REF(HOUR,1)=15 AND HOUR<>15);A:=BACKSET(ISLASTBAR,DAYBARPOS);
REFX(C,9999),POINTDOT;
DRAWSL(ISLASTBAR,C,0,999,0),COLORWHITE,POINTDOT;
VERTLINE(DAYBARPOS=1&&A,1);//日分隔缐,RGB(98,98,98),RGB(98,98,98)
DRAWSL(ISLASTBAR,REF(O,DAYBARPOS-1),0,DAYBARPOS,1),COLORC0C0C0;//開盤價,RGB(192,192,192)
DRAWSL(ISLASTBAR,C,0,DAYBARPOS,1),COLOR00FFFF;//即時價
DRAWSL(ISLASTBAR,HHV(H,DAYBARPOS),0,DAYBARPOS,1),COLOR0000FF;//最高價
DRAWSL(ISLASTBAR,LLV(L,DAYBARPOS),0,DAYBARPOS,1),COLOR00FF00;//最低價
DRAWSL(ISLASTBAR,(HHV(H,DAYBARPOS)+LLV(L,DAYBARPOS))/2,0,DAYBARPOS,1),COLORFF8080;//均價
DRAWNUMBER(ISLASTBAR,REF(O,DAYBARPOS-1),REF(O,DAYBARPOS-1),2),ALIGN0,VALIGN0;
DRAWNUMBER(ISLASTBAR,C,C,2),ALIGN0,VALIGN0,COLORC0C0C0;//即時價
DRAWNUMBER(ISLASTBAR,HHV(H,DAYBARPOS),HHV(H,DAYBARPOS),2),ALIGN0,VALIGN0,COLOR00FFFF;//最高價
DRAWNUMBER(ISLASTBAR,LLV(L,DAYBARPOS),LLV(L,DAYBARPOS),2),ALIGN0,VALIGN0,COLOR00FF00;//最低價
DRAWNUMBER(ISLASTBAR,(HHV(H,DAYBARPOS)+LLV(L,DAYBARPOS))/2,(HHV(H,DAYBARPOS)+LLV(L,DAYBARPOS))/2,1),ALIGN0,VALIGN1,COLORFF8080;//均價 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容