【阳光飞狐__与财富同行】

标题: 会编写飞狐指标的朋友请进 [打印本页]

作者: logoslogos    时间: 2013-7-13 22:35
标题: 会编写飞狐指标的朋友请进
请看一张图,简单的一招,实现江恩抓取拐点的目的、指标要求:从股票周线图第一根K线算起(上市第一周)每15周画一个竖线,目的就是跟踪抓取拐点周。$ e3 M" l0 T" {7 y( m9 [% r
效果见附图。。。。胜率很高,足以实战了
( F  @+ E& Z. S9 X6 s
* m6 b. U" I: v7 n7 B对能出手编写的朋友,[attach]109846[/attach]先表示真心感谢。。。
作者: ycng    时间: 2013-7-14 07:52
stickline(mod(barpos,15)=0,hhv(h,count(c,0)),llv(L,count(c,0)),1,0),color00ffff,pointdot;! B& p9 X( X2 @7 M. C
drawnumber(mod(barpos,15)=0,hhv(h,count(c,0)),barpos,0),colorff00ff,shift1;
$ x/ I* v6 x" C  v2 J" \0 n$ z( Z$ f2 B+ u  [
[attach]109848[/attach]
( [" w! b  l+ E7 g4 J0 {" }
. T  J+ x8 n9 p/ c

; N8 K6 a6 N) F; ]+ Y: \/ t[ 本帖最后由 ycng 于 2013-7-14 09:59 编辑 ]
作者: logoslogos    时间: 2013-7-14 09:37
[attach]109849[/attach]多谢Y兄。。但我的指标建不了,一引入,K 线没有了。。。。怎么解决?多谢
作者: logoslogos    时间: 2013-7-14 09:42
哦。。我鼓捣出来了。。不用麻烦了
作者: logoslogos    时间: 2013-7-14 10:08
Y兄,还有一个思路,能否实现再编写一个:5 h2 G) ^! G( [( e
1.准许设定开始的日期(日,周,月), E6 e3 K( b* t) e% w! {
2.能否搞个用于5分钟图的,并且开始点能否让自如输入设定?这样就可以用于期货的日内短线了。。。我的意思您能明白吧?   万分感谢
4 |% v; q  O- M6 W; H2 Q( l0 r. A; b0 Q7 _9 d0 F* ?
另外:那个显示的数字,都不要大于360,即375重复显示为15;390重复显示为30;。。。。405=45。。。720=360,,就是总在15到360之前循环。。  {* P: v  T" o& }

0 C; R# g7 i3 V. E. g[ 本帖最后由 logoslogos 于 2013-7-14 10:17 编辑 ]
作者: MAOJIE929292    时间: 2013-7-14 13:35
飞狐不是有等周期吗
作者: ycng    时间: 2013-7-14 16:46
原帖由 logoslogos 于 2013-7-14 10:08 发表
1 `' T* p. H' z9 W8 |0 {$ ^Y兄,还有一个思路,能否实现再编写一个:6 ?5 |( Z: H# Z
1.准许设定开始的日期(日,周,月)
% U* Y  l+ H: Y: g3 b2.能否搞个用于5分钟图的,并且开始点能否让自如输入设定?这样就可以用于期货的日内短线了。。。我的意思您能明白吧?   万分感谢! }# v  k& Y$ k
...
+ e, D7 o" r3 A

' R6 o8 ~8 [- A+ K有二法可编之
* a" u5 Q, X5 e  ]: U/ T0 c5 G第一法:是输入日期如:1 g2 R* I5 r% Q1 \0 {; E) E* {1 F

8 q  m, T/ c, L) [2 g5 e; W1010924 -----> 200109248 u- ~/ |( @' ~
20130124------>公式给入1130124
) C) f0 u2 q0 Y, ^! i4 h+ L8 P这是日K线情形,至于周或月飞狐似乎无直接可引用的函数, 在周或月可用第二法  w1 B( [6 m' `4 x% d) I
日期长度超过,可自行加上drawnumber函数
- e% N* R5 M! j0 D----------------------------------------------------------------------------------  _& x6 M+ Q# M* `5 T( _+ _
% J* a, a5 l$ h7 X& c0 h* \* l  t3 b
dat1:=barslast(date=1010924);
6 K2 K5 T. L$ ^2 u9 U6 h& G1 Fstickline(mod(dat1,15)=0,hhv(h,count(c,0)),llv(L,count(c,0)),1,0),color00ffff,pointdot;
1 p: c; }0 E# M* pdrawnumber(dat1<=360 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1,0),colorff00ff,shift1;
7 H- O# z0 Q3 r. }drawnumber(dat1>360 and dat1<720 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1-360,0),colorff00ff,shift1;
3 @6 P/ K" ~* Y% M; w8 {: u( s* `drawnumber(dat1>720 and dat1<1080 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1-720,0),colorff00ff,shift1;
  a; G; ?. b! E3 S4 n( `drawnumber(dat1>1080 and dat1<1440 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1-1080,0),colorff00ff,shift1;
# t. [& v9 {9 I9 ^6 Edrawnumber(dat1>1440 and dat1<11800 and mod(dat1,15)=0,hhv(h,count(c,0)),dat1-1440,0),colorff00ff,shift1;
+ c" m1 h/ o  P. _
# P& |. e7 E9 w9 e第二法:是移动飞狐老鼠十字光标到目标日期K线(日周月均可):
& @" ^( l3 K( K2 m( F% a7 k% o% v% h$ |) |0 @1 y3 ~
此法是直沟通公式与老鼠十字光标,应用到sysparam函数,所以执行极慢; b9 d- [2 P9 J9 }
- w) d$ S" p1 f6 H+ _
dat2:=barslast(barpos=sysparam(1));
( l, q) G7 G# Z  q# H3 |: ]. h' hstickline(mod(dat2,15)=0,hhv(h,count(c,0)),llv(L,count(c,0)),1,0),color0000ff,pointdot;
: E1 m( G# X8 \3 t( {drawnumber(dat2<=360 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2,0),colorffffff,shift1;
/ k, ^6 n& g  G! [7 Vdrawnumber(dat2>360 and dat2<720 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2-360,0),colorffffff,shift1;
3 y! O& N; C: ]0 Cdrawnumber(dat2>720 and dat2<1080 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2-720,0),colorffffff,shift1;6 j3 _2 h( u7 n! s4 x2 G3 L
drawnumber(dat2>1080 and dat2<1440 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2-1080,0),colorffffff,shift1;$ W# ^  [) v2 W. v6 x, M. K
drawnumber(dat2>1440 and dat2<11800 and mod(dat2,15)=0,hhv(h,count(c,0)),dat2-1440,0),colorffffff,shift1;; Y9 S: y  f; R# M

/ L' J7 C6 a8 J3 k; N用的是公式直接自动定位波浪高低点起位,但此法未曾外给  (这与先前说过的含二个理念无关)! q9 q9 t, ]8 f8 W, v8 h" i: X* X8 a
至于5分钟的分时公式,抱歉未编过,你可以用上面公式商请会编分时公式的朋友依样修改
9 v4 t$ v: P' q2 g" o# {
" @* p; u  a9 f) b, z1 u9 x6 j[ 本帖最后由 ycng 于 2013-7-14 16:52 编辑 ]
作者: logoslogos    时间: 2013-7-15 13:11
万分感谢。。这个够用了。。。
作者: samyongq    时间: 2013-7-19 01:14

作者: guolitingpy0925    时间: 2013-7-20 15:25





欢迎光临 【阳光飞狐__与财富同行】 (http://bbs.88158.cn/) Powered by Discuz! X3.2