Board logo

标题: 【Trendline LE】 [打印本页]

作者: 龙听    时间: 2022-11-3 15:26     标题: 【Trendline LE】

  1. [IntrabarOrderGeneration = false]
  2. inputs:
  3.         TLRef( 1 ) ;                                                                     
  4.                          

  5. variables:
  6.         var0( TL_GetBeginDate( TLRef ) ),
  7.         var1( TL_GetBeginTime( TLRef ) ),
  8.         var2( false ) ;

  9. var2 = ( Date = var0 and ( BarType = 2 or ( BarType = 1 and Time >= var1 ) ) )
  10. or Date > var0 ;

  11. condition1 = var2 and High < TL_GetValue( TLRef, Date, Time ) ;
  12. if condition1 then
  13.         Buy next bar at TL_GetValue( TLRef, Date next bar, Time next bar ) stop ;
复制代码





欢迎光临 龙听期货论坛 (http://www.qhlt.cn/) Powered by Discuz! 7.2