DrawDown Equity
Forums › ProRealTime forum Français › Support ProOrder › DrawDown Equity
- This topic has 1 reply, 2 voices, and was last updated 8 years ago by Nicolas.
Tagged: drawdown
-
-
08/22/2016 at 3:42 PM #12055
Bonjour,
Je souhaite créer un indicateur graphique du drawdown equity. Je vous soumets donc une stratégie (qui ne financera pas les prochaines vacances de Nicolas ou la nouvelle voiture d’Aston, puisque ce sont les siennes qui vont tout financer :D).
Je n’ai pas réussit à trouver la bonne formule du pourcentage issu du résultat entre la balance et l’équité.
Vous avez 2h ! hahA ! (SVP mettez au moins 2h, ça fait des jours que j’essaie)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104Defparam Cumulateorders = FalseRem [Points Pivots Journaliers] // Merci Noobywan, AstonIf dayofweek <> 1 THENHt = DHigh(1)Bs = DLow(1)C = DClose(1)EndifIf dayofweek=5 thenHtfriday=Dhigh(0)BsFriday=Dlow(0)CFriday=Dclose(0)EndifIf dayofweek=1 thenHt = HtfridayBs = BsFridayC = CFridayEndifPivot = (Ht + Bs + C) / 3Res3 = Pivot + ((Ht - Bs)*2)Res2 = Pivot + Ht - BsRes1 = (2 * Pivot) - Bs//Sup1 = (2 * Pivot) - Ht//Sup2 = Pivot - (Ht - Bs)//Sup3 = Pivot - ((Ht - Bs)*2)Rem [Détection de la Tendance]C1 = close > average[1000]Rem [Réinitialisation]If intradaybarindex = 1 thenUnTradeParJourRes1 = 0UnTradeParJourRes2 = 0UnTradeParJourRes3 = 0//UnTradeParJourPivot = 0//UnTradeParJourSup1 = 0//UnTradeParJourSup2 = 0//UnTradeParJourSup3 = 0EndifRem [Condition d'Achat]//If C1 and close crosses over Sup3 and UnTradeParJourSup3 = 0 then//buy 10 contract at market//UnTradeParJourSup3= 1//Endif//If C1 and close crosses over Sup2 and UnTradeParJourSup2= 0 then//buy 1 contract at market//UnTradeParJourSup2= 1//Endif//If C1 and close crosses over Sup1 and UnTradeParJourSup1= 0 then//buy 1 contract at market//UnTradeParJourSup1= 1//Endif//If C1 and close crosses over Pivot and UnTradeParJourPivot= 0 then//buy 1 contract at market//UnTradeParJourPivot= 1//EndifIf C1 and close crosses over Res1 and UnTradeParJourRes1 = 0 thenbuy 10 contract at marketUnTradeParJourRes1= 1Elsif C1 and close crosses over Res2 and UnTradeParJourRes2 = 0 thenbuy 10 contract at marketUnTradeParJourRes2= 1Elsif C1 and close crosses over Res3 and UnTradeParJourRes3= 0 thenbuy 10 contract at marketUnTradeParJourRes3= 1EndifRem [Conditions de Sortie]If longonmarket and close < dlow(1) and dayofweek <> 1 thensell at marketElsif longonmarket and dayofweek = 1 and close < bsfriday thensell at marketEndifRem [Drawdown Equity]Floatingprofit = (((close-positionprice)*pointvalue)*countofposition)/pipsize + strategyprofit // Thanks Grizzly, NicolasDrawdownEquity = (((strategyprofit)/Floatingprofit)-1)*(-100)LevelZero = 0If DrawdownEquity > 0 thenDrawdownEquityPositive = 1ElseDrawdownEquityPositive = 0EndifIf DrawdownEquityPositive = 1 thenRed = 0Green = DrawdownEquityElseGreen = 0Red = DrawdownEquityEndifRem [Graph]graph Green coloured (0,255,0)graph Red coloured (255,0,0)graph Levelzero coloured (0,0,0)08/22/2016 at 9:16 PM #12083Moi je verrai cela plutôt comme ça:
123InitialCapital = 10000Floatingprofit = (((close-positionprice)*pointvalue)*countofposition)/pipsizeDrawdownEquity = Floatingprofit/(strategyprofit+InitialCapital)*100On a ainsi la véritable équité en fonction des profits acquis et du capital initial. Ensuite on peut en déterminer en pourcentage le gain du/des trades actuels.
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on