首页 > > 详细

代编公式选股、公式选股代做、代写股票选股公式、机构轻松买点主图指标公式源码

机构买点主图指标源码  
原理解析:
VAR1赋值:收盘价的5日简单移动平均
VAR2赋值:收盘价的10日简单移动平均
VAR3赋值:收盘价的20日简单移动平均
VAR4赋值:收盘价的30日简单移动平均
VAR5赋值:收盘价的60日简单移动平均
F1赋值:VAR1>1日前的VAR1
F2赋值:VAR2>1日前的VAR2
F3赋值:VAR2>1日前的VAR2
F4赋值:VAR2>1日前的VAR2
F5赋值:VAR2>1日前的VAR2
X1赋值:收盘价的7日指数移动平均
当满足条件VAR3ANDVAR2ANDCOUNT(X12ANDX1>1日前的X1的3日过滤时,在最低价-0.01位置书写文字,COLORFFFFFF
LC赋值:1日前的收盘价
RSI赋值:收盘价-LC和0的较大值的6日[1日权重]移动平均/收盘价-LC的绝对值的6日[1日权重]移动平均*100
当满足条件75上穿RSI时,在最高价*1.035位置书写文字,COLOR00FF00
B1赋值:1日前的收盘价
B2赋值:2日前的收盘价
B3赋值:3日前的收盘价
B4赋值:4日前的收盘价
CMAX赋值:收盘价和B1的较大值和B2的较大值和B3的较大值
CMIN赋值:收盘价和B1的较小值和B2的较小值和B3的较小值
当满足条件收盘价=CMAXAND(B1>=B2ORB1>=B3)ORB1=CMAXAND(B2=CMINORB3=CMIN)ANDCLOSE>=B2ORB2=CMAXANDB3=CMINANDCLOSE>=B1ORB3=CMAXANDCLOSE>=B1ANDCLOSE>=B2时,在B1和收盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR000099
当满足条件收盘价=CMAXAND(B1>=B2ORB1>=B3)ORB1=CMAXAND(B2=CMINORB3=CMIN)ANDCLOSE>=B2ORB2=CMAXANDB3=CMINANDCLOSE>=B1ORB3=CMAXANDCLOSE>=B1ANDCLOSE>=B2时,在B1和收盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR0000BB
当满足条件收盘价=CMAXAND(B1>=B2ORB1>=B3)ORB1=CMAXAND(B2=CMINORB3=CMIN)ANDCLOSE>=B2ORB2=CMAXANDB3=CMINANDCLOSE>=B1ORB3=CMAXANDCLOSE>=B1ANDCLOSE>=B2时,在B1和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR0000FF
当满足条件收盘价=CMAXANDB1=CMIN时,在B2和收盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR000099
当满足条件收盘价=CMAXANDB1=CMIN时,在B2和收盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR0000BB
当满足条件收盘价=CMAXANDB1=CMIN时,在B2和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR0000FF
当满足条件收盘价=CMINAND(B1=B2OR(B2=CMINANDB1=B1时,在B1和B2位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLORFF9900
当满足条件B1=CMINANDCLOSE>=B2OR(B2=CMINANDB1=B1时,在B1和B2位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORFFBB00
当满足条件B1=CMINANDCLOSE>=B2OR(B2=CMINANDB1=B1时,在B1和B2位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLORFFFF00
当满足条件B1=CMAXANDCLOSEB3ORB3=CMAXANDB1>B2)ANDB2>=B4ANDCLOSEB3ORB3=CMAXANDB1>B2)ANDB2>=B4ANDCLOSEB3ORB3=CMAXANDB1>B2)ANDB2>=B4ANDCLOSE上次LD距今天数 AND 取反
输出波峰:如果T1,返回A,否则返回A ,POINTDOT ,COLOR00FFFF
当满足条件T1时,在A和A位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORFF00FF
输出波谷:如果T2,返回B,否则返回B,POINTDOT,COLOR80FF00
当满足条件T2时,在B和B位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR80FF00
CXH赋值:STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1))
输出WARNING('',CURRENTTIME>180000 AND (CXH=1 OR CXH=6))
DRAWTEXTREL(10 ,10 ,'指标公式')
 
源码:
  
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,20);
VAR4:=MA(CLOSE,30);
VAR5:=MA(CLOSE,60);
F1:=VAR1>REF(VAR1,1);
F2:=VAR2>REF(VAR2,1);
F3:=VAR2>REF(VAR2,1);
F4:=VAR2>REF(VAR2,1);
F5:=VAR2>REF(VAR2,1);
x1:=EMA(C,7);
drawtext(filter(var3 and var2 and count(x12 and x1>ref(x1,1),3),l-0.01,'短↑进'),ColorFFFFFF;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(75,RSI) , HIGH*1.035,' '),Color00FF00;
B1:=REF(CLOSE,1);B2:=REF(CLOSE,2);B3:=REF(CLOSE,3);B4:=REF(CLOSE,4);
CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);
STICKLINE(CLOSE=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND CLOSE>=B2 OR
B2=CMAX AND B3=CMIN AND CLOSE>=B1 OR B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2,B1,CLOSE,8,0),COLOR000099;
STICKLINE(CLOSE=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND CLOSE>=B2 OR
B2=CMAX AND B3=CMIN AND CLOSE>=B1 OR B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2,B1,CLOSE,5,0),COLOR0000BB;
STICKLINE(CLOSE=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND CLOSE>=B2 OR
B2=CMAX AND B3=CMIN AND CLOSE>=B1 OR B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2,B1,CLOSE,3,0),COLOR0000FF;
STICKLINE(CLOSE=CMAX AND B1=CMIN,B2,CLOSE,8,0),COLOR000099;
STICKLINE(CLOSE=CMAX AND B1=CMIN,B2,CLOSE,5,0),COLOR0000BB;
STICKLINE(CLOSE=CMAX AND B1=CMIN,B2,CLOSE,3,0),COLOR0000FF;
STICKLINE(CLOSE=CMIN AND (B1=B2 OR (B2=CMIN AND B1=B1,B1,B2,8,0),COLORFF9900;
STICKLINE(B1=CMIN AND CLOSE>=B2 OR (B2=CMIN AND B1=B1,B1,B2,5,0),COLORFFBB00;
STICKLINE(B1=CMIN AND CLOSE>=B2 OR (B2=CMIN AND B1=B1,B1,B2,3,0),COLORFFFF00;
STICKLINE(B1=CMAX AND CLOSEB3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND CLOSEB3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND CLOSEB3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND CLOSEBARSLAST(LD) AND NOT(LD);
波峰:IF(t1,A,A) ,POINTDOT ,Color00FFFF;
STICKLINE(t1,A,A,5,0),ColorFF00FF;
波谷:IF(t2,B,B),POINTDOT,Color80FF00;
STICKLINE(t2,B,B,5,0),Color80FF00;CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
DRAWTEXTREL(10 ,10 ,'指标公式');

联系我们 - QQ: 88652583
© 2014 www.93stock.com
代写选股公式网!
声明:警惕假冒分子冒充本站提供证券咨询服务,选股公式网为非证券咨询机构,本站不提供有关股评、投资分析报告、股市预测,证券咨询等服务。本站仅提供股票、期货、黄金、外汇的软件技术交流与分享。本站文章为互联网文章,其仅供参考,并不构成投资建议。