This is a very simple strategy on dax 1hour. Only one EMA-Pair for long and one for short-side.
Is it real? It´s a very good performance. I can´t believe it. It´s my first code.
Please give me your opinions.
// Festlegen der Code-Parameter
DEFPARAM CumulateOrders = False // Kumulieren von Positionen deaktiviert
// Verhindert das Trading an bestimmten Wochentagen
daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
// Bedingungen zum Einstieg in Long-Positionen
indicator1 = ExponentialAverage[60](close)
indicator2 = ExponentialAverage[200](close)
c1 = (indicator1 CROSSES OVER indicator2)
IF c1 AND not daysForbiddenEntry THEN
BUY 1 CONTRACT AT MARKET
ENDIF
// Bedingungen zum Ausstieg von Long-Positionen
indicator3 = ExponentialAverage[60](close)
indicator4 = ExponentialAverage[200](close)
c2 = (indicator3 CROSSES UNDER indicator4)
IF c2 THEN
SELL AT MARKET
ENDIF
// Bedingungen zum Einstieg in Short-Positionen
indicator5 = ExponentialAverage[40](close)
indicator6 = ExponentialAverage[300](close)
c3 = (indicator5 CROSSES UNDER indicator6)
IF c3 AND not daysForbiddenEntry THEN
SELLSHORT 1 CONTRACT AT MARKET
ENDIF
// Bedingungen zum Ausstieg aus Short-Positionen
indicator7 = ExponentialAverage[40](close)
indicator8 = ExponentialAverage[300](close)
c4 = (indicator7 CROSSES OVER indicator8)
IF c4 THEN
EXITSHORT AT MARKET
ENDIF
// Stops und Targets
SET STOP pLOSS 400
SET TARGET pPROFIT 200