- UID
- 2
- 积分
- 2874604
- 威望
- 1387331 布
- 龙e币
- 1487273 刀
- 在线时间
- 13155 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
【New High LE】
- [IntrabarOrderGeneration = false]
- inputs: PeriodType( 1 ) ;
- variables: var0( BarType ), var1( false ), var2( 1000000 ) ;
-
- condition1 = ( PeriodType = 2 and var0 <= 2 and Date <> Date next bar )
- or ( PeriodType = 3 and var0 <= 3 and DayOfWeek( Date) > DayOfWeek( Date next bar ) )
- or ( PeriodType = 4 and var0 <= 4 and Month( Date ) <> Month( Date next bar ) )
- or ( PeriodType = 5 and var0 <= 4 and Year( Date ) <> Year( Date next bar ) );
- if condition1
- then
- var1 = true
- else
- var1 = false ;
- condition1 = ( CurrentBar = 1 and ( PeriodType <= 1 or PeriodType > 5 ) )
- or var1[1]
- or High > var2 ;
- if condition1
- then
- var2 = High ;
- if var1 = false then
- Buy( "NewHi" ) next at bar at var2 + 1 point stop ;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|