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

價量時空公式源碼[同花順公式]

相關標簽: 以價換量 、 股票價量關系 、 價量關系 、 價量背離 、 股票價量圖分析 、 價量十二招 、 價量分析 、 價量選股指標公式 、 價量實戰技術精要 、

 

 

價量時空公式源碼:

INPUT:N(5);
a0:=BARSCOUNT(c);a3:=SYSPARAM(3);a2:=SYSPARAM(2);
a4:=SYSPARAM(4);a5:=SYSPARAM(5);
nn0:=a3-a2;nn:=a0-a2;hh1:=(a4-a5)/10;
y0:=a0>=a2;vv0:=if(y0=1 and SYSPARAM(1)>=a0,v,0);
TIPTEXT(ISNULL(REFX(&CLOSE,1)),0,' www.tumamayizhan.com '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'同花順程序化交易');
c1:=if(BETWEEN(c,a4-0*hh1,a4-1*hh1),vv0,0);
c2:=if(BETWEEN(c,a4-1*hh1,a4-2*hh1),vv0,0);
c3:=if(BETWEEN(c,a4-2*hh1,a4-3*hh1),vv0,0);
c4:=if(BETWEEN(c,a4-3*hh1,a4-4*hh1),vv0,0);
c5:=if(BETWEEN(c,a4-4*hh1,a4-5*hh1),vv0,0);
c6:=if(BETWEEN(c,a4-5*hh1,a4-6*hh1),vv0,0);
c7:=if(BETWEEN(c,a4-6*hh1,a4-7*hh1),vv0,0);
c8:=if(BETWEEN(c,a4-7*hh1,a4-8*hh1),vv0,0);
c9:=if(BETWEEN(c,a4-8*hh1,a4-9*hh1),vv0,0);
c10:=if(BETWEEN(c,a4-9*hh1,a4-10*hh1),vv0,0);
v1:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c1,nn0),0),2));
v2:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c2,nn0),0),2));
v3:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c3,nn0),0),2));
v4:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c4,nn0),0),2));
v5:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c5,nn0),0),2));
v6:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c6,nn0),0),2)); //內容來至程序化交易網 CXH99.COM//
v7:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c7,nn0),0),2));
v8:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c8,nn0),0),2));
v9:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c9,nn0),0),2));
v10:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c10,nn0),0),2));
av0:=MAx(v1,MAx(v2,MAx(v3,MAx(v4,MAx(v5,MAx(v6,MAx(v7,MAx(v8,MAx(v9,v10)))))))));
FILLRGN(v1/av0>=nn/nn0 and nn>=0,a4-0*hh1,a4-1*hh1+0.05),colorMAgenta;
FILLRGN(v2/av0>=nn/nn0 and nn>=0,a4-1*hh1,a4-2*hh1+0.05),colorMAgenta;
FILLRGN(v3/av0>=nn/nn0 and nn>=0,a4-2*hh1,a4-3*hh1+0.05),colorMAgenta;
FILLRGN(v4/av0>=nn/nn0 and nn>=0,a4-3*hh1,a4-4*hh1+0.05),colorMAgenta;
FILLRGN(v5/av0>=nn/nn0 and nn>=0,a4-4*hh1,a4-5*hh1+0.05),colorMAgenta;
FILLRGN(v6/av0>=nn/nn0 and nn>=0,a4-5*hh1,a4-6*hh1+0.05),colorMAgenta;
FILLRGN(v7/av0>=nn/nn0 and nn>=0,a4-6*hh1,a4-7*hh1+0.05),colorMAgenta;
FILLRGN(v8/av0>=nn/nn0 and nn>=0,a4-7*hh1,a4-8*hh1+0.05),colorMAgenta;
FILLRGN(v9/av0>=nn/nn0 and nn>=0,a4-8*hh1,a4-9*hh1+0.05),colorMAgenta;
FILLRGN(v10/av0>=nn/nn0 and nn>=0,a4-9*hh1,a4-10*hh1+0.05),colorMAgenta;

hh:=SYSPARAM(4);ll:=SYSPARAM(5);
x:=ll-(hh-ll+MINDIFF)/n;
y:=HHV(VOL,SYSPARAM(3)-SYSPARAM(2)+1);
yvb:=y[SYSPARAM(3)]/(ll-x+MINDIFF);
z:=VOL/yvb+x;
STICKLINE(CLOSE>ref(CLOSE,1),x,z,7,1),Color0000FF;
STICKLINE(CLOSE<=ref(CLOSE,1),x,z,7,0),ColorEAE000;
五日:MA(z,5);
十日:MA(z,10);

DRAWTEXT(BARPOS=SYSPARAM(2),HIGH,//STKNAME+'\n'+STKLABEL+'\n'+//BLKNAME)align4,COLORGREEN;


STICKLINE(C>=O,C,O,7,0),COLORRED;
STICKLINE(C>=O,C,O,4,0),COLORB0B0FF;
STICKLINE(C>=O,C,O,2,0),COLORYELLOW;
STICKLINE(C>=O,H,L,0,0),COLORYELLOW;
STICKLINE(C<=O,C,O,7,0),COLORFF2020;
STICKLINE(C<=O,C,O,4,0),COLORFF6600;
STICKLINE(C<=O,C,O,2,0),COLORCYAN;
STICKLINE(C<=O,H,L,0,0),COLORCYAN;


博弈線:=WMA(CLOSE,8),linethick3;
byx:=WMA(CLOSE,8),linethick3;
FILLRGN(byx>ref(byx,1),byx,ref(byx,1)),COLORRED;
FILLRGN(byx<ref(byx,1),byx,ref(byx,1)),COLORgreen;
Var1:=SYSPARAM(3)-SYSPARAM(2)+1;
Var2:=SYSPARAM(3)-BARPOS;
Var3:=HHV(HIGH,Var1);
Var4:=LLV(LOW,VaR1);
Var5:=refX(Var3,Var2); //主圖最高價
Var5:IF(SYSPARAM(3)<>SYSPARAM(1),SYSPARAM(6),Var5),COLORRED,POINTDOT;
Var6:refX(Var4,Var2),COLORWHITE,POINTDOT;//主圖最低價
黃191:(Var5-Var6)*0.191+Var6,COLORYELLOW,POINTDOT;
黃382:(Var5-Var6)*0.382+Var6,COLORYELLOW,POINTDOT;
黃500:(Var5-Var6)*0.500+Var6,COLORGREEN,POINTDOT;
黃618:(Var5-Var6)*0.618+Var6,COLORYELLOW,POINTDOT;
黃809:(Var5-Var6)*0.809+Var6,COLORYELLOW,POINTDOT;
A:=LOW=LLV(LOW,240);
A1:=BARSLAST(A);
VERTLINE(A1=30);
VERTLINE(A1=60);
VERTLINE(A1=90);
VERTLINE(A1=120);
VERTLINE(A1=150);
VERTLINE(A1=180);
VERTLINE(A1=210);
VERTLINE(A1=2400);
DRAWTEXT(A1=30,HIGH,'第一時間');
DRAWTEXT(A1=60,HIGH,'第二時間');
DRAWTEXT(A1=90,HIGH,'第三時間');
DRAWTEXT(A1=120,HIGH,'第四時間');
DRAWTEXT(A1=150,HIGH,'第五時間');
DRAWTEXT(A1=180,HIGH,'第六時間');
DRAWTEXT(A1=210,HIGH,'第七時間'); //本文來至程序化交易網 cxh99.com//
DRAWTEXT(A1=240,HIGH,'第八時間');
Varr1:=SMA(MAX(CLOSE-ref(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-ref(CLOSE,1)),6,1)*100;
DRAWICON(CROSS(82,Varr1),HIGH+0.108,2);VERTLINE(CROSS(82,varr1)),POINTDOT;
DRAWSL(CROSS(82,varr1),HHV(HIGH,1),0,8,1),colorMAgenta,POINTDOT;
b1:=(SYSPARAM(4)-SYSPARAM(5))/(SYSPARAM(3)-SYSPARAM(2));
DRAWSL(BARPOS=SYSPARAM(1),LOW,378*b1/100,0,0),COLORwhite,POINTDOT;
DRAWSL(BARPOS=SYSPARAM(1),LOW,188*b1/100,0,0),COLORwhite,POINTDOT;
DRAWSL(BARPOS=SYSPARAM(1),LOW,141*b1/100,0,0),COLORwhite,POINTDOT;
DRAWSL(BARPOS=SYSPARAM(1),LOW,95*b1/100,0,0),COLORwhite,POINTDOT;
DRAWSL(BARPOS=SYSPARAM(1),LOW,48*b1/100,0,0),COLORgreen,;
DRAWSL(BARPOS=SYSPARAM(1),LOW,24.5*b1/100,0,0),COLORwhite,POINTDOT;
DRAWSL(BARPOS=SYSPARAM(1),LOW,16.5*b1/100,0,0),COLORwhite,POINTDOT;
DRAWSL(BARPOS=SYSPARAM(1),LOW,13*b1/100,0,0),COLORwhite,POINTDOT;
DRAWSL(BARPOS=SYSPARAM(1),LOW,7*b1/100,0,0),COLORwhite,POINTDOT;
 

 

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

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

 


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

相關文章

    沒有相關內容
  主站蜘蛛池模板: 992tv国产人成在线观看| 久久久久久亚洲av无码专区| 精品国产免费观看| 国产激情精品一区二区三区| jlzzjlzz亚洲乱熟在线播放| 日本黄页网站免费| 亚洲成a人片毛片在线| 精品人妻无码专区中文字幕| 国产欧美一区二区精品久久久 | 老司机亚洲精品影院| 国产精品亚洲一区二区无码| jizz中国免费| 无码人妻丰满熟妇区毛片18| 亚洲av无码一区二区二三区| 激情黄+色+成+人| 可以看污的网站| 久久久无码精品亚洲日韩蜜桃| 永久免费无内鬼放心开车| 含羞草影院视频播放| 国产精品嫩草影院人体模特| 国内精品哆啪啪| 一本大道久久a久久精品综合| 日本黄色一级视频| 亚洲国产精品一区二区九九| 男人免费桶女人45分钟视频| 国产18禁黄网站免费观看| 国产又污又爽又色的网站| 国产麻豆交换夫妇| www.久久.com| 成在线人视频免费视频| 久久精品视频3| 欧美国产日本高清不卡| 亚洲色图欧美色| 精品亚洲欧美无人区乱码| 国产一级视频在线观看网站| 国产麻豆欧美亚洲综合久久| 国产精品爽爽ⅴa在线观看| av毛片免费看| 快穿之性色无边(高h)| 久久久xxxx| 日韩一品在线播放视频一品免费|