原帖由 logoslogos 于 2013-7-14 10:08 发表 ![]()
6 n0 ?1 Z2 M- T& s ^ wY兄,还有一个思路,能否实现再编写一个:
/ C2 y' O# H* V1.准许设定开始的日期(日,周,月)
* E( k0 {! f& U. h* v3 w: I5 z4 m2.能否搞个用于5分钟图的,并且开始点能否让自如输入设定?这样就可以用于期货的日内短线了。。。我的意思您能明白吧? 万分感谢; M0 i6 m7 P- o6 _& ^
...
: e+ V9 U. u T) L1 V1 E& `4 f; X, Q3 f% I
有二法可编之
2 R' F5 `- d( j$ U! T第一法:是输入日期如:+ t' \# b: d; U' b1 L
2 ^9 G0 P; Y6 n7 t) \2 n1010924 -----> 20010924
# ]- g. b+ v& ^, a: e20130124------>公式给入1130124
! n0 ?) [5 P9 q- K. `! X这是日K线情形,至于周或月飞狐似乎无直接可引用的函数, 在周或月可用第二法+ S4 e! K/ [& W! ~1 A0 _2 I
日期长度超过,可自行加上drawnumber函数
2 j% }1 D+ `7 s8 q/ D' O- {----------------------------------------------------------------------------------$ ~" w; L4 Q; A& j
$ N+ Y5 G: n3 }) c" q+ kdat1:=barslast(date=1010924);
2 B( F! ^5 {2 D8 k* Lstickline(mod(dat1,15)=0,hhv(h,count(c,0)),llv(L,count(c,0)),1,0),color00ffff,pointdot;
( {. S, W4 W N! R' Udrawnumber(dat1<=360 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1,0),colorff00ff,shift1;
7 J3 Z6 }( n& ^( d" L mdrawnumber(dat1>360 and dat1<720 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1-360,0),colorff00ff,shift1;
: h2 A O8 K+ w' D% u6 wdrawnumber(dat1>720 and dat1<1080 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1-720,0),colorff00ff,shift1;- A! ^& _& p5 g+ t
drawnumber(dat1>1080 and dat1<1440 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1-1080,0),colorff00ff,shift1;
' I( W2 [2 f" [2 u1 pdrawnumber(dat1>1440 and dat1<11800 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1-1440,0),colorff00ff,shift1;$ u8 _4 y) V: V2 X0 v& s/ b' s
. w, a* ]! i0 N1 |. g6 r
第二法:是移动飞狐老鼠十字光标到目标日期K线(日周月均可):
e) ?- ]0 N3 | R1 f, B" _ U
8 L, c0 B6 @! P0 Y+ [此法是直接沟通公式与老鼠十字光标,应用到sysparam函数,所以执行极慢
* z* z S1 c: F* W. i" d. ? ?' ?" ]; B8 Q% U9 |" E8 L( b6 Y
dat2:=barslast(barpos=sysparam(1));
3 h! a1 d3 R0 s7 |! i7 {8 {stickline(mod(dat2,15)=0,hhv(h,count(c,0)),llv(L,count(c,0)),1,0),color0000ff,pointdot;
* J! {' P- j, }1 R1 rdrawnumber(dat2<=360 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2,0),colorffffff,shift1;& k! I7 |% T. q2 G8 _* h e# g. ^
drawnumber(dat2>360 and dat2<720 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2-360,0),colorffffff,shift1;( f/ h4 a" v, T0 O: \- |
drawnumber(dat2>720 and dat2<1080 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2-720,0),colorffffff,shift1;4 I8 C6 _) F8 c D8 R6 J. k0 G
drawnumber(dat2>1080 and dat2<1440 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2-1080,0),colorffffff,shift1;0 y& s: Y7 H* r0 Z
drawnumber(dat2>1440 and dat2<11800 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2-1440,0),colorffffff,shift1;8 j* [( f& _* e! q
) ?- H) L+ [4 o* P
我自用的是公式直接自动定位波浪高低点起位,但此法未曾外给 (这与先前说过的含二个理念无关)7 h! Q" J$ e" [4 R" P! j. }
至于5分钟的分时公式,抱歉未编过,你可以用上面公式商请会编分时公式的朋友依样修改
7 h0 |' {, G: i( \5 K
! i$ {8 O/ d/ _! d4 U[ 本帖最后由 ycng 于 2013-7-14 16:52 编辑 ] |