- UID
- 2
- 积分
- 2892947
- 威望
- 1396505 布
- 龙e币
- 1496442 刀
- 在线时间
- 13326 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-12-26
|
【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 ;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|