|
|||||||||||||||||||
|
|||||||||||||||||||
| Special offer: buy MetaStock (try for free) | Reuters QuoteCenter Real-Time Data (get a free month) | EOD Data |
|
A set of three indicators are used, and each contributes a criterion for entering the market. For the record, when I implemented this trend-following strategy in EasyLanguage, not all of my entries and exits coincided with those presented in the article. Here is the EasyLanguage code for the three indicators that were described in the article, as well as the EasyLanguage code for the signal that is used to create the trading strategy. The indicators and the trading strategy are fairly straightforward. The properties for each indicator are presented after the EasyLanguage. The first indicator presented is the tether line indicator. Type: Indicator, Name: TFS Tether Line Input: Length(50); Variables: HighVal(0), LowVal(0), Tether(0); HighVal = Highest(High, Length); LowVal = Lowest(Low, Length); Tether = (HighVal + LowVal) / 2; Plot1(Tether, "Tether"); Chart style: PlotName Style Weight Tether Line thinnest Scaling: Same as symbol The next indicator is the volume oscillator indicator. Type: Indicator, Name: TFS Vol Osc Avg Input: AvgLength(7); Variables: VolAccum(0), VolOsc(0); VolAccum = 0; For value1 = 0 To AvgLength -1 Begin If Close[value1] > Open[value1] Then VolAccum = VolAccum + Volume[value1]; If Close[value1] < Open[value1] Then VolAccum = VolAccum - Volume[value1]; End; VolOsc = VolAccum / AvgLength; Plot1(VolOsc, "Vol Osc"); Plot2(0, "ZeroLine"); Chart Style: PlotName Style Weight Vol Osc Histogram thinnest ZeroLine Line thinnest Scaling: Screen The third indicator is the MBO indicator. Type: Indicator, Name: TFS MBO Indicator Inputs: FastAvg(25), SlowAvg(200); Variable: MBO(0); MBO = Average(Close, FastAvg) - Average(Close, SlowAvg); Plot1(MBO, "MBO"); Plot2(0, "ZeroLine"); Chart style: PlotName Style Weight MBO Histogram thinnest ZeroLine Line thinnest Scaling: Screen This EasyLanguage code for the TFS indicators, signal, and strategy are also available from Omega Research's Website. Two files will be posted: TFS.ELS and TFS.ELA. The TFS.ELS file is for TradeStation and ProSuite 2000i. TFS.Ela is for all other software versions (including SuperCharts). The QuickEditor cannot edit the contents of either of the TFS files. -- Gaston Sanchez, EasyLanguage Expert Omega Research Inc., 800 422-8587, 305 270-1095 http://www.omegaresearch.com Code:
all formulas for TradeStation all formulas
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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. |
|
|