麻煩老師修改博易大師可使用。謝謝你 [博易POBO]
咨询内容:
STEP1:=2/100;
MVALUE1:=20/100;
SARLINE:SAR(4,STEP1,MVALUE1),NODRAW;
//IF(SARLINE>0,SARLINE,NULL),COLORRED,NOTEXT,CIRCLEDOT;
//IF(SARLINE<0,-SARLINE,NULL),COLORCYAN,NOTEXT,CIRCLEDOT;
//定义M周期,可以任意修改
M:=20;
CON:=H>HV(H,M)&&SARLINE>0;
CNX:=REF(CON,1)&&H<REF(H,1);
NN:=BARSLAST(CNX)+1;
COM:=L<LV(L,M)&&SARLINE<0;
CMX:=REF(COM,1)&&L>REF(L,1);
MM:=BARSLAST(CMX)+1;
DRAWLINE3(CNX&&REF(EXIST(CNX,NN),1),50,MM,CMX&&REF(EXIST(CMX,MM),1),50,NN,0),COLORRED,LINETHICK2,NODRAW;
DRAWLINE3(CMX&&REF(EXIST(CMX,MM),1),50,NN,CNX&&REF(EXIST(CNX,NN),1),50,MM,0),COLORGREEN,LINETHICK2,NODRAW;
//倒数第二条画线
MBV:=MAX(MM,NN);
NBV:=MIN(MM,NN);
ADM1:=BACKSET(ISLASTBAR&&MM=MBV,MBV+1);
ADN1:=BACKSET(ISLASTBAR&&MM=MBV,NBV+1);
DRAWLINE1(CROSS(ADM1=1,0.5),50,CROSS(ADN1=1,0.5),50,0),COLORRED,LINETHICK2;
ADM2:=BACKSET(ISLASTBAR&&NN=MBV,MBV+1);
ADN2:=BACKSET(ISLASTBAR&&NN=MBV,NBV+1);
DRAWLINE1(CROSS(ADM2=1,0.5),50,CROSS(ADN2=1,0.5),50,0),COLORGREEN,LINETHICK2;
//最后一条画线
//DRAWLINE3(ISLASTBAR&&H<REF(H,NBV)&&NBV=NN,50,0,1,50,NN,0),COLORGREEN,LINETHICK2;
//DRAWLINE3(ISLASTBAR&&L>REF(L,NBV)&&NBV=MM,50,0,1,50,MM,0),COLORRED,LINETHICK2; //
//DRAWCOLORLINE(SARLINE>0,55,COLORRED,COLORGREEN),LINETHICK2;
DRAWLINE3(ISLASTBAR&&H<REF(H,NBV)&&NBV=NN,50,0,1,50,NN,0),COLORGREEN,LINETHICK2;
DRAWLINE3(ISLASTBAR&&L>REF(L,NBV)&&NBV=MM,50,0,1,50,MM,0),COLORRED,LINETHICK2; //
//DRAWCOLORLINE(SARLINE>0,55,COLORRED,COLORGREEN),LINETHICK2;
REFLINE:45,100;
老師那可以麻煩你照文翻譯嗎?謝謝你
来源 程序化久久网
麻煩老師修改博易大師可使用。謝謝你
麻煩老師修改博易大師可使用。謝謝你STEP1:=2/100;
MVALUE1:=20/100;
SARLINE:SAR(4,STEP1,MVALUE1),NODRAW;
//IF(SARLINE>0,SARLINE,NULL),COLORRED,NOTEXT,CIRCLEDOT;
//IF(SARLINE<0,-SARLINE,NULL),COLORCYAN,NOTEXT,CIRCLEDOT;
//定义M周期,可以任意修改
M:=20;
CON:=H>HV(H,M)&&SARLINE>0;
CNX:=REF(CON,1)&&H<REF(H,1);
NN:=BARSLAST(CNX)+1;
COM:=L<LV(L,M)&&SARLINE<0;
CMX:=REF(COM,1)&&L>REF(L,1);
MM:=BARSLAST(CMX)+1;
DRAWLINE3(CNX&&REF(EXIST(CNX,NN),1),50,MM,CMX&&REF(EXIST(CMX,MM),1),50,NN,0),COLORRED,LINETHICK2,NODRAW;
DRAWLINE3(CMX&&REF(EXIST(CMX,MM),1),50,NN,CNX&&REF(EXIST(CNX,NN),1),50,MM,0),COLORGREEN,LINETHICK2,NODRAW;
//倒数第二条画线
MBV:=MAX(MM,NN);
NBV:=MIN(MM,NN);
ADM1:=BACKSET(ISLASTBAR&&MM=MBV,MBV+1);
ADN1:=BACKSET(ISLASTBAR&&MM=MBV,NBV+1);
DRAWLINE1(CROSS(ADM1=1,0.5),50,CROSS(ADN1=1,0.5),50,0),COLORRED,LINETHICK2;
ADM2:=BACKSET(ISLASTBAR&&NN=MBV,MBV+1);
ADN2:=BACKSET(ISLASTBAR&&NN=MBV,NBV+1);
DRAWLINE1(CROSS(ADM2=1,0.5),50,CROSS(ADN2=1,0.5),50,0),COLORGREEN,LINETHICK2;
//最后一条画线
//DRAWLINE3(ISLASTBAR&&H<REF(H,NBV)&&NBV=NN,50,0,1,50,NN,0),COLORGREEN,LINETHICK2;
//DRAWLINE3(ISLASTBAR&&L>REF(L,NBV)&&NBV=MM,50,0,1,50,MM,0),COLORRED,LINETHICK2; //
//DRAWCOLORLINE(SARLINE>0,55,COLORRED,COLORGREEN),LINETHICK2;
DRAWLINE3(ISLASTBAR&&H<REF(H,NBV)&&NBV=NN,50,0,1,50,NN,0),COLORGREEN,LINETHICK2;
DRAWLINE3(ISLASTBAR&&L>REF(L,NBV)&&NBV=MM,50,0,1,50,MM,0),COLORRED,LINETHICK2; //
//DRAWCOLORLINE(SARLINE>0,55,COLORRED,COLORGREEN),LINETHICK2;
REFLINE:45,100;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 您好,这个公式不少函数没有匹配函数,不能修改。来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容