股票论坛

 找回密码
 免费注册
搜索
热搜: 活动 交友 discuz
查看: 3306|回复: 2
打印 上一主题 下一主题

请新朝阳老师屈尊移驾

[复制链接]

县令

Rank: 2

听众
1
跳转到指定楼层
楼主
发表于 2015-12-6 16:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
10爱心果
请朝阳老师帮我修改下,这个指标通不过,谢谢老师

N1(0,999,1,1);
P1(0,999,5,1);
P2(0,999,10,1);
P3(0,999,30,1);

   
a1:=(ORDERAMT(1,2)-ORDERAMT(2,2))/ORDERAMT(1,0);
B:SUM(a1,N1),stick;
STICKLINE(b>0,0,b,6,0 ),COLOR0022FF;
STICKLINE(b>0,0,b,4,0 ),COLORBB22CC;
STICKLINE(b<0,0,b,6,0 ),COLORFFFF00;
STICKLINE(b<0,0,b,4,0 ),COLOR00FFFF;
5日:MA(b,P1);
10日:MA(b,P2);
30日:MA(b,P3);

爵★★★

Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21

听众
5
沙发
发表于 2015-12-6 20:51 | 只看该作者
你好,ORDERAMT函数我没找到看后面分析应倾向于成交买卖的力度均值,类似L2。
我用我使用的含买卖量的替换了如下,但此公式,还未解决,要找其它回复或问老师

A1:=IF(C>REF(C,1) AND V>500 AND V<=1000,1,0);
A2:=SUM(A1,0);
A3:=600*A2;
A4:=IF(C>REF(C,1) AND V>1000 AND V<=1500,1,0);
A5:=SUM(A4,0);
A6:=1200*A5;
A7:=IF(C>REF(C,1) AND V>1500 AND V<=2000,1,0);
A8:=SUM(A7,0);
A9:=1700*A8;
A10:=IF(C>REF(C,1) AND V>2000 AND V<=2500,1,0);
A11:=SUM(A10,0);
A12:=2200*A11;
A13:=IF(C>REF(C,1) AND V>2500 AND V<=3000,1,0);
A14:=SUM(A13,0);
A15:=2700*A14;
A16:=IF(C>REF(C,1) AND V>3000 AND V<=3500,1,0);
A17:=SUM(A16,0);
A18:=3200*A17;
A19:=IF(C>REF(C,1) AND V>3500 AND V<=4000,1,0);
A20:=SUM(A19,0);
A21:=3700*A20;
A22:=IF(C>REF(C,1) AND V>4000 AND V<=4500,1,0);
A23:=SUM(A22,0);
A24:=4300*A23;
A25:=IF(C>REF(C,1) AND V>4500 AND V<=5000,1,0);
A26:=SUM(A25,0);
A27:=4700*A26;
A28:=IF(C>REF(C,1) AND V>5000 AND V<=5500,1,0);
A29:=SUM(A28,0);
A30:=5200*A29;
A31:=IF(C>REF(C,1) AND V>5500 AND V<=6000,1,0);
A32:=SUM(A31,0);
A33:=5700*A32;
A34:=IF(C>REF(C,1) AND V>6000 AND V<=6500,1,0);
A35:=SUM(A34,0);
A36:=6200*A35;
A37:=IF(C>REF(C,1) AND V>6500 AND V<=7000,1,0);
A38:=SUM(A37,0);
A39:=6700*A38;
A40:=IF(C>REF(C,1) AND V>7000 AND V<=7500,1,0);
A41:=SUM(A40,0);
A42:=7200*A41;
A43:=IF(C>REF(C,1) AND V>7500 AND V<=8000,1,0);
A44:=SUM(A43,0);
A45:=7700*A44;
A46:=IF(C>REF(C,1) AND V>8000 AND V<=8500,1,0);
A47:=SUM(A46,0);
A48:=8200*A47;
A49:=IF(C>REF(C,1) AND V>8500 AND V<=9000,1,0);
A50:=SUM(A49,0);
A501:=8700*A50;
A502:=IF(C>REF(C,1) AND V>9000 AND V<=9500,1,0);
A503:=SUM(A502,0);
A504:=8700*A503;
A505:=IF(C>REF(C,1) AND V>9500 AND V<=10000,1,0);
A506:=SUM(A505,0);
A507:=9700*A506;
A508:=IF(C>REF(C,1) AND V>10000 AND V<=10500,1,0);
A509:=SUM(A508,0);
A510:=10200*A509;
A511:=IF(C>REF(C,1) AND V>10500 AND V<=11000,1,0);
A512:=SUM(A511,0);
A513:=10700*A512;
A514:=IF(C>REF(C,1) AND V>11000 AND V<=11500,1,0);
A515:=SUM(A514,0);
A516:=11200*A515;
A517:=IF(C>REF(C,1) AND V>11500 AND V<=12000,1,0);
A518:=SUM(A517,0);
A519:=11700*A518;
A520:=IF(C>REF(C,1) AND V>12000 AND V<=12500,1,0);
A521:=SUM(A520,0);
A522:=12200*A521;
A523:=IF(C>REF(C,1) AND V>12500 AND V<=13000,1,0);
A524:=SUM(A523,0);
A525:=12700*A524;
A526:=IF(C>REF(C,1) AND V>13000 AND V<=13500,1,0);
A527:=SUM(A526,0);
A528:=13200*A527;
A529:=IF(C>REF(C,1) AND V>13500 AND V<=14000,1,0);
A530:=SUM(A529,0);
A531:=13700*A530;
A532:=IF(C>REF(C,1) AND V>14000 AND V<=14500,1,0);
A533:=SUM(A532,0);
A534:=13700*A533;
A535:=IF(C>REF(C,1) AND V>14500 AND V<=15000,1,0);
A536:=SUM(A535,0);
A537:=13700*A536;
A538:=IF(C>REF(C,1) AND V>15000 AND V<=16000,1,0);
A539:=SUM(A535,0);
A540:=15500*A536;
A541:=IF(C>REF(C,1) AND V>16000 AND V<=17000,1,0);
A542:=SUM(A541,0);
A543:=16500*A542;
A544:=IF(C>REF(C,1) AND V>20000 AND V<=25000,1,0);
A545:=SUM(A544,0);
A546:=22000*A545;
大单买:=A3+A6+A9+A12+A15+A18+A21+A24+A27+A30+A33+A36+A39+A42+A45+A48+A501+A503+A507+A510+A513+A516+A519+A522+A525+A528+A531+A534+A537+A540+A543+A546;

A51:=IF(C<REF(C,1) AND V>500 AND V<=1000,1,0);
A52:=SUM(A51,0);
A53:=600*A52;
A54:=IF(C<REF(C,1) AND V>1000 AND V<=1500,1,0);
A55:=SUM(A54,0);
A56:=1200*A55;
A57:=IF(C<REF(C,1) AND V>1500 AND V<=2000,1,0);
A58:=SUM(A7,0);
A59:=1700*A58;
A60:=IF(C<REF(C,1) AND V>2000 AND V<=2500,1,0);
A61:=SUM(A60,0);
A62:=2200*A61;
A63:=IF(C<REF(C,1) AND V>2500 AND V<=3000,1,0);
A64:=SUM(A63,0);
A65:=2700*A64;
A66:=IF(C<REF(C,1) AND V>3000 AND V<=3500,1,0);
A67:=SUM(A66,0);
A68:=3200*A67;
A69:=IF(C<REF(C,1) AND V>3500 AND V<=4000,1,0);
A70:=SUM(A69,0);
A71:=3700*A70;
A72:=IF(C<REF(C,1) AND V>4000 AND V<=4500,1,0);
A73:=SUM(A72,0);
A74:=4300*A73;
A75:=IF(C<REF(C,1) AND V>4500 AND V<=5000,1,0);
A76:=SUM(A75,0);
A77:=4700*A76;
A78:=IF(C<REF(C,1) AND V>5000 AND V<=5500,1,0);
A79:=SUM(A78,0);
A80:=5200*A79;
A81:=IF(C<REF(C,1) AND V>5500 AND V<=6000,1,0);
A82:=SUM(A81,0);
A83:=5700*A82;
A84:=IF(C<REF(C,1) AND V>6000 AND V<=6500,1,0);
A85:=SUM(A84,0);
A86:=6200*A85;
A87:=IF(C<REF(C,1) AND V>6500 AND V<=7000,1,0);
A88:=SUM(A87,0);
A89:=6700*A88;
A90:=IF(C<REF(C,1) AND V>7000 AND V<=7500,1,0);
A91:=SUM(A90,0);
A92:=7200*A91;
A93:=IF(C<REF(C,1) AND V>7500 AND V<=8000,1,0);
A94:=SUM(A93,0);
A95:=7700*A94;
A96:=IF(C<REF(C,1) AND V>8000 AND V<=8500,1,0);
A97:=SUM(A96,0);
A98:=8200*A97;
A99:=IF(C<REF(C,1) AND V>8500 AND V<=9000,1,0);
A100:=SUM(A99,0);
A101:=8700*A100;
A102:=IF(C<REF(C,1) AND V>9000 AND V<=9500,1,0);
A103:=SUM(A102,0);
A104:=8700*A103;
A105:=IF(C<REF(C,1) AND V>9500 AND V<=10000,1,0);
A106:=SUM(A105,0);
A107:=9700*A106;
A108:=IF(C<REF(C,1) AND V>10000 AND V<=10500,1,0);
A109:=SUM(A108,0);
A110:=10200*A109;
A111:=IF(C<REF(C,1) AND V>10500 AND V<=11000,1,0);
A112:=SUM(A111,0);
A113:=10700*A112;
A114:=IF(C<REF(C,1) AND V>11000 AND V<=11500,1,0);
A115:=SUM(A114,0);
A116:=11200*A115;
A117:=IF(C<REF(C,1) AND V>11500 AND V<=12000,1,0);
A118:=SUM(A117,0);
A119:=11700*A118;
A120:=IF(C<REF(C,1) AND V>12000 AND V<=12500,1,0);
A121:=SUM(A120,0);
A122:=12200*A121;
A123:=IF(C<REF(C,1) AND V>12500 AND V<=13000,1,0);
A124:=SUM(A123,0);
A125:=12700*A124;
A126:=IF(C<REF(C,1) AND V>13000 AND V<=13500,1,0);
A127:=SUM(A126,0);
A128:=13200*A127;
A129:=IF(C<REF(C,1) AND V>13500 AND V<=14000,1,0);
A130:=SUM(A129,0);
A131:=13700*A130;
A132:=IF(C<REF(C,1) AND V>14000 AND V<=14500,1,0);
A133:=SUM(A132,0);
A134:=13700*A133;
A135:=IF(C<REF(C,1) AND V>14500 AND V<=15000,1,0);
A136:=SUM(A135,0);
A137:=13700*A136;
A138:=IF(C<REF(C,1) AND V>15000 AND V<=16000,1,0);
A139:=SUM(A138,0);
A140:=15500*A139;
A141:=IF(C<REF(C,1) AND V>20000 AND V<=25000,1,0);
A142:=SUM(A141,0);
A143:=22000*A142;
大单卖:=A53+A56+A59+A62+A65+A68+A71+A74+A77+A80+A83+A86+A89+A92+A95+A98+A101+A104+A107+A110+A113+A116+A119+A122+A125+A128+A131+A134+A137+A140+A143;
X:=大单买-大单卖;
A0:=SUM(X,2)/2-SUM(X,1)/SUM(X,1);

Y:=SUM(X,0);
XG1:=SUM(X,0)/SUM(ABS(大单买)+ABS(大单卖),0);
XG:=XG1>1;
B:SUM(A0,N1);

M5日:MA(B,P1);
M10日:MA(B,P2);
M30日:MA(B,P3);
回复

使用道具 举报

爵★★★

Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21

听众
5
板凳
发表于 2015-12-6 21:00 | 只看该作者
参数按原数据N1,P1,P2,P3,分别取1,5,10,30
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|站点首页|手机版|小黑屋|帮助中心|桂ICP备14001964号

GMT+8, 2024-11-25 03:54 , Processed in 0.138111 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表