|
||||||||||||||||||||
|
||||||||||||||||||||
| Special offer: buy AmiBroker and EOD+Real-Time Data |
|
Type : Strategy, Name : Trend Cont Factor inputs: Length( 35 ) ; variables: Change( 0 ), PlusChange( 0 ), MinusChange( 0 ), PlusCF( 0 ), MinusCF( 0 ), PlusTCF( 0 ), MinusTCF( 0 ) ; Change = Close - Close[1] ; PlusChange = iff( Change > 0, Change, 0 ) ; MinusChange = iff( Change < 0, -Change, 0 ) ; PlusCF = iff( PlusChange = 0, 0, PlusChange + PlusCF[1] ) ; MinusCF = iff( MinusChange = 0, 0, MinusChange + MinusCF[1] ) ; PlusTCF = Summation( PlusChange - MinusCF, Length ) ; MinusTCF = Summation( MinusChange - PlusCF, Length ) ; if PlusTCF > 0 then Buy next bar at market else if MinusTCF > 0 then Sell next bar at market ; This code will be available for download from www.tradestation2000i.com . Select Support -> EasyLanguage -> Strategies and Indicators -> Traders' Tips, and look for the file TrendContFactor.Els. --Ramesh Dhingra Director, EasyLanguage Consulting TradeStation Technologies, Inc. (formerly Omega Research, Inc.), a wholly owned subsidiary of TradeStation Group, Inc. http://www.TradeStation.com Code:
all systems for TradeStation all systems
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators and systems are submitted by anonymous users. Therefore S4T™ does not take any responsibility for it's quality. If you use any of this information, use it at your own risk. You are responsible for your own trading decisions. Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade. In no case will S4T™ be responsible for your trading gains or losses. |
|
|