bitte strategie auf 200k testen
Forums › ProRealTime Deutsch forum › ProOrder Support › bitte strategie auf 200k testen
- This topic has 6 replies, 3 voices, and was last updated 6 years ago by JohnScher.
Viewing 7 posts - 1 through 7 (of 7 total)
-
-
12/02/2017 at 10:25 PM #54569
hi, kann bitte jemand den beigefügten code mal auf 200.000 kerzen testen?
dax, 30min.
danke
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889DEFPARAM CumulateOrders = truenoEntryBeforeTime = 090000timeEnterBefore = time >= noEntryBeforeTimenoEntryAfterTime = 173000timeEnterAfter = time < noEntryAfterTimedaysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0if (high>alto[1]) and not (high<high[1] and low>low[1]) thenalto=highbasso=low//markup=barindex//markhigh=highendifif (low<basso[1]) and not (high<high[1] and low>low[1]) thenalto=highbasso=low//markdown=barindex//marklow=lowendifif basso>basso[1] thentrend=1endifindicator1 = MACDline[12,26,9](close)indicator2 = ExponentialAverage[9](indicator1)c1 = (indicator1 CROSSES OVER indicator2)pos=2+(strategyprofit/5000)IF trend=1 and c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENBUY pos CONTRACT AT MARKETENDIF//************************************************************************//trailing stop functiontrailingstart = 20 //trailing will start @trailinstart points profittrailingstep = 30 //trailing step to move the "stoploss"//reset the stoploss valueIF NOT ONMARKET THENnewSL=0ENDIF//manage long positionsIF LONGONMARKET THEN//first move (breakeven)IF newSL=0 AND close-tradeprice(1)>=trailingstart*pipsize THENnewSL = tradeprice(1)+trailingstep*pipsizeENDIF//next movesIF newSL>0 AND close-newSL>=trailingstep*pipsize THENnewSL = newSL+trailingstep*pipsizeENDIFENDIF//manage short positionsIF SHORTONMARKET THEN//first move (breakeven)IF newSL=0 AND tradeprice(1)-close>=trailingstart*pipsize THENnewSL = tradeprice(1)-trailingstep*pipsizeENDIF//next movesIF newSL>0 AND newSL-close>=trailingstep*pipsize THENnewSL = newSL-trailingstep*pipsizeENDIFENDIF//stop order to exit the positionsIF newSL>0 THENSELL AT newSL STOPEXITSHORT AT newSL STOPENDIF//************************************************************************GRAPH newSL as "trailing"// Stops und TargetsSET STOP pLOSS 40SET TARGET pPROFIT 8112/03/2017 at 12:53 AM #5457612/04/2017 at 8:07 PM #54716Danke….
aber so dolle ist das leider nicht… schade…
12/07/2017 at 3:37 PM #54990Gefällt, lasse ich Demo-Modus mitlaufen
Habe in einer Kopie noch den Saisonalmultiplier vom Pathfinder -System mit reingepackt. Auch die Re-Invest -Strategie bisschen verändert.
Mal sehen. In einem halben Jahr wissen wir mehr.
12/07/2017 at 4:00 PM #54991setz mal rein den code bitte
12/11/2017 at 3:55 PM #55392@johnScher
kannst du bitte den code posten??
Danke
12/26/2017 at 6:35 PM #5658230 M BreakOut with saisonal multiplier123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369//-------------------------------------------------------------------------// Hauptcode : 30M//-------------------------------------------------------------------------DEFPARAM CumulateOrders = true// define saisonal position multiplier for each month 1-15 / 16-31 (>0 - long / <0 - short / 0 no trade)// saisonal position multiplier found on ProRealTime explizit in PathfindersystemsONCE January1 = 3 //0 risk(3)ONCE January2 = 0 //3 okONCE February1 = 3 //3 okONCE February2 = 3 //0 risk(3)ONCE March1 = 3 //0 risk(3)ONCE March2 = 2 //3 okONCE April1 = 1 //3 okONCE April2 = 3 //3 okONCE May1 = 1 //0 risk(1)ONCE May2 = 2 //0 risk(2)ONCE June1 = 1 //1 okONCE June2 = 2 //3 okONCE July1 = 3 //1 chanceONCE July2 = 2 //3 okONCE August1 = 2 //1 chance 1ONCE August2 = 3 //3 okONCE September1 = 3 //0 risk(3)ONCE September2 = 0 //0 okONCE October1 = 3 //0 risk(3)ONCE October2 = 2 //3 okONCE November1 = 1 //1 okONCE November2 = 3 //3 okONCE December1 = 3 // 1 chanceONCE December2 = 2 //3 ok// set saisonal multipliercurrentDayOfTheMonth = OpenDaymidOfMonth = 15IF CurrentMonth = 1 THENIF currentDayOfTheMonth <= midOfMonth THENsaisonalPatternMultiplier = January1ELSEsaisonalPatternMultiplier = January2ENDIFELSIF CurrentMonth = 2 THENIF currentDayOfTheMonth <= midOfMonth THENsaisonalPatternMultiplier = February1ELSEsaisonalPatternMultiplier = February2ENDIFELSIF CurrentMonth = 3 THENIF currentDayOfTheMonth <= midOfMonth THENsaisonalPatternMultiplier = March1ELSEsaisonalPatternMultiplier = March2ENDIFELSIF CurrentMonth = 4 THENIF currentDayOfTheMonth <= midOfMonth THENsaisonalPatternMultiplier = April1ELSEsaisonalPatternMultiplier = April2ENDIFELSIF CurrentMonth = 5 THENIF currentDayOfTheMonth <= midOfMonth THENsaisonalPatternMultiplier = May1ELSEsaisonalPatternMultiplier = May2ENDIFELSIF CurrentMonth = 6 THENIF currentDayOfTheMonth <= midOfMonth THENsaisonalPatternMultiplier = June1ELSEsaisonalPatternMultiplier = June2ENDIFELSIF CurrentMonth = 7 THENIF currentDayOfTheMonth <= midOfMonth THENsaisonalPatternMultiplier = July1ELSEsaisonalPatternMultiplier = July2ENDIFELSIF CurrentMonth = 8 THENIF currentDayOfTheMonth <= midOfMonth THENsaisonalPatternMultiplier = August1ELSEsaisonalPatternMultiplier = August2ENDIFELSIF CurrentMonth = 9 THENIF currentDayOfTheMonth <= midOfMonth THENsaisonalPatternMultiplier = September1ELSEsaisonalPatternMultiplier = September2ENDIFELSIF CurrentMonth = 10 THENIF currentDayOfTheMonth <= midOfMonth THENsaisonalPatternMultiplier = October1ELSEsaisonalPatternMultiplier = October2ENDIFELSIF CurrentMonth = 11 THENIF currentDayOfTheMonth <= midOfMonth THENsaisonalPatternMultiplier = November1ELSEsaisonalPatternMultiplier = November2ENDIFELSIF CurrentMonth = 12 THENIF currentDayOfTheMonth <= midOfMonth THENsaisonalPatternMultiplier = December1ELSEsaisonalPatternMultiplier = December2ENDIFENDIF// end saisonal multiplier// start main codenoEntryBeforeTime = 090000timeEnterBefore = time >= noEntryBeforeTimenoEntryAfterTime = 173000timeEnterAfter = time < noEntryAfterTimedaysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0if (high>alto[1]) and not (high<high[1] and low>low[1]) thenalto=highbasso=low//markup=barindex//markhigh=highendifif (low<basso[1]) and not (high<high[1] and low>low[1]) thenalto=highbasso=low//markdown=barindex//marklow=lowendifif basso>basso[1] thentrend=1endifindicator1 = MACDline[12,26,9](close)indicator2 = ExponentialAverage[9](indicator1)c1 = (indicator1 CROSSES OVER indicator2)pos=2+(strategyprofit/5000)IF trend=1 and c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENBUY pos*saisonalpatternmultiplier CONTRACT AT MARKETENDIF//************************************************************************//trailing stop functiontrailingstart = 20 //trailing will start @trailinstart points profittrailingstep = 30 //trailing step to move the "stoploss"//reset the stoploss valueIF NOT ONMARKET THENnewSL=0ENDIF//manage long positionsIF LONGONMARKET THEN//first move (breakeven)IF newSL=0 AND close-tradeprice(1)>=trailingstart*pipsize THENnewSL = tradeprice(1)+trailingstep*pipsizeENDIF//next movesIF newSL>0 AND close-newSL>=trailingstep*pipsize THENnewSL = newSL+trailingstep*pipsizeENDIFENDIF//manage short positionsIF SHORTONMARKET THEN//first move (breakeven)IF newSL=0 AND tradeprice(1)-close>=trailingstart*pipsize THENnewSL = tradeprice(1)-trailingstep*pipsizeENDIF//next movesIF newSL>0 AND newSL-close>=trailingstep*pipsize THENnewSL = newSL-trailingstep*pipsizeENDIFENDIF//stop order to exit the positionsIF newSL>0 THENSELL AT newSL STOPEXITSHORT AT newSL STOPENDIF//************************************************************************// Stops und TargetsSET STOP pLOSS 40SET TARGET pPROFIT 811 user thanked author for this post.
-
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)
Find exclusive trading pro-tools on
Similar topics: