- UID
- 2
- 积分
- 2893117
- 威望
- 1396590 布
- 龙e币
- 1496527 刀
- 在线时间
- 13326 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-12-26
|
【C_Hammer_HangingMan】
- inputs:
- Len( numericsimple ),
- Factor( numericsimple ),
- oHammer( numericref ),
- oHangingMan( 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( Close, Len ) ;
- var4 = XAverage( var2, Len ) ;
- oHammer = 0 ;
- oHangingMan = 0 ;
- condition1 = var2 < var4
-
- and var2 > 0
-
- and var1 > MedianPrice
-
- and var1 - Low > Factor * var2
-
- and High - var0 < var2 ;
- if condition1
-
- then
- if Close < var3 then
-
- oHammer = 1
- else if Close > var3 then
-
- oHangingMan = 1 ;
- C_Hammer_HangingMan = 1 ;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|