Forums › ProRealTime English forum › ProOrder support › EA Head › Reply To: EA Head
08/09/2017 at 7:34 PM
#42819
my problem is: can i believe the backtest… ?
results are good, but too good
code little bit more fine
see on yourself
so my question, can you controll the result on backtest?
timeframe 4h, start 01.01.2013 until today, Dax 1 Euro mini, spread = 2, no brokerage few
do i right put the screenshots?
can’t print the details as screenshot, find no “safe as” button .. how it works?
EA Head V1.2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
//------------------------------------------------------------------------- // Hauptcode : EA Head V1.2 // created by JohnScher, coded with help from ProRealTime //------------------------------------------------------------------------- // Start Pathfinder-System // with define saisonal position multiplier for each month 1-15 / 16-31 (>0 - long / <0 - short / 0 no trade) defparam flatafter = 210000 ONCE January1 = 3 //0 risk(3) ONCE January2 = 0 //3 ok ONCE February1 = 3 //3 ok ONCE February2 = 3 //0 risk(3) ONCE March1 = 3 //0 risk(3) ONCE March2 = 2 //3 ok ONCE April1 = 3 //3 ok ONCE April2 = 3 //3 ok ONCE May1 = 1 //0 risk(1) ONCE May2 = 1 //0 risk(1) ONCE June1 = 1 //1 ok 2 ONCE June2 = 2 //3 ok ONCE July1 = 3 //1 chance ONCE July2 = 2 //3 ok ONCE August1 = 2 //1 chance 1 ONCE August2 = 3 //3 ok ONCE September1 = 3 //0 risk(3) ONCE September2 = 0 //0 ok ONCE October1 = 3 //0 risk(3) ONCE October2 = 2 //3 ok ONCE November1 = 1 //1 ok ONCE November2 = 3 //3 ok ONCE December1 = 3 // 1 chance ONCE December2 = 2 //3 ok // set saisonal multiplier currentDayOfTheMonth = Day midOfMonth = 15 IF CurrentMonth = 1 THEN IF currentDayOfTheMonth <= midOfMonth THEN saisonalPatternMultiplier = January1 ELSE saisonalPatternMultiplier = January2 ENDIF ELSIF CurrentMonth = 2 THEN IF currentDayOfTheMonth <= midOfMonth THEN saisonalPatternMultiplier = February1 ELSE saisonalPatternMultiplier = February2 ENDIF ELSIF CurrentMonth = 3 THEN IF currentDayOfTheMonth <= midOfMonth THEN saisonalPatternMultiplier = March1 ELSE saisonalPatternMultiplier = March2 ENDIF ELSIF CurrentMonth = 4 THEN IF currentDayOfTheMonth <= midOfMonth THEN saisonalPatternMultiplier = April1 ELSE saisonalPatternMultiplier = April2 ENDIF ELSIF CurrentMonth = 5 THEN IF currentDayOfTheMonth <= midOfMonth THEN saisonalPatternMultiplier = May1 ELSE saisonalPatternMultiplier = May2 ENDIF ELSIF CurrentMonth = 6 THEN IF currentDayOfTheMonth <= midOfMonth THEN saisonalPatternMultiplier = June1 ELSE saisonalPatternMultiplier = June2 ENDIF ELSIF CurrentMonth = 7 THEN IF currentDayOfTheMonth <= midOfMonth THEN saisonalPatternMultiplier = July1 ELSE saisonalPatternMultiplier = July2 ENDIF ELSIF CurrentMonth = 8 THEN IF currentDayOfTheMonth <= midOfMonth THEN saisonalPatternMultiplier = August1 ELSE saisonalPatternMultiplier = August2 ENDIF ELSIF CurrentMonth = 9 THEN IF currentDayOfTheMonth <= midOfMonth THEN saisonalPatternMultiplier = September1 ELSE saisonalPatternMultiplier = September2 ENDIF ELSIF CurrentMonth = 10 THEN IF currentDayOfTheMonth <= midOfMonth THEN saisonalPatternMultiplier = October1 ELSE saisonalPatternMultiplier = October2 ENDIF ELSIF CurrentMonth = 11 THEN IF currentDayOfTheMonth <= midOfMonth THEN saisonalPatternMultiplier = November1 ELSE saisonalPatternMultiplier = November2 ENDIF ELSIF CurrentMonth = 12 THEN IF currentDayOfTheMonth <= midOfMonth THEN saisonalPatternMultiplier = December1 ELSE saisonalPatternMultiplier = December2 ENDIF Endif position = 2 // End Pathfinder-System //------------------------------------------------------------------------- //------------------------------------------------------------------------- // Code Indicator NR7 // C1= Range<Range[1] and Range<Range[2] and Range<Range[3] and Range<Range[4] and Range<Range[5] and Range<Range[6] and Range<Range[7] // RETURN C1 //------------------------------------------------------------------------- //------------------------------------------------------------------------- // Start maincode //------------------------------------------------------------------------- // maincode : H4 Live //------------------------------------------------------------------------- //------------------------------------------------------------------------- //------------------------------------------------------------------------- //------------------------------------------------------------------------- cx1 = cci[11]<90 cx2 = cci[21]>-90 cx3 = Momentum[12](close)>0 cx4 = ADX[11] >14 // cx5 = MoneyFlow[11](close)<0 cx6 = TR(close) >14 //cx7 = PVT(close)<1 cx8 = EaseOfMovement[14]<70 cx9 = SmoothedStochastic[21,3](close)<90 cx10 = PriceOscillator[5,25](close)<0.5 cx11 = LinearRegressionSlope[12](close)>-14 cx12 = AccumDistr(close)>-0.1 cx13 = Chandle [21](close)>-21 cx14 = STD[6](close)<99 cx15 = Chandle [6] (close)<49 cx16 = RSI[6](close)<51 cx17 = RSI[6](close)>49 TradingDayShort = dayofweek = 1 or dayofweek = 2 or dayofweek = 3 or dayofweek = 4 or dayofweek = 5 TradingDayLong = dayofweek = 1 or dayofweek = 2 or dayofweek = 3 or dayofweek = 4 or dayofweek = 5 TradingTimeShort = time = 090000 or time = 130000 or time = 170000 TradingtimeLong = time = 090000 or Time = 130000 or time = 170000 IF TradingDayShort and TradingTimeShort Then IF cx1 and cx4 and cx8 and cx9 and cx10 and cx12 and cx14 and cx15 and cx16 Then IF ExponentialAverage [1] (close) < ExponentialAverage [8] (close) THEN sellshort position*saisonalPatternMultiplier CONTRACTS AT MARKET ENDIF Endif Endif IF TradingDayLong and TradingTimeLong Then IF cx2 and cx3 and cx6 and cx11 and cx13 and cx17 Then IF ExponentialAverage [1] (close) > ExponentialAverage [6] (close) THEN buy position*saisonalPatternMultiplier CONTRACT AT MARKET ENDIF Endif Endif Set Stop %Loss 3 Set Target %profit 3 // to be optimize // kind JohnScher |