5.5上如何编写下面指标? [博易POBO]
咨询内容:
SAR1:=SAR_POBO(7,2,10),CIRCLEDOT;
SAR:=SAR1;
QSA:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
QSA1:=(MA(CLOSE,2)+MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16))/4;
PARTLINE(C>SAR AND SAR>0,QSA1),COLOR0000FF,LINETHICK2;
PARTLINE(C<SAR AND SAR>0,QSA1),COLOR40FF00,LINETHICK2;
压力支持位1:=MA(CLOSE,26),LINETHICK0;{压力支撑线}
线条1:=MA(CLOSE,28);
线条:=压力支持位1;
压力支持位:=线条1,LINETHICK0,COLORFF00FF;
PARTLINE(C>压力支持位1 AND 压力支持位1>0,线条1),COLORFF00FF,LINETHICK2;
PARTLINE(C<压力支持位1 AND 压力支持位1>0,线条1),COLORFF0000,LINETHICK2;
PARTLINE(C=压力支持位1 AND 压力支持位1>0,线条1),COLOR000000,LINETHICK2;
DRAWICON(CROSS(C,SAR),L*0.999,4);{买,卖点}
DRAWICON(CROSS(SAR,C),H*1.001,5);
DRAWICON(CROSS(C,SAR),L*0.9985,1);{B,S点}
DRAWICON(CROSS(SAR,C),H*1.0015,2);{加速点}
DRAWICON(C<SAR AND C<REF(C,1)*0.999 ,QSA1,14);
DRAWICON(C>SAR AND C>REF(C,1)*1.002 ,QSA1,8);
{红色K}
STICKLINE(C>SAR AND SAR>=0 AND C<=O,H,L,0,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C>=O,H,C,0,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C>=O,O,L,0,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C<=O,C,O,4,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C>=O,C,O,4,1),COLOR0000FF;
{STICKLINE(C>SAR AND SAR>=0,H,L,0,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,4,1),COLOR0000AA;
STICKLINE(C>SAR AND SAR>0,C,O,3,0),COLOR0000CC;
STICKLINE(C>SAR AND SAR>0,C,O,2,0),COLOR0000EE;
STICKLINE(C>SAR AND SAR>0,C,O,1,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,0.1,0),COLOR8080FF;}
{绿色K}
STICKLINE(C<SAR AND C<=O,H,L,0,0),COLOREEE913;
STICKLINE(C<SAR AND C>=O,H,C,0,0),COLOREEE913;
STICKLINE(C<SAR AND C>=O,L,O,0,0),COLOREEE913;
STICKLINE(C<SAR AND C>=O,C,O,4.1,1),COLOREEE913;
STICKLINE(C<SAR AND C<=O,C,O,4.1,0),COLOREEE913;
{STICKLINE(C<SAR,C,O,4.1,1),COLOR515100;
STICKLINE(C<SAR,C,O,3,0),COLOR919100;
STICKLINE(C<SAR,C,O,2,0),COLORCACA00;
这个在新版就不行了,在老版可以
SAR1:=SAR_POBO(7,2,10),CIRCLEDOT;
SAR:=SAR1;
QSA:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
QSA1:=(MA(CLOSE,2)+MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16))/4;
PARTLINE(C>SAR AND SAR>0,QSA1),COLOR0000FF,LINETHICK2;
PARTLINE(C<SAR AND SAR>0,QSA1),COLOR40FF00,LINETHICK2;
压力支持位1:=MA(CLOSE,26),LINETHICK0;{压力支撑线}
线条1:=MA(CLOSE,28);
线条:=压力支持位1;
压力支持位:=线条1,LINETHICK0,COLORFF00FF;
PARTLINE(C>压力支持位1 AND 压力支持位1>0,线条1),COLORFF00FF,LINETHICK2;
PARTLINE(C<压力支持位1 AND 压力支持位1>0,线条1),COLORFF0000,LINETHICK2;
PARTLINE(C=压力支持位1 AND 压力支持位1>0,线条1),COLOR000000,LINETHICK2;
DRAWICON(CROSS(C,SAR),L*0.999,4);{买,卖点}
DRAWICON(CROSS(SAR,C),H*1.001,5);
DRAWICON(CROSS(C,SAR),L*0.9985,1);{B,S点}
DRAWICON(CROSS(SAR,C),H*1.0015,2);{加速点}
DRAWICON(C<SAR AND C<REF(C,1)*0.999 ,QSA1,14);
DRAWICON(C>SAR AND C>REF(C,1)*1.002 ,QSA1,8);
{红色K}
STICKLINE(C>SAR AND SAR>=0 AND C<=O,H,L,0,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C>=O,H,C,0,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C>=O,O,L,0,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C<=O,C,O,4,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C>=O,C,O,4,1),COLOR0000FF;
{STICKLINE(C>SAR AND SAR>=0,H,L,0,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,4,1),COLOR0000AA;
STICKLINE(C>SAR AND SAR>0,C,O,3,0),COLOR0000CC;
STICKLINE(C>SAR AND SAR>0,C,O,2,0),COLOR0000EE;
STICKLINE(C>SAR AND SAR>0,C,O,1,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,0.1,0),COLOR8080FF;}
{绿色K}
STICKLINE(C<SAR AND C<=O,H,L,0,0),COLOREEE913;
STICKLINE(C<SAR AND C>=O,H,C,0,0),COLOREEE913;
STICKLINE(C<SAR AND C>=O,L,O,0,0),COLOREEE913;
STICKLINE(C<SAR AND C>=O,C,O,4.1,1),COLOREEE913;
STICKLINE(C<SAR AND C<=O,C,O,4.1,0),COLOREEE913;
{STICKLINE(C<SAR,C,O,4.1,1),COLOR515100;
STICKLINE(C<SAR,C,O,3,0),COLOR919100;
STICKLINE(C<SAR,C,O,2,0),COLORCACA00;
QSA:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
QSA1:=(MA(CLOSE,2)+MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16))/4;
PARTLINE(C>SAR2 AND SAR2>0,QSA1),COLOR0000FF,LINETHICK2;
PARTLINE(C<SAR2 AND SAR2>0,QSA1),COLOR40FF00,LINETHICK2;
压力支持位1:=MA(CLOSE,26),LINETHICK0;{压力支撑线}
线条1:=MA(CLOSE,28);
线条:=压力支持位1;
压力支持位:=线条1,LINETHICK0,COLORFF00FF;
PARTLINE(C>压力支持位1 AND 压力支持位1>0,线条1),COLORFF00FF,LINETHICK2;
PARTLINE(C<压力支持位1 AND 压力支持位1>0,线条1),COLORFF0000,LINETHICK2;
PARTLINE(C=压力支持位1 AND 压力支持位1>0,线条1),COLOR000000,LINETHICK2;
DRAWICON(CROSS(C,SAR2),L*0.999,4);{买,卖点}
DRAWICON(CROSS(SAR2,C),H*1.001,5);
DRAWICON(CROSS(C,SAR2),L*0.9985,1);{B,S点}
DRAWICON(CROSS(SAR2,C),H*1.0015,2);{加速点}
DRAWICON(C<SAR2 AND C<REF(C,1)*0.999 ,QSA1,14);
DRAWICON(C>SAR2 AND C>REF(C,1)*1.002 ,QSA1,8);
{红色K}
STICKLINE(C>SAR2 AND SAR2>=0 AND C<=O,H,L,0,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C>=O,H,C,0,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C>=O,O,L,0,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C<=O,C,O,4,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C>=O,C,O,4,1),COLOR0000FF;
{STICKLINE(C>SAR AND SAR>=0,H,L,0,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,4,1),COLOR0000AA;
STICKLINE(C>SAR AND SAR>0,C,O,3,0),COLOR0000CC;
STICKLINE(C>SAR AND SAR>0,C,O,2,0),COLOR0000EE;
STICKLINE(C>SAR AND SAR>0,C,O,1,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,0.1,0),COLOR8080FF;}
{绿色K}
STICKLINE(C<SAR2 AND C<=O,H,L,0,0),COLOREEE913;
STICKLINE(C<SAR2 AND C>=O,H,C,0,0),COLOREEE913;
STICKLINE(C<SAR2 AND C>=O,L,O,0,0),COLOREEE913;
STICKLINE(C<SAR2 AND C>=O,C,O,4.1,1),COLOREEE913;
STICKLINE(C<SAR2 AND C<=O,C,O,4.1,0),COLOREEE913;
{STICKLINE(C<SAR,C,O,4.1,1),COLOR515100;
STICKLINE(C<SAR,C,O,3,0),COLOR919100;
STICKLINE(C<SAR,C,O,2,0),COLORCACA00;
这个在新版就不行了,在老版可以
SAR1:=SAR_POBO(7,2,10),CIRCLEDOT;
SAR:=SAR1;
QSA:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
QSA1:=(MA(CLOSE,2)+MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16))/4;
PARTLINE(C>SAR AND SAR>0,QSA1),COLOR0000FF,LINETHICK2;
PARTLINE(C<SAR AND SAR>0,QSA1),COLOR40FF00,LINETHICK2;
压力支持位1:=MA(CLOSE,26),LINETHICK0;{压力支撑线}
线条1:=MA(CLOSE,28);
线条:=压力支持位1;
压力支持位:=线条1,LINETHICK0,COLORFF00FF;
PARTLINE(C>压力支持位1 AND 压力支持位1>0,线条1),COLORFF00FF,LINETHICK2;
PARTLINE(C<压力支持位1 AND 压力支持位1>0,线条1),COLORFF0000,LINETHICK2;
PARTLINE(C=压力支持位1 AND 压力支持位1>0,线条1),COLOR000000,LINETHICK2;
DRAWICON(CROSS(C,SAR2),L*0.999,4);{买,卖点}
DRAWICON(CROSS(SAR2,C),H*1.001,5);
DRAWICON(CROSS(C,SAR2),L*0.9985,1);{B,S点}
DRAWICON(CROSS(SAR2,C),H*1.0015,2);{加速点}
DRAWICON(C<SAR2 AND C<REF(C,1)*0.999 ,QSA1,14);
DRAWICON(C>SAR2 AND C>REF(C,1)*1.002 ,QSA1,8);
{红色K}
STICKLINE(C>SAR2 AND SAR2>=0 AND C<=O,H,L,0,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C>=O,H,C,0,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C>=O,O,L,0,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C<=O,C,O,4,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C>=O,C,O,4,1),COLOR0000FF;
{STICKLINE(C>SAR AND SAR>=0,H,L,0,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,4,1),COLOR0000AA;
STICKLINE(C>SAR AND SAR>0,C,O,3,0),COLOR0000CC;
STICKLINE(C>SAR AND SAR>0,C,O,2,0),COLOR0000EE;
STICKLINE(C>SAR AND SAR>0,C,O,1,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,0.1,0),COLOR8080FF;}
{绿色K}
STICKLINE(C<SAR2 AND C<=O,H,L,0,0),COLOREEE913;
STICKLINE(C<SAR2 AND C>=O,H,C,0,0),COLOREEE913;
STICKLINE(C<SAR2 AND C>=O,L,O,0,0),COLOREEE913;
STICKLINE(C<SAR2 AND C>=O,C,O,4.1,1),COLOREEE913;
STICKLINE(C<SAR2 AND C<=O,C,O,4.1,0),COLOREEE913;
{STICKLINE(C<SAR,C,O,4.1,1),COLOR515100;
STICKLINE(C<SAR,C,O,3,0),COLOR919100;
STICKLINE(C<SAR,C,O,2,0),COLORCACA00;
来源 程序化久久网
5.5上如何编写下面指标?
SAR1:=SAR_POBO(7,2,10),CIRCLEDOT;
SAR:=SAR1;
QSA:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
QSA1:=(MA(CLOSE,2)+MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16))/4;
PARTLINE(C>SAR AND SAR>0,QSA1),COLOR0000FF,LINETHICK2;
PARTLINE(C<SAR AND SAR>0,QSA1),COLOR40FF00,LINETHICK2;
压力支持位1:=MA(CLOSE,26),LINETHICK0;{压力支撑线}
线条1:=MA(CLOSE,28);
线条:=压力支持位1;
压力支持位:=线条1,LINETHICK0,COLORFF00FF;
PARTLINE(C>压力支持位1 AND 压力支持位1>0,线条1),COLORFF00FF,LINETHICK2;
PARTLINE(C<压力支持位1 AND 压力支持位1>0,线条1),COLORFF0000,LINETHICK2;
PARTLINE(C=压力支持位1 AND 压力支持位1>0,线条1),COLOR000000,LINETHICK2;
DRAWICON(CROSS(C,SAR),L*0.999,4);{买,卖点}
DRAWICON(CROSS(SAR,C),H*1.001,5);
DRAWICON(CROSS(C,SAR),L*0.9985,1);{B,S点}
DRAWICON(CROSS(SAR,C),H*1.0015,2);{加速点}
DRAWICON(C<SAR AND C<REF(C,1)*0.999 ,QSA1,14);
DRAWICON(C>SAR AND C>REF(C,1)*1.002 ,QSA1,8);
{红色K}
STICKLINE(C>SAR AND SAR>=0 AND C<=O,H,L,0,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C>=O,H,C,0,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C>=O,O,L,0,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C<=O,C,O,4,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C>=O,C,O,4,1),COLOR0000FF;
{STICKLINE(C>SAR AND SAR>=0,H,L,0,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,4,1),COLOR0000AA;
STICKLINE(C>SAR AND SAR>0,C,O,3,0),COLOR0000CC;
STICKLINE(C>SAR AND SAR>0,C,O,2,0),COLOR0000EE;
STICKLINE(C>SAR AND SAR>0,C,O,1,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,0.1,0),COLOR8080FF;}
{绿色K}
STICKLINE(C<SAR AND C<=O,H,L,0,0),COLOREEE913;
STICKLINE(C<SAR AND C>=O,H,C,0,0),COLOREEE913;
STICKLINE(C<SAR AND C>=O,L,O,0,0),COLOREEE913;
STICKLINE(C<SAR AND C>=O,C,O,4.1,1),COLOREEE913;
STICKLINE(C<SAR AND C<=O,C,O,4.1,0),COLOREEE913;
{STICKLINE(C<SAR,C,O,4.1,1),COLOR515100;
STICKLINE(C<SAR,C,O,3,0),COLOR919100;
STICKLINE(C<SAR,C,O,2,0),COLORCACA00;
这个在新版就不行了,在老版可以
SAR1:=SAR_POBO(7,2,10),CIRCLEDOT;
SAR:=SAR1;
QSA:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
QSA1:=(MA(CLOSE,2)+MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16))/4;
PARTLINE(C>SAR AND SAR>0,QSA1),COLOR0000FF,LINETHICK2;
PARTLINE(C<SAR AND SAR>0,QSA1),COLOR40FF00,LINETHICK2;
压力支持位1:=MA(CLOSE,26),LINETHICK0;{压力支撑线}
线条1:=MA(CLOSE,28);
线条:=压力支持位1;
压力支持位:=线条1,LINETHICK0,COLORFF00FF;
PARTLINE(C>压力支持位1 AND 压力支持位1>0,线条1),COLORFF00FF,LINETHICK2;
PARTLINE(C<压力支持位1 AND 压力支持位1>0,线条1),COLORFF0000,LINETHICK2;
PARTLINE(C=压力支持位1 AND 压力支持位1>0,线条1),COLOR000000,LINETHICK2;
DRAWICON(CROSS(C,SAR),L*0.999,4);{买,卖点}
DRAWICON(CROSS(SAR,C),H*1.001,5);
DRAWICON(CROSS(C,SAR),L*0.9985,1);{B,S点}
DRAWICON(CROSS(SAR,C),H*1.0015,2);{加速点}
DRAWICON(C<SAR AND C<REF(C,1)*0.999 ,QSA1,14);
DRAWICON(C>SAR AND C>REF(C,1)*1.002 ,QSA1,8);
{红色K}
STICKLINE(C>SAR AND SAR>=0 AND C<=O,H,L,0,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C>=O,H,C,0,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C>=O,O,L,0,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C<=O,C,O,4,0),COLOR0000FF;
STICKLINE(C>SAR AND SAR>=0 AND C>=O,C,O,4,1),COLOR0000FF;
{STICKLINE(C>SAR AND SAR>=0,H,L,0,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,4,1),COLOR0000AA;
STICKLINE(C>SAR AND SAR>0,C,O,3,0),COLOR0000CC;
STICKLINE(C>SAR AND SAR>0,C,O,2,0),COLOR0000EE;
STICKLINE(C>SAR AND SAR>0,C,O,1,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,0.1,0),COLOR8080FF;}
{绿色K}
STICKLINE(C<SAR AND C<=O,H,L,0,0),COLOREEE913;
STICKLINE(C<SAR AND C>=O,H,C,0,0),COLOREEE913;
STICKLINE(C<SAR AND C>=O,L,O,0,0),COLOREEE913;
STICKLINE(C<SAR AND C>=O,C,O,4.1,1),COLOREEE913;
STICKLINE(C<SAR AND C<=O,C,O,4.1,0),COLOREEE913;
{STICKLINE(C<SAR,C,O,4.1,1),COLOR515100;
STICKLINE(C<SAR,C,O,3,0),COLOR919100;
STICKLINE(C<SAR,C,O,2,0),COLORCACA00;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: SAR2:=SAR(7,2,10);QSA:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
QSA1:=(MA(CLOSE,2)+MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16))/4;
PARTLINE(C>SAR2 AND SAR2>0,QSA1),COLOR0000FF,LINETHICK2;
PARTLINE(C<SAR2 AND SAR2>0,QSA1),COLOR40FF00,LINETHICK2;
压力支持位1:=MA(CLOSE,26),LINETHICK0;{压力支撑线}
线条1:=MA(CLOSE,28);
线条:=压力支持位1;
压力支持位:=线条1,LINETHICK0,COLORFF00FF;
PARTLINE(C>压力支持位1 AND 压力支持位1>0,线条1),COLORFF00FF,LINETHICK2;
PARTLINE(C<压力支持位1 AND 压力支持位1>0,线条1),COLORFF0000,LINETHICK2;
PARTLINE(C=压力支持位1 AND 压力支持位1>0,线条1),COLOR000000,LINETHICK2;
DRAWICON(CROSS(C,SAR2),L*0.999,4);{买,卖点}
DRAWICON(CROSS(SAR2,C),H*1.001,5);
DRAWICON(CROSS(C,SAR2),L*0.9985,1);{B,S点}
DRAWICON(CROSS(SAR2,C),H*1.0015,2);{加速点}
DRAWICON(C<SAR2 AND C<REF(C,1)*0.999 ,QSA1,14);
DRAWICON(C>SAR2 AND C>REF(C,1)*1.002 ,QSA1,8);
{红色K}
STICKLINE(C>SAR2 AND SAR2>=0 AND C<=O,H,L,0,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C>=O,H,C,0,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C>=O,O,L,0,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C<=O,C,O,4,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C>=O,C,O,4,1),COLOR0000FF;
{STICKLINE(C>SAR AND SAR>=0,H,L,0,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,4,1),COLOR0000AA;
STICKLINE(C>SAR AND SAR>0,C,O,3,0),COLOR0000CC;
STICKLINE(C>SAR AND SAR>0,C,O,2,0),COLOR0000EE;
STICKLINE(C>SAR AND SAR>0,C,O,1,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,0.1,0),COLOR8080FF;}
{绿色K}
STICKLINE(C<SAR2 AND C<=O,H,L,0,0),COLOREEE913;
STICKLINE(C<SAR2 AND C>=O,H,C,0,0),COLOREEE913;
STICKLINE(C<SAR2 AND C>=O,L,O,0,0),COLOREEE913;
STICKLINE(C<SAR2 AND C>=O,C,O,4.1,1),COLOREEE913;
STICKLINE(C<SAR2 AND C<=O,C,O,4.1,0),COLOREEE913;
{STICKLINE(C<SAR,C,O,4.1,1),COLOR515100;
STICKLINE(C<SAR,C,O,3,0),COLOR919100;
STICKLINE(C<SAR,C,O,2,0),COLORCACA00;
这个在新版就不行了,在老版可以
SAR1:=SAR_POBO(7,2,10),CIRCLEDOT;
SAR:=SAR1;
QSA:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
QSA1:=(MA(CLOSE,2)+MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16))/4;
PARTLINE(C>SAR AND SAR>0,QSA1),COLOR0000FF,LINETHICK2;
PARTLINE(C<SAR AND SAR>0,QSA1),COLOR40FF00,LINETHICK2;
压力支持位1:=MA(CLOSE,26),LINETHICK0;{压力支撑线}
线条1:=MA(CLOSE,28);
线条:=压力支持位1;
压力支持位:=线条1,LINETHICK0,COLORFF00FF;
PARTLINE(C>压力支持位1 AND 压力支持位1>0,线条1),COLORFF00FF,LINETHICK2;
PARTLINE(C<压力支持位1 AND 压力支持位1>0,线条1),COLORFF0000,LINETHICK2;
PARTLINE(C=压力支持位1 AND 压力支持位1>0,线条1),COLOR000000,LINETHICK2;
DRAWICON(CROSS(C,SAR2),L*0.999,4);{买,卖点}
DRAWICON(CROSS(SAR2,C),H*1.001,5);
DRAWICON(CROSS(C,SAR2),L*0.9985,1);{B,S点}
DRAWICON(CROSS(SAR2,C),H*1.0015,2);{加速点}
DRAWICON(C<SAR2 AND C<REF(C,1)*0.999 ,QSA1,14);
DRAWICON(C>SAR2 AND C>REF(C,1)*1.002 ,QSA1,8);
{红色K}
STICKLINE(C>SAR2 AND SAR2>=0 AND C<=O,H,L,0,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C>=O,H,C,0,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C>=O,O,L,0,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C<=O,C,O,4,0),COLOR0000FF;
STICKLINE(C>SAR2 AND SAR2>=0 AND C>=O,C,O,4,1),COLOR0000FF;
{STICKLINE(C>SAR AND SAR>=0,H,L,0,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,4,1),COLOR0000AA;
STICKLINE(C>SAR AND SAR>0,C,O,3,0),COLOR0000CC;
STICKLINE(C>SAR AND SAR>0,C,O,2,0),COLOR0000EE;
STICKLINE(C>SAR AND SAR>0,C,O,1,0),COLOR5555FF;
STICKLINE(C>SAR AND SAR>0,C,O,0.1,0),COLOR8080FF;}
{绿色K}
STICKLINE(C<SAR2 AND C<=O,H,L,0,0),COLOREEE913;
STICKLINE(C<SAR2 AND C>=O,H,C,0,0),COLOREEE913;
STICKLINE(C<SAR2 AND C>=O,L,O,0,0),COLOREEE913;
STICKLINE(C<SAR2 AND C>=O,C,O,4.1,1),COLOREEE913;
STICKLINE(C<SAR2 AND C<=O,C,O,4.1,0),COLOREEE913;
{STICKLINE(C<SAR,C,O,4.1,1),COLOR515100;
STICKLINE(C<SAR,C,O,3,0),COLOR919100;
STICKLINE(C<SAR,C,O,2,0),COLORCACA00;
来源 程序化久久网
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 或微信号:cxh99cxh99 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容