Discussing Matriciel EURUSD Dhigh Dlow
Forums › ProRealTime English forum › ProOrder support › Discussing Matriciel EURUSD Dhigh Dlow
- This topic has 118 replies, 33 voices, and was last updated 3 years ago by nonetheless.
-
-
05/04/2020 at 7:34 PM #129912
You have to calculate it yourself but it’s very easy. You simply drag-n-drop the tab “Closed positions list” from the backtest report into an empty Excel sheet. Then summarize the MFE and MAE columns and divide.
Here is a short video tutorial of how to “export” data: https://www.youtube.com/watch?v=W35tjsD4PrM&feature=youtu.be&t=413
1 user thanked author for this post.
05/05/2020 at 3:45 PM #13006405/20/2020 at 10:15 PM #13248608/08/2020 at 9:57 PM #141174BonjourJ’ai des énormes pertes
Quelle est la procédure à suivre la faire fonctionner ?
je suis ssur l’EURUSD 15 min , UTC +02:00 (paris)
Beaucoup de posisitions gagnantes et puis des énormes pertes.
Aussi bien avec le code posté précédent que le code original. et CloturePartielle + 0 ou 1Hello
I have huge losses
What is the procedure to make it work?
I am on EURUSD 15 min, UTC +02: 00 (paris)
Lots of winning positions and then huge losses.
Both with the previous posted code and the original code. and Partial Closure + 0 or 109/13/2020 at 9:37 PM #14415609/14/2020 at 1:06 PM #14421809/28/2020 at 4:41 PM #145729To understand as this stratégy worsk, I have create an indicator on grapf and an indicator for the inside.
Indicator on graph:
123456789101112131415161718192021222324252627282930313233343536373839404142once select=1 // optimized for period1,2,3once tds =1 // added on optimized resultsif select=1 then // TF 15 MINtr1=45tr2=25period1=78period2=12period3=4elsif select=2 then // TF 15 MINtr1=45tr2=20period1=84period2=6period3=8endif// trend detectionif tds=0 thentrendup=1trenddown=1elseif tds=1 thentrendup=Average[tr1](close)//>Average[tr1](close)[1])trenddown=Average[tr2](close)//<Average[tr2](close)[1])elseif tds=2 thenendifendifendifmm = average[period1,3](totalprice)Newhighest=max(DHigh(0), DHigh(1))Newlowest=min(DLow(0), DLow(1))avghl = (Newhighest+Newlowest)/2c1 = average[period2,period3]((Newhighest+avghl)/2)c2 = average[period2,period3]((Newlowest+avghl)/2)return trendup As "Trendup", trenddown AS "Trenddown", mm AS "mm", avghl as "Avgh1", c1 as "C1", c2 AS "C2"Indicator for inside:
1234567891011myTrendup, myTrenddown, mymm, myAvgh1, myC1, myC2 = CALL "Dhigh/Dlow"HA = 0If mymm > myc1 and close crosses over myAvgh1 and mytrendup > mytrendup[1] thenHA = +1endifIf mymm < myc2 and close crosses under myAvgh1 and mytrenddown < mytrenddown[1] thenHA = -1endifReturn HAPRT make false signal????? Cf view
1 user thanked author for this post.
09/28/2020 at 6:57 PM #145756Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.
Thank you 🙂
09/29/2020 at 8:23 AM #14580710/09/2020 at 6:01 PM #146915Hi all,
I had some success in DAX under backtest environment.
As below
DHIGH DLOW DAX 15MIN1234567891011121314151617181920212223242526272829303132333435363738394041424344DEFPARAM CumulateOrders = FalseDEFPARAM PRELOADBARS = 10000daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0Schedule = time >= 000000 and time <= 220000Positionsize = 6.25TREND = Average[8,8](totalprice)Newhighest=max(DHigh(0), DHigh(1))Newlowest=min(DLow(0), DLow(1))Middle = (Newhighest+Newlowest)/2Overbought = average[45,5]((Newhighest+Middle)/2)Oversold = average[45,5]((Newlowest+Middle)/2)CA = (TREND > Overbought) and (close crosses over Middle)CV = (TREND < Oversold) and (close crosses under Middle)// Long EntriesIF Schedule AND CA AND not daysForbiddenEntry AND NOT SHORTONMARKET THENBUY Positionsize CONTRACTS AT MARKETENDIFIF LONGONMARKET THENSELL AT TRADEPRICE +50*pointsize LIMITENDIF// Short EntriesIF Schedule AND CV AND not daysForbiddenEntry AND NOT LONGONMARKET THENSELLSHORT Positionsize CONTRACTS AT MARKETENDIFIF SHORTONMARKET THENEXITSHORT AT TRADEPRICE - 50*pointsize LIMITENDIF//SET TARGET pPROFIT 46SET STOP pLOSS 10010/09/2020 at 8:31 PM #14692710/20/2020 at 9:39 AM #147859Great improvement @kj1988
I also did some tweaking with your file to boost the result (100k period), see attached. It was missing a profit target which I find necesary even with a trail. Also added some MoneyM and RiskM. The problem is still the big drawdown on almost every trade. The MFE/MAE ratio is a dreadful 0.99. If we can find better entry signals we might have something.
Hello guy and thank for your share. As you, i observe that you some time have big loss in 1 trade. But i also see in details report that when you win in Long or Short, it’s in less than 150 candles and when you loose, it’s in 700 to 800 candles. Maybe you can add in your code something who close your trade after 150 or 200 candles. It certainly would limit the lost trades
02/04/2021 at 1:29 PM #160342Hi! News about big losses? Trading system is very very good (over 94% winning) but the 6% remaining is a disaster for the equity
02/12/2021 at 8:51 PM #161240Here’s another version of this with a few changes to try to curb the losses. There aren’t very many, but when it loses, it loses big time.
I’ve raised the SL to 2%, which can mean dealing with some big red numbers while waiting for it to turn around, something to be aware of.
2 users thanked author for this post.
-
AuthorPosts