- UID
- 2
- 积分
- 2874674
- 威望
- 1387366 布
- 龙e币
- 1487308 刀
- 在线时间
- 13156 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
【C_MornDoji_EveDoji】
- inputs:
- Len( numericsimple ),
- Percent( numericsimple ),
- oMorningDojiStar( numericref ),
- oEveningDojiStar( numericref ) ;
- variables:
- var0( 0 ),
- var1( 0) ,
- var2( 0 ),
- var3( 0 ),
- var4( 0 ) ;
- var0 = MaxList( Close, Open ) ;
- var1 = MinList( Close, Open ) ;
- var2 = var0 - var1 ;
- var3 = XAverage( var2, Len ) ;
- var4 = High - Low ;
- oMorningDojiStar = 0 ;
- oEveningDojiStar = 0 ;
- if CurrentBar > 2 then
- begin
- condition1 = Close[2] < Open[2]
-
- and var2[2] > var3[2]
-
- and var0[1] < var1[2]
-
- and var2[1] <= var4[1] * Percent * .01
-
- and Close > Open
-
- and var0 > var1[2];
- if condition1
-
- then
- oMorningDojiStar = 1
- else
- begin
- condition1 = Close[2] > Open[2]
-
- and var2[2] > var3[2]
-
- and var1[1] > var0[2]
-
- and var2[1] <= var4[1] * Percent * .01
-
- and Close < Open
-
- and var1 < var0[2];
- if condition1
-
- then
- oEveningDojiStar = 1 ;
- end;
- end ;
- C_MornDoji_EveDoji = 1 ;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|