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.
-
-
12/14/2019 at 12:53 AM #11485112/15/2019 at 3:56 PM #11492912/16/2019 at 10:48 AM #114960
Hi, i’ve turned partial closure off and slightly optimized for EURCAD and M30. Too good to be true, but i share it (running in demo mode from this morning). Indeed take care of drawdown… :
EURCAD M3012345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576DEFPARAM CumulateOrders = FalseDEFPARAM PRELOADBARS = 10000daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0Horaire = time >= 000000 and time <= 220000PositionsizeA = 1PositionsizeV = 1MM = Average[56,3](totalprice)Newhighest=max(DHigh(0), DHigh(1))Newlowest=min(DLow(0), DLow(1))Milieu = (Newhighest+Newlowest)/2Surachat = average[10,4]((Newhighest+Milieu)/2)Survente = average[10,4]((Newlowest+Milieu)/2)CA = (MM > Surachat) and (close crosses over Milieu)CV = (MM < Survente) and (close crosses under Milieu)// Long EntriesIF Horaire AND CA AND not daysForbiddenEntry AND NOT SHORTONMARKET THENBUY PositionsizeA CONTRACTS AT MARKETENDIFIF LONGONMARKET THENSELL AT TRADEPRICE +540*pointsize LIMITENDIF// Short EntriesIF Horaire AND CV AND not daysForbiddenEntry AND NOT LONGONMARKET THENSELLSHORT PositionsizeV CONTRACTS AT MARKETENDIFIF SHORTONMARKET THENEXITSHORT AT TRADEPRICE - 50*pointsize LIMITENDIF//MFE//trailing stoptrailingstop = 40//resetting variables when no trades are on marketif not onmarket thenMAXPRICE = 0MINPRICE = closepriceexit = 0endif//case SHORT orderif shortonmarket thenMINPRICE = MIN(MINPRICE,close) //saving the MFE of the current tradeif tradeprice(1)-MINPRICE>=trailingstop*pointsize then //if the MFE is higher than the trailingstop thenpriceexit = MINPRICE+trailingstop*pointsize //set the exit price at the MFE + trailing stop price levelendifendif//case LONG orderif longonmarket thenMAXPRICE = MAX(MAXPRICE,close) //saving the MFE of the current tradeif MAXPRICE-tradeprice(1)>=trailingstop*pointsize then //if the MFE is higher than the trailingstop thenpriceexit = MAXPRICE-trailingstop*pointsize //set the exit price at the MFE - trailing stop price levelendifendif//exit on trailing stop price levelsif onmarket and priceexit>0 thenEXITSHORT AT priceexit STOPSELL AT priceexit STOPendif//SET TARGET pPROFIT 46SET STOP pLOSS 20012/16/2019 at 11:57 AM #11496812/22/2019 at 6:34 PM #11537912/22/2019 at 6:37 PM #115380Second week live : winning position again.
How much pips ? Can you share the equity curve ?
12/30/2019 at 7:57 PM #11562201/02/2020 at 4:16 AM #115717Interesting code Matriciel. I had a go with your strategy.
@juju333 eurcad is good tip!
I made some adjustments. Removed the time limit and it now basically has a big stoploss, a trailing stop and it reverses on opposite signal.
Besides that, added a trend detection system (tds) and this can be switched off if it’s too much.
Optimised is period 1,2,3. The tds filter is then optimised over the best results.
With “select” can you pick which settings you want to use. Just make sure the timeframe 15/30min matches.
1 user thanked author for this post.
01/02/2020 at 4:19 AM #11572201/07/2020 at 3:00 PM #11614201/08/2020 at 3:13 PM #11621601/10/2020 at 9:18 PM #116402Bonjour,Avez vous réussi à ajouter la stratégie dans Pro Order avec les clôtures partielles ? @Nicolas nous avons besoin de ton aide l’idée est super intéressante mais nous calons tous avec les sorties partielles pour intégrer dans pro order.merci 🙂Hello,
Have you managed to add the strategy in Pro Order with partial closings? @nicolas we need your help the idea is super interesting but we all stall with partial releases to integrate into pro order.
thanks
01/10/2020 at 11:07 PM #116410Florian Legeard – English only in the English speaking forums please. If you wish to discuss a subject in French then please use the French speaking forums.
01/11/2020 at 4:02 PM #11643301/17/2020 at 8:58 AM #117037 -
AuthorPosts