4H Short with Repulse-Stop
Forums › ProRealTime English forum › ProOrder support › 4H Short with Repulse-Stop
- This topic has 8 replies, 3 voices, and was last updated 6 years ago by JohnScher.
-
-
11/26/2017 at 1:37 PM #540004H Short with Repulse-Stop1234567891011121314151617181920212223242526272829303132333435363738394041424344// Dax 1 Euro Mini// TimeFrame 4H// Hauptcode : 4H Short with Repulse-Stop// created by JohnScher// tested 08.04.2013 - 26.11.17 with PRT 10.3// 2 Points Spread// won 161 loose 212// max DrawDown 853 Euro max RunUp 5.035// winnings total 4,473 Eurodefparam flatafter = 210000defparam cumulateorders = trueOnce position = 1cx1 = cci[11] (close) <+90cx2 = cci[21] (close) >-90cx3 = PriceOscillator[5,25](close)<0.5cx4 = TR (close) >15cx5 = repulse [3] <0.1TradingTimeShort = time = 090000 or time = 130000 or time = 170000IF TradingTimeShort ThenIF cx1 and cx2 and cx3 and cx4 and cx5 ThenIF Exponentialaverage [1] (close) < ExponentialAverage [4] (close) THENsellshort position CONTRACTS AT MARKETEndifEndifEndifIf repulse [3] >0.2 thenExitshort at marketEndif// not tested// on other major indizes// with Saisonalpatternmultipler from Pathfinder-Systems// with some Re-invest-Stategies// greets JohnScher
hi there.
Is it correct and clean coded?
I would like to ask if someone can check the results of the backtest and let you know if they have the same results?
kind regards
JohnScher11/26/2017 at 3:10 PM #5401711/26/2017 at 4:21 PM #54020Hi, thanks a lot!
You have gone much further back with the beginning of the backing test.
Can PRT return the data back valid so far? That would be very nice.I would like to check this again and ask you if you can give me the exact start date of your back test?
11/26/2017 at 4:25 PM #5402111/26/2017 at 4:38 PM #5402211/28/2017 at 8:49 AM #5421601/26/2018 at 5:39 PM #60627Strategy in the demo version
4H Short Repulse Stop123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158//-------------------------------------------------------------------------// Hauptcode : 4H Short Repulse//-------------------------------------------------------------------------// Dax 1 Euro Mini// TimeFrame 4H// Hauptcode : 4H Short with Repulse-Stop// created by JohnScher// backtest 08.04.2013 - 26.11.17 with PRT 10.3// 2 Points Spread// won 161 loose 212// max DrawDown 853 Euro max RunUp 5.035// winnings total 4,473 Eurodefparam flatafter = 210000defparam cumulateorders = true// define saisonal position multiplier for each month 1-15 / 16-31 (>0 - long / <0 - short / 0 no trade)ONCE 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//-------------------------------------------------------------------------------------Once position = 1cs1 = cci[11] (close) <+90cs2 = cci[21] (close) >-90cs3 = PriceOscillator[5,25](close)<0.5cs4 = TR (close) >24cs5 = repulse [3] (close) <0.1TradingTimeShort = time = 090000 or time = 130000 or time = 170000IF TradingTimeShort ThenIF cs1 and cs2 and cs3 and cs4 and cs5 ThenIF Exponentialaverage [1] (close) < ExponentialAverage [4] (close) THENsellshort position*saisonalPatternMultiplier CONTRACTS AT MARKETEndifEndifEndifIf repulse [3] (close) >0.1 thenExitshort at marketEndif// not tested// on other major indizes// with some Re-invest-Stategies// greets JohnScher01/27/2018 at 12:46 PM #60675I moved the topic to ProOrder support.
02/04/2018 at 1:02 PM #61415Thanks.
I converted the 4H Short with Repulse Stop into a 4H Long with Repulse Stop.
In this way..
4H Long with Repulse Stop12345678910111213141516171819202122232425262728Defparam cumulateorders = falseTradingDay = Opendayofweek = 1 or Opendayofweek = 2 or Opendayofweek = 3 or Opendayofweek = 4 or Opendayofweek = 5TradingTime = time >=090000 and time <=210000position = 1// DetrendedPriceOszillaator past datap = 3avg = average[p](close)r = round(p/2) +1c = close - avg[r]// maincodeIf TradingDay and TradingTime thenIF c > 0 and Repulse [5] >= 0.3 thenbuy position contracts at marketEndifIf Repulse [5] <0.3 thensell position contracts at marketEndifEndifSet Stop %Loss 1//Set Target %Profit 1That should go far enough good. If necessary, can someone check the backtest result?
However, I have a question about Repulse.
This is provided by PRT as an indicator. I would like to check how the repulses relate to the rejecting average.
For example, for
Is it profitable? when you go long
if the reject average >0 and the repulse crosses the reject average upwards
if the reject average <0 and the repulse crosses the reject average upwardsUnfortunately my programming skills are not so good, so I wanted to ask if someone could put the code for the repulse in here? I could then continue my deliberations.
Enclosed the last picture. The red line is the rejecting average.
Translated with http://www.DeepL.com/Translator
Translated with http://www.DeepL.com/Translator
-
AuthorPosts
Find exclusive trading pro-tools on