原帖由 logoslogos 于 2013-7-14 10:08 发表 ![]()
O2 ?. T% f9 o( A4 WY兄,还有一个思路,能否实现再编写一个:
7 h, a/ o" s% G$ M. C1.准许设定开始的日期(日,周,月)" S+ {. w& ?/ S( Z; H
2.能否搞个用于5分钟图的,并且开始点能否让自如输入设定?这样就可以用于期货的日内短线了。。。我的意思您能明白吧? 万分感谢" R6 U& m7 a, @$ m' l7 t
... 3 [, ]4 B1 R: [- y- a! e, H' h5 {
) g: j4 b9 M# v7 T6 `/ p
有二法可编之
2 W* {# {' y) s9 `0 g第一法:是输入日期如:
H4 h- K- d1 z
8 T& L3 ?3 U( c y1 V, N3 u1010924 -----> 200109245 |4 e9 \5 k" W @+ l; q0 [
20130124------>公式给入11301245 m! y/ V8 s1 k
这是日K线情形,至于周或月飞狐似乎无直接可引用的函数, 在周或月可用第二法" g( c8 e6 H+ B* }5 ^1 m0 o+ p: C
日期长度超过,可自行加上drawnumber函数2 a9 Y1 e2 R, o- |$ x+ w; e* M
----------------------------------------------------------------------------------9 f) o! V7 @+ Z( V$ g" b
( y! S* G/ c: m# tdat1:=barslast(date=1010924);
G* R0 v% y6 y* b0 b* nstickline(mod(dat1,15)=0,hhv(h,count(c,0)),llv(L,count(c,0)),1,0),color00ffff,pointdot;, c* j) {9 t# A9 m& T5 M) ~% g2 O
drawnumber(dat1<=360 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1,0),colorff00ff,shift1;
. C: n' P0 @, y" Ndrawnumber(dat1>360 and dat1<720 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1-360,0),colorff00ff,shift1;
3 h4 q. x/ R8 ^3 @' Tdrawnumber(dat1>720 and dat1<1080 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1-720,0),colorff00ff,shift1;
8 r/ |3 t8 O8 A; F' ]drawnumber(dat1>1080 and dat1<1440 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1-1080,0),colorff00ff,shift1;% }3 [, N% Z5 |; ~# Q- A
drawnumber(dat1>1440 and dat1<11800 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1-1440,0),colorff00ff,shift1;; `5 W: ~0 j% K- `, l
1 `* [7 F2 ~) a
第二法:是移动飞狐老鼠十字光标到目标日期K线(日周月均可):
9 R" o @2 e1 ]% R7 D$ s6 I9 A, ~- B6 U+ M1 z9 l3 \% Q5 x
此法是直接沟通公式与老鼠十字光标,应用到sysparam函数,所以执行极慢 ?& z4 P5 H- X, W, e/ s) U
7 Z- M8 A( F: R+ [- S: S: udat2:=barslast(barpos=sysparam(1));
0 j7 l- V/ w* ^stickline(mod(dat2,15)=0,hhv(h,count(c,0)),llv(L,count(c,0)),1,0),color0000ff,pointdot; m# a, m' ]$ u Z4 S7 G
drawnumber(dat2<=360 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2,0),colorffffff,shift1;
' R- n' Q( ]/ Ddrawnumber(dat2>360 and dat2<720 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2-360,0),colorffffff,shift1;1 g" B& k/ }4 N: M- {! ]/ Y8 e/ P2 x
drawnumber(dat2>720 and dat2<1080 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2-720,0),colorffffff,shift1;
& v: i7 r& t1 a+ B" ydrawnumber(dat2>1080 and dat2<1440 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2-1080,0),colorffffff,shift1;
) B; r P! q& ~2 c( Z! q4 \7 ]1 }drawnumber(dat2>1440 and dat2<11800 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2-1440,0),colorffffff,shift1;
9 g }8 Q8 x$ J9 ^% H( J: j 3 T/ C! W5 X6 B: h
我自用的是公式直接自动定位波浪高低点起位,但此法未曾外给 (这与先前说过的含二个理念无关)3 N1 u) ?0 Z) W/ g. o
至于5分钟的分时公式,抱歉未编过,你可以用上面公式商请会编分时公式的朋友依样修改
# U- n4 p7 q! n! E7 g" u' ^! ^1 s% @& t! {5 p4 |
[ 本帖最后由 ycng 于 2013-7-14 16:52 编辑 ] |