以下是低买高卖公式股票公式
{昨低买今高卖资料表}
input:N(27,1,250);
{四价运用}
开盘价:=open;
开盘价11:=REF(open,1);{昨天最低价}
最高价:=high;
最高价11:=REF(high,1);
最低价:=low;
最低价11:=REF(low,1);
收盘价:=CLOSE;
收盘价11:=REF(CLOSE,1);
{预测系数B2计算公式1}
A1:=REF(开盘价,1);
A2:=ABS((REF(收盘价,1)-A1)/A1);
A3:=ABS((REF(最高价,1)-A1)/A1);
A4:=ABS((REF(最低价,1)-A1)/A1);
B1:=ABS((A2+A3+A4)/3);
B2:=开盘价*B1;
涨跌比:=B2/开盘价*100;
{预测公式一 有用到今天开盘价}
AA:=最高价11;
BB:=最低价11;
CC:=开盘价11;
DD:=收盘价11;
EE:=(AA+BB+CC+2*DD)/5;
AAA:=EE+(AA-BB);
BBB:=2*EE-BB;
CCC:=2*EE-AA;
DDD:=EE-(AA-BB);
上升突破价:=AAA;
上升阻力价:=BBB;
下跌支撑价:=CCC;
下跌反转价:=DDD;
EEE:=(EE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;{心理价}
FFF:=(EEE+开盘价)/2;
{显示今买最低预测价}
预测低一:=开盘价-B2;{今天预测低价一}
预测低一1:=REF(预测低一,1);{昨天预测价}
预测低一2:=REF(预测低一,2);{前天预测价}
预测低二:=(预测低一+FFF)/2;{今天预测低价二}
预测低二1:=REF(预测低二,1);{昨天预测价}
预测低二2:=REF(预测低二,2);{前天预测价}
{显示今日最高预测价公式}
预测高一:=开盘价+B2;{今天预测高价一}
预测高二:=MA(REF(HIGH,1)/REF(CLOSE,2),N)*REF(CLOSE,1);{今天预测高价二}
预测高二1:=ref(预测高二,1);{昨天预测价}
预测高二2:=ref(预测高二,2);{前天预测价}
{测试与今最高差比}
今高昨低比:=(high-最低价11)/high*100;{今买今卖}
今高昨低比1:=今高昨低比;
今高昨低比2:=ref(今高昨低比,1);
今高昨低比3:=ref(今高昨低比,2);
今高昨低比4:=ref(今高昨低比,3);
今高昨低比5:=ref(今高昨低比,4);
今高昨低比6:=ref(今高昨低比,5);
今高昨低比7:=ref(今高昨低比,6);
{日期}
日0:=DAY;
日1:=REF(DAY,1);
日2:=REF(DAY,2);
日3:=REF(DAY,3);
日4:=REF(DAY,4);
日5:=REF(DAY,5);
日6:=REF(DAY,6);
开盘价1:=OPEN;
开盘价2:=REF(OPEN,1);
开盘价3:=REF(OPEN,2);
开盘价4:=REF(OPEN,3);
开盘价5:=REF(OPEN,4);
开盘价6:=REF(OPEN,5);
开盘价7:=REF(OPEN,6);
最高价1:=HIGH;
最高价2:=REF(HIGH,1);
最高价3:=REF(HIGH,2);
最高价4:=REF(HIGH,3);
最高价5:=REF(HIGH,4);
最高价6:=REF(HIGH,5);
最高价7:=REF(HIGH,6);
最低价1:=LOW;
最低价2:=REF(LOW,1);
最低价3:=REF(LOW,2);
最低价4:=REF(LOW,3);
最低价5:=REF(LOW,4);
最低价6:=REF(LOW,5);
最低价7:=REF(LOW,6);
收盘价1:=CLOSE;
收盘价2:=REF(CLOSE,1);
收盘价3:=REF(CLOSE,2);
收盘价4:=REF(CLOSE,3);
收盘价5:=REF(CLOSE,4);
收盘价6:=REF(CLOSE,5);
收盘价7:=REF(CLOSE,6);
银1:=预测低一;
银2:=REF(预测低一,1);
银3:=REF(预测低一,2);
银4:=REF(预测低一,3);
银5:=REF(预测低一,4);
银6:=REF(预测低一,5);
银7:=REF(预测低一,6);
金1:=预测低二;
金2:=REF(预测低二,1);
金3:=REF(预测低二,2);
金4:=REF(预测低二,3);
金5:=REF(预测低二,4);
金6:=REF(预测低二,5);
金7:=REF(预测低二,6);
涨幅0:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
涨幅1:=(REF(CLOSE,1)-REF(CLOSE,2))/REF(CLOSE,2)*100;
涨幅2:=(REF(CLOSE,2)-REF(CLOSE,3))/REF(CLOSE,3)*100;
涨幅3:=(REF(CLOSE,3)-REF(CLOSE,4))/REF(CLOSE,4)*100;
涨幅4:=(REF(CLOSE,4)-REF(CLOSE,5))/REF(CLOSE,5)*100;
涨幅5:=(REF(CLOSE,5)-REF(CLOSE,6))/REF(CLOSE,6)*100;
涨幅6:=(REF(CLOSE,6)-REF(CLOSE,7))/REF(CLOSE,7)*100;
涨幅7:=(REF(CLOSE,7)-REF(CLOSE,8))/REF(CLOSE,8)*100;
涨跌3日:(涨幅0+涨幅1+涨幅2-涨幅3),LINETHICK0;
涨跌5日:(涨幅0+涨幅1+涨幅2+涨幅3+涨幅4-涨幅5),LINETHICK0;
涨跌7日:(涨幅0+涨幅1+涨幅2+涨幅3+涨幅4+涨幅5+涨幅6-涨幅7),LINETHICK0;
成交量1:=V;
成交量2:=REF(V,1);
成交量3:=REF(V,2);
成交量4:=REF(V,3);
成交量5:=REF(V,4);
成交量6:=REF(V,5);
成交量7:=REF(V,6);
五日均量:EMA(VOL,5),LINETHICK0;
十日均量:EMA(VOL,10),LINETHICK0;
昨最低:最低价2,LINETHICK0;
{中线:0,COLORffffff,dotline,precis2;}
DRAWTEXTABS(10,5,”+’日期 ‘+’ ‘+ ‘开盘价’+’ ‘+ ‘收盘价’+’ ‘+ ‘最高价’+’ ‘+ ‘最低价’+’ ‘+ ‘预测一’+’ ‘+ ‘预测二’+’ ‘+ ‘涨 幅%’+’ ‘+ ‘今高昨低比’+’ ‘+ ‘成交量’),COLORyellow,LINETHICK2;
DRAWTEXTABS(10,20,NUMTOSTR(日0)+’日’), COLORgreen,LINETHICK2;
DRAWTEXTABS(10,40,NUMTOSTR(日1)+’日’), COLORgreen,LINETHICK2;
DRAWTEXTABS(10,60,NUMTOSTR(日2)+’日’), COLORgreen,LINETHICK2;
DRAWTEXTABS(10,80,NUMTOSTR(日3)+’日’), COLORgreen,LINETHICK2;
DRAWTEXTABS(10,100,NUMTOSTR(日4)+’日’), COLORgreen,LINETHICK2;
DRAWTEXTABS(10,120,NUMTOSTR(日5)+ ‘日’), COLORgreen,LINETHICK2;
DRAWTEXTABS(10,140,NUMTOSTR(日6)+ ‘日’), COLORgreen,LINETHICK2;
DRAWTEXTABS(50,20,’ ‘+NUMTOSTRN(开盘价1,2)+’ ‘+NUMTOSTRN(收盘价1,2)+’ ‘+NUMTOSTRN(最高价1,2)),COLORD3A9FF,LINETHICK2;
DRAWTEXTABS(50,40,’ ‘+NUMTOSTRN(开盘价2,2)+’ ‘+NUMTOSTRN(收盘价2,2)+’ ‘+NUMTOSTRN(最高价2,2)+’ ‘+NUMTOSTRN(最低价2,2)),COLORD3A9FF,LINETHICK2;
DRAWTEXTABS(50,60,’ ‘+NUMTOSTRN(开盘价3,2)+’ ‘+NUMTOSTRN(收盘价3,2)+’ ‘+NUMTOSTRN(最高价3,2)+’ ‘+NUMTOSTRN(最低价3,2)),COLORD3A9FF,LINETHICK2;
DRAWTEXTABS(50,80,’ ‘+NUMTOSTRN(开盘价4,2)+’ ‘+NUMTOSTRN(收盘价4,2)+’ ‘+NUMTOSTRN(最高价4,2)+’ ‘+NUMTOSTRN(最低价4,2)),COLORD3A9FF,LINETHICK2;
DRAWTEXTABS(50,100,’ ‘+NUMTOSTRN(开盘价5,2)+’ ‘+NUMTOSTRN(收盘价5,2)+’ ‘+NUMTOSTRN(最高价5,2)+’ ‘+NUMTOSTRN(最低价5,2)),COLORD3A9FF,LINETHICK2;
DRAWTEXTABS(50,120,’ ‘+NUMTOSTRN(开盘价6,2)+’ ‘+NUMTOSTRN(收盘价6,2)+’ ‘+NUMTOSTRN(最高价6,2)+’ ‘+NUMTOSTRN(最低价6,2)),COLORD3A9FF,LINETHICK2;
DRAWTEXTABS(50,140,’ ‘+NUMTOSTRN(开盘价7,2)+’ ‘+NUMTOSTRN(收盘价7,2)+’ ‘+NUMTOSTRN(最高价7,2)+’ ‘+NUMTOSTRN(最低价7,2)),COLORD3A9FF,LINETHICK2;
DRAWTEXTABS(50,20,’ ‘+NUMTOSTRn(最低价1,2)),COLORRED,LINETHICK2;
dRAWTEXTABS(50,20,’ ‘+NUMTOSTRN(银1,2)+’ ‘+NUMTOSTRN(金1,2)),COLORffff00,LINETHICK2;
DRAWTEXTABS(50,40,’ ‘+NUMTOSTRN(银2,2)+’ ‘+NUMTOSTRN(金2,2)),COLORffffff,LINETHICK2;
DRAWTEXTABS(50,60,’ ‘+NUMTOSTRN(银3,2)+’ ‘+NUMTOSTRN(金3,2)),COLORffffff,LINETHICK2;
DRAWTEXTABS(50,80,’ ‘+NUMTOSTRN(银4,2)+’ ‘+NUMTOSTRN(金4,2)),COLORffffff,LINETHICK2;
DRAWTEXTABS(50,100,’ ‘+NUMTOSTRN(银5,2)+’ ‘+NUMTOSTRN(金5,2)),COLORffffff,LINETHICK2;
DRAWTEXTABS(50,120,’ ‘+NUMTOSTRN(银6,2)+’ ‘+NUMTOSTRN(金6,2)),COLORffffff,LINETHICK2;
DRAWTEXTABS(50,140,’ ‘+NUMTOSTRN(银7,2)+’ ‘+NUMTOSTRN(金7,2)),COLORffffff,LINETHICK2;
DRAWTEXTABS(50,20,’ ‘+NUMTOSTRN(涨幅0,2)+’ ‘+NUMTOSTRN(今高昨低比1,2)+’ ‘+NUMTOSTRN(成交量1,0)),COLORffffff,LINETHICK2;
DRAWTEXTABS(50,40,’ ‘+NUMTOSTRN(涨幅1,2)+’ ‘+NUMTOSTRN(今高昨低比2,2)+’ ‘+NUMTOSTRN(成交量2,0)),COLORffffff,LINETHICK2;
DRAWTEXTABS(50,60,’ ‘+NUMTOSTRN(涨幅2,2)+’ ‘+NUMTOSTRN(今高昨低比3,2)+’ ‘+NUMTOSTRN(成交量3,0)),COLORffffff,LINETHICK2;
DRAWTEXTABS(50,80,’ ‘+NUMTOSTRN(涨幅3,2)+’ ‘+NUMTOSTRN(今高昨低比4,2)+’ ‘+NUMTOSTRN(成交量4,0)),COLORffffff,LINETHICK2;
DRAWTEXTABS(50,100,’ ‘+NUMTOSTRN(涨幅4,2)+’ ‘+NUMTOSTRN(今高昨低比5,2)+’ ‘+NUMTOSTRN(成交量5,0)),COLORffffff,LINETHICK2;
DRAWTEXTABS(50,120,’ ‘+NUMTOSTRN(涨幅5,2)+’ ‘+NUMTOSTRN(今高昨低比6,2)+’ ‘+NUMTOSTRN(成交量6,0)),COLORffffff,LINETHICK2;
DRAWTEXTABS(50,140,’ ‘+NUMTOSTRN(涨幅6,2)+’ ‘+NUMTOSTRN(今高昨低比7,2)+’ ‘+NUMTOSTRN(成交量7,0)),COLORffffff,LINETHICK2;
评论(0)