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.
-
-
01/22/2020 at 9:14 PM #117570
Oops, I’ve been running it with select=2 on 15m …. and it still made $100 today. Very nice!
But should the tds value correspond to the select value? or is it just an optional on/off ?
01/22/2020 at 10:52 PM #117574I’ve been running it with select=2 on 15m
Well double check on my logic as I may be wrong? Try it with select = 2 on 30 mins … is it bigger profit?
TDS is the Trend Detection System and so needs to be same as Trend value in the optimiser.
01/22/2020 at 11:10 PM #11757601/27/2020 at 8:25 AM #117977Partial closure will come after version 11 with IG. I will know more about this by the end of next week.
Hi Nicolas,
Some news ?
01/27/2020 at 10:20 AM #117992Hi, 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 M30
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133DEFPARAM 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 200Hi Juju333
I have been running this version live on 1min TF since 16 december and so far 6 winning trades, 0 losing trades. Can someone run it on 200 K
1 user thanked author for this post.
01/27/2020 at 10:32 AM #117996>> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! << 🙂
1 user thanked author for this post.
01/27/2020 at 10:49 AM #11799801/27/2020 at 11:02 AM #117999Hello @jmf125,
It’s no possible backtest 200 k with TF 1 min… i don’t understand…
Apologies this is on a 30 mins EUR/CAD
01/27/2020 at 11:07 AM #118000Hello @jmf125,
It’s no possible backtest 200 k with TF 1 min… i don’t understand…
Yes it is, but obviously the tested period will be shorter than 5 min, 15 min or 1h
01/27/2020 at 12:37 PM #11802101/27/2020 at 1:32 PM #11803101/28/2020 at 8:42 PM #118179Hey guys,
I’ve started working on the code, but i still can’t figure out this part:
12345Newhighest=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)NewHighest is a single value, but later used to draw a moving average. Usually we use a “close” or at least an array, im confused about the type of this variable. Can someone help me clarify this ? 🙂
01/29/2020 at 8:22 AM #11818701/29/2020 at 10:29 PM #118227Check this out – by splitting into 2 strategies for long and short then re-optimizing each individually gives an extra 60% gain with combined win rate of 97% (4 losses out of 122).
More trades, more wins, lower drawdown, better best trade, better average gain, better gain/loss.
Left hand image is the combined strategy, based on Paul’s EURCAD-DhighDlow-v1p position size =1
01/29/2020 at 11:37 PM #118233Check this out – by splitting into 2 strategies for long and short then re-optimizing each individually gives an extra 60% gain with combined win rate of 97% (4 losses out of 122).
More trades, more wins, lower drawdown, better best trade, better average gain, better gain/loss.
Left hand image is the combined strategy, based on Paul’s EURCAD-DhighDlow-v1p position size =1
This looks awesome !! Thank you
-
AuthorPosts