|
楼主 |
发表于 2009-12-27 10:38 PM
|
显示全部楼层
偶们感觉派有那么点优点, 敢想, 还敢做, 但本人有点笨.
这是偶囫囵吞枣发现的的autotrade 基本的东西. tradestation call this strategy:
inputs: Price( Close ), FastLength( 9 ), SlowLength( 18 ) ;
variables: FastAvg( 0 ), SlowAvg( 0 ) ;
FastAvg = AverageFC( Price, FastLength ) ;
SlowAvg = AverageFC( Price, SlowLength ) ;
if CurrentBar > 1 and FastAvg crosses over SlowAvg then
{ CB > 1 check used to avoid spurious cross confirmation at CB = 1 }
Buy ( "MA2CrossLE" ) next bar at market ;
{ ** Copyright (c) 1991-2003 TradeStation Technologies, Inc. All rights reserved. **
** TradeStation reserves the right to modify or overwrite this strategy component
with each release. ** }
+++++++++++++
问题是为什么没有timeframe 参数呢? 比如说 5min
那位老股民扫扫盲..
谢先. |
|