log in     sign up for free
 
Dramatic and emotional trading experiences tend to be negative. Pride is a great banana peel, as are hope, fear, and greed. My biggest slip-ups occurred shortly after I got emotionally involved with positions.
Ed Seykota
 
 
Home
systems (285)
 
 
Special offer: buy MetaStock (try for free)   |   Reuters QuoteCenter Real-Time Data (get a free month)   |   EOD Data
 

Buy

MetaStock

     (special offer)
 
 
 

Buy

EOD data for MetaStock

     (special offer)
 
 
 

Buy

Realtime data for MetaStock

     (special offer)
 
 
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

Stochastic S&C System

System for: TradeStation

 

 

Views:  1623

Added: August 13, 2008
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 
 

email this link

 
 
Tags: TradeStation, system
 



The EasyLanguage for the system consists of finding a SwingLow for in the %K during an uptrend in the %D for a buy signal, or finding a SwingHigh in the %K during a downtrend in the %D for a sell signal. The exit for both the long and short side occurs after the period specified by the ExitBars input. After creating the system and applying it to a chart, you can then add money-management stops, from which the system would undoubtedly benefit.


This EasyLanguage code is also available at Omega Research's Website. The filename is "StochSC.Ela." Note that all Traders' Tips techniques that are posted at the Omega Research Website can be utilized by either TradeStation or SuperCharts. Whenever possible, the posted techniques will include both Quick Editor and Power Editor formats.
-- Gaston Sanchez, Omega Research Inc.

800 422-8587, 305 270-1095
Internet: http://www.omegaresearch.com

 

 



Code:

Type: Function, Name: StochCustom
Inputs:
KPeriods(NumericSimple),
KSlow(NumericSimple);
Variables:
LoLo(0),
HiHi(0),
HLDIff(0);
LoLo = Lowest(Low, KPeriods);
HiHi = Highest(High, KPeriods);
HLDIff = HiHi - LoLo;

If HLDIff > 0 Then Begin
If KSlow <= 1 Then
StochCustom = (Close - LoLo) / HLDIff * 100
Else
StochCustom = Average(Close-LoLo,KSlow) / Average(HLDIff, KSlow)*100;
End;




Type: System, Name: Stochastic S&C
Input: KPeriods(7), DPeriods(12), KSlow(3), ExitBars(5);
Variables: KVal(0), DVal(0);
KVal = StochCustom(KPeriods, KSlow);
DVal = Average(KVal, DPeriods);
Condition1 = DVal > DVal[1] AND DVal[1] > DVal[2];
Condition2 = DVal < DVal[1] AND DVal[1] < DVal[2];

If Condition1 AND SwingLow(1, KVal, 1, 2) <> -1 Then
Buy This Bar on Close;
If Condition2 AND SwingHigh(1, KVal, 1, 2) <> -1 Then
Sell This Bar on Close;

If MarketPosition = 1 AND BarsSinceEntry = ExitBars Then
ExitLong This Bar on Close;
If MarketPosition = -1 AND BarsSinceEntry = ExitBars Then
ExitShort This Bar on Close;



 




 

Code to difficult? Find somebody to help you with coding here.

 



Author: Robert Zellner
Source: http://www.traders.com

 

View similar:

First 2 Hour Channel System
Cooper's System
Phil Lane\'s System
Volatility Reversals
Meander system v. 1
OBVDI System
RS system No. 1
HI LO Activator
SystemC
TRIX System S&C
...
 
 
all systems for TradeStation
all systems

 

 

Email to friend

Top

 

     
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.
PayPalSecure payments by PayPal S4T™ is a part of TAURO EDUCATION NETWORK
 
Privacy note | (c) copyrights systems4trading.com 2006-2009