Probleme de trades qui ne se cloturent jamais
Forums › ProRealTime forum Français › Support ProOrder › Probleme de trades qui ne se cloturent jamais
- This topic has 10 replies, 3 voices, and was last updated 4 years ago by Nicolas.
-
-
03/11/2020 at 12:44 PM #121810
Bonjour,
Je sollicite votre aide pour un bug que je n’arrive pas résoudre.
J’ai pris un code/stratégie sur le site, je n’ai conservé que le code de la fractale william et j’ai modifié tout le reste pour coller à ma stratégie.J’ai un excellent résultat de gain/ratio sur 9ans (88% de trades gagnants et ratio 3.90% sachant que je compte pyramider par la suite quand le bug sera réparé). Mais à 4 reprises (voir les carrés oranges) les trades ne se cloturent pas, certains durent des mois, aucune condition de sortie cloture le trade durant ces 4 périodes alors que tout fonctionne le reste du temps. J’ai testé des conditions basiques pour voir si les trades se cloturaient mais rien y fait, j’ai même changer de devises et c’est idem.
Je m’arrache les cheveux depuis hier … sans succès ….
J’ai insérer la photo, vous verrez les 4 triangles oranges….Merci beaucoup pour votre aide 🙂
Voici le code
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182//EURUSD(-) - IG MARKET// TIME FRAME 1H// PROBACKTEST TICK by TICK - 200.000 bars// SPREAD 0.6 PIP// ALEDEFPARAM CumulateOrders = false///BILL WILLIAM FRACTAL INDICATOR//CP=PERIODCP=100if close[cp] >= highest[2*cp+1](close) thenLH = 1elseLH=0endifif close[cp] <= lowest[2*cp+1](close) thenLL= -1elseLL=0endifif LH=1 thenHIL = close[cp]endifif LL = -1 thenLOL=close[cp]endif/// 2htimeframe(2h)EMA20 = ExponentialAverage[5](close) // 20EMA50= ExponentialAverage[10](close) //50hausse2h = EMA20 > EMA50baisse2h = close < EMA20// prix au dessu trendindicator1 = SuperTrend[3,10]HAUSSEtrend = (close >= indicator1)BAISSEtrend = (close < indicator1)timeframe(default)//LONG and SHORT CONDITIONSPositionsize=1if (time >=90000 and time < 230000) thenC1 = (close CROSSES OVER HIL)D1 = (close CROSSES UNDER LOL)IF c1 and hausse2h and HAUSSEtrend and not shortonmarket THENBUY positionsize CONTRACT AT MARKETENDIFIF D1 and baisse2h and BAISSEtrend and not longonmarket THENSELLSHORT positionsize CONTRACT AT MARKETENDIFENDIF////////////////////////////////////////////// CONDITISTOP SORTIEindicatorBB = SuperTrend[3,10]closeSTOPDUshort = close CROSSES OVER indicatorBBcloseSTOPDUbuy= close <= indicatorBB// SORTIEif longonmarket and closeSTOPDUbuy thenSELL AT MARKETendifif shortonmarket AND closeSTOPDUshort thenSELL AT MARKETendif// Take profit : TP= 15 to 80set target pprofit 20// ORIGINE 30//sET STOP pLOSS 65Sophie
03/11/2020 at 12:53 PM #121811Les questions sur le trading automatique doivent être postés dans le forum ProOrder. Merci de penser à un titre moins générique que “Besoin d’aide sur un bug” la prochaine fois, sinon on va avoir des dizaines de sujets avec ce même type de titres et ça ne sera d’aucune utilité pour les prochains visiteurs pour souhaiterai retrouver des réponses à leurs questions 😉
Je vais tester le problème de mon côté pour vérifier. EURUSD et timeframe H1 c’est bien ça ?
03/11/2020 at 12:57 PM #121812Désolée Nicolas.
Oui c’est bien en 1h + conditions 2h
Merci 🙂
03/11/2020 at 12:57 PM #12181303/11/2020 at 1:03 PM #121814Oh super Nicolas, tu es trop fort. En une minute tu règles une prise de tête de plus de 24H,
Les résultats sont fabuleux, je vais continuer sur ma lancée…Un grand merci pour ton professionnalisme et ta réactivité 🙂
Très belle journée 🙂
03/11/2020 at 1:06 PM #121815Oups, autre petite question, pour la ligne 76 ok
mais pour la ligne des achats, c’est ausi EXITSHORT?
merci 🙂
1234// SORTIEif longonmarket and closeSTOPDUbuy thenSELL AT MARKETendif03/11/2020 at 1:19 PM #121816C’est bon j’ai trouvé.
03/11/2020 at 4:48 PM #121842bonjour,
avec quelque réglage et surtout le stop par rapport au TP voir 1 pour 1 ou plus
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182//EURUSD(-) - IG MARKET// TIME FRAME 1H// PROBACKTEST TICK by TICK - 200.000 bars// SPREAD 0.6 PIP// ALEDEFPARAM CumulateOrders = false///BILL WILLIAM FRACTAL INDICATOR//CP=PERIODCP=100if close[cp] >= highest[2*cp+1](close) thenLH = 1elseLH=0endifif close[cp] <= lowest[2*cp+1](close) thenLL= -1elseLL=0endifif LH=1 thenHIL = close[cp]endifif LL = -1 thenLOL=close[cp]endif/// 2htimeframe(2h)EMA20 = Average[5](close) // 20EMA50= Average[10](close) //50hausse2h = EMA20 > EMA50baisse2h = close < EMA20// prix au dessu trendindicator1 = SuperTrend[3,10]HAUSSEtrend = (close >= indicator1)BAISSEtrend = (close < indicator1)timeframe(default)//LONG and SHORT CONDITIONSPositionsize=1if (time >=80000 and time < 230000) thenC1 = (close CROSSES OVER HIL)D1 = (close CROSSES UNDER LOL)IF open<close and c1 and hausse2h and HAUSSEtrend and not shortonmarket THENBUY positionsize CONTRACT AT MARKETENDIFIF D1 and baisse2h and BAISSEtrend and not longonmarket THENSELLSHORT positionsize CONTRACT AT MARKETENDIFENDIF////////////////////////////////////////////// CONDITISTOP SORTIEindicatorBB = SuperTrend[3,10]closeSTOPDUshort = close CROSSES OVER indicatorBBcloseSTOPDUbuy= close <= indicatorBB// SORTIEif longonmarket and closeSTOPDUbuy thenSELL AT MARKETendifif shortonmarket AND closeSTOPDUshort thenexitshort AT MARKETendif// Take profit : TP= 15 to 80set target pprofit 70// ORIGINE 30sET STOP pLOSS 4003/11/2020 at 8:29 PM #121871J’ai un stop suiveur mais je j’ai enlevé pas mal de code pour simplifier.
je suis encore sur des reglages mais c’est entre 5 et 13.
les resultats sont tres bons mais en 2018 ce n’est pas le cas, donc j’etudie tous les trades perdants de 2018 pour identifier le probleme.
03/11/2020 at 8:34 PM #12187403/12/2020 at 8:59 AM #121897 -
AuthorPosts
Find exclusive trading pro-tools on