Trabajo finalizado
Tarea técnica
Settings :
The basic principle of the system is quite simple. Trade in the direction of the trend , wait from a consolidation and rise for a resumption of the trend in the direction of the trade.
The implementation is chosen quite simple .
This is a long-only system , because the backtest were mixed in the short direction , but I want only long only short , ore both.
1 ema1)">The system has a trend filter Ema 200 (variable) , is only long when EMA is rising ( ema > ema1 )
2.Filter :
The system is only "active" when the Slow Stochastic ( slow_k ) below a certain level (possible parameters are 30, 40 , 50 and 60) .
This filter should show me that some correction has taken place
3.Entry :
Stopbuy at the high of the previous day , as long as the two filters show a "green light " .
4
Trade Management / Exit :
The initial first stop is based on the Average True Range (10). Please variable . Dax Price - ATR SL = 1 days
To the initial stop (variable please ) relative risk 0.1 Percent
After the 2nd Trading day I put a stop to the low of the previous day as a quasi Trailing Stop .
The source code for a trade signal online help is available.
Also a pic
Inputs:
PeriodStoch( 5, 1 ),
PeriodSmoothing1( 3, 1 ),
PeriodSmoothing2( 3, 1 ),
OverBought( 80, 0, 100 ),
OverSold( 20, 0, 100 ),
SigMethod( ZeroLine, TriggerLine ) = ZeroLine,
lowlevel (30),
highlevel (70),
EntryMethod( LongEntry, ShortEntry, Both ) = Both,
//myRisk(0.01),
Anzahl(1),
filterlength( 200 ),
TimedExit (1),
Period_ATR (10),
AccStart( 0.02, 0.0 ),
AccInc( 0.02, 0.0 ),
AccMax( 1.0, 0.0 ),
PAR_Filter(False);
//Long/////////////////////////////////////////
//Entry ohne Parabolic Filter
if marketposition <> 1 AND PAR_Filter = False AND avg > avg[1] AND slow_k < lowlevel AND EntryMethod <> ShortEntry
then Begin
Buy( "Buy" ) Next Bar at High stop;
drawsymbol (high, "StopHigh", symbolcircle, 10, blue, blue); //Markierung dass Trade ansteht
End;
//Trade Management/Exit
if BarssinceEntry >= TimedExit Then Begin
atrstop = High - atrvalue;
stoplimit = MinItems (low, atrstop);
sell ( "StopClose" ) Next Bar at stoplimit stop;
drawsymbol (stoplimit, "StopExit", symbolcircle, 4, green, green);
End;