Pathfinder (v1?) DAX 1 Hour
Forums › ProRealTime English forum › ProOrder support › Pathfinder (v1?) DAX 1 Hour
- This topic has 7 replies, 3 voices, and was last updated 7 years ago by Eric.
Viewing 8 posts - 1 through 8 (of 8 total)
-
-
03/24/2017 at 3:37 PM #29763
I dont know if this is the first version (DAX 4 Hours)
but it seems to work on 1 hour
and maybe with the new walk forward test it can be even better? (200K history)
its the original version i have only change the min lotsize (positionsize) from 10 to 1 contract
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485// Pathfinder DAX 4H, 8-22, 2 points spread// DAX breakout system triggered by daily, weekly and monthly high/low crossings// code-parameterDEFPARAM CUMULATEORDERS = true// trading windowONCE StartTime = 80000ONCE EndTime = 220000// money managementONCE PositionSize = 1// trading parameterONCE sl = 3ONCE tp = 1.5// calculate weekly high/lowIf DayOfWeek < DayOfWeek[1] thenweeklyHigh = Highest[BarIndex - lastWeekBarIndex](DHigh(1))lastWeekBarIndex = BarIndexENDIF// calculate monthly high/lowIf Month <> Month[1] thenmonthlyHigh = Highest[BarIndex - lastMonthBarIndex](DHigh(1))monthlyLow = Lowest[BarIndex - lastMonthBarIndex](DLow(1))lastMonthBarIndex = BarIndexENDIF// calculate signalline with multiple smoothed averagesfirstMA = WilderAverage[5](close)secondMA = TimeSeriesAverage[10](firstMA)signalline = TimeSeriesAverage[5](secondMA)// position management during trading windowIF Time >= StartTime AND Time <= EndTime THEN// filter criteria because not every break is profitablec1 = close > Average[200](close)c2 = close < Average[200](close)c3 = close > Average[50](close)c4 = close < Average[50](close)// long position conditionsl1 = signalline CROSSES OVER monthlyHighl2 = signalline CROSSES OVER weeklyHighl3 = signalline CROSSES OVER DHigh(1)l4 = signalline CROSSES OVER monthlyLow// long entryIF ( l1 OR l4 OR l2 OR (l3 AND c2) ) THEN // cumulate orders for long trades could be a performance boosterBUY PositionSize CONTRACT AT MARKETENDIF// short position conditionss1 = signalline CROSSES UNDER monthlyHighs2 = signalline CROSSES UNDER monthlyLows3 = signalline CROSSES UNDER Dlow(1)// short entryIF NOT SHORTONMARKET AND ( (s1 AND c3) OR (s2 AND c4) OR (s3 AND c1) ) THEN // no cumulation for short tradesSELLSHORT PositionSize CONTRACT AT MARKETENDIF// stop and profitSET STOP %LOSS slSET TARGET %PROFIT tpENDIF03/25/2017 at 10:14 AM #2979303/30/2017 at 5:42 PM #3038603/30/2017 at 6:03 PM #3039003/30/2017 at 6:56 PM #3039604/03/2017 at 8:41 AM #3078104/11/2017 at 5:24 PM #3175004/17/2017 at 3:20 PM #32312 -
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
Find exclusive trading pro-tools on
Similar topics: