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