BreakOut Kumo H4 – France40
Forums › ProRealTime English forum › ProOrder support › BreakOut Kumo H4 – France40
- This topic has 5 replies, 2 voices, and was last updated 7 years ago by Nicolas.
-
-
05/11/2017 at 8:49 AM #35156
Hi everyone,
This strategy is based on Kumo Breakout indicator.
Timeframe : H4
Spread used : 2
Basicaly, once we get a +1 on indicator we buy 1 contract and then we sell it when we reach ou profit target.
On short, we apply the same idea but on a reverse indication of the Kumo indicator.
The main idea is to make some regular profit and to avoid huge drawdown.
123456789101112131415161718192021222324252627282930313233343536373839404142// Définition des paramètres du codeDEFPARAM CumulateOrders = False // Cumul des positions désactivé// Annule tous les ordres en attente et ferme toutes les positions à 0:00, puis empêche toute création d'ordre avant l'heure "FLATBEFORE".DEFPARAM FLATBEFORE = 090000// Annule tous les ordres en attente et ferme toutes les positions à l'heure "FLATAFTER"DEFPARAM FLATAFTER = 173000// Empêche le système de placer de nouveaux ordres sur les jours de la semaine spécifiésdaysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0// Conditions pour ouvrir une position acheteuseindicator1 = CALL "Breakout Kumo"c1 = (indicator1 = 1)IF c1 AND not daysForbiddenEntry THENBUY 1 CONTRACT AT MARKETENDIF// Conditions pour fermer une position acheteusec2 = (close < close[1])IF c2 THENSELL AT MARKETENDIF// Conditions pour ouvrir une position en vente à découvertindicator2 = CALL "Breakout Kumo"c3 = (indicator2 = -1)IF c3 AND not daysForbiddenEntry THENSELLSHORT 1 CONTRACT AT MARKETENDIF// Conditions pour fermer une position en vente à découvertc4 = (close > close[1])IF c4 THENEXITSHORT AT MARKETENDIF// Stops et objectifsSET STOP pLOSS 35 pTRAILING 505/11/2017 at 9:02 AM #35163Thanks a lot for sharing your trading strategy code with us.
I moved your post from library to forum to discuss about it. I think the results might be overestimated because of this line:1SET STOP pLOSS 35 pTRAILING 5It is not possible to have 2 kind of stoploss in ProOrder (live trading), while it is possible in backtests. Did you test the strategy with tick/tick history?
05/11/2017 at 9:21 AM #35168Hi Nicolas,
I have tested with tick/tick history on ibex35 successfully.
For major indices or forex pairs, results are less interesting… at least using this timeframe&spread.
As the indicator works not so bad, I assume that exiting on the next bar should be promising.
Still to be tried.
Thanks for your advise on Stops.
05/11/2017 at 10:46 AM #35183About trailing stop you can try the code snippets you can find in these 2 blog posts:
https://www.prorealcode.com/blog/trading/complete-trailing-stop-code-function/
https://www.prorealcode.com/blog/learning/trailing-stop-max-favorable-excursion-mfe/
There are many forks of them in a lot of members strategies around here, you should browse the forums and the library too 🙂 Keep up the good work!
05/11/2017 at 8:45 PM #35244Hi everyone, Nicolas,
Please find a draft code of a new version of the Breakout Kumo.
Tested on a tick/tick history and 0.6 spread.
EUR/USD Mini.
Timeframe H4.
PS : I will try to add the trailling stop code at another moment.
123456789101112131415161718192021222324252627282930313233343536373839404142434445// Définition des paramètres du codeDEFPARAM CumulateOrders = False // Cumul des positions désactivé// Empêche le système de placer des ordres pour entrer sur le marché ou augmenter la taille d'une position avant l'heure spécifiéetimeEnterBefore = time >= 080000// Empêche le système de placer des ordres pour entrer sur le marché ou augmenter la taille d'une position après l'heure spécifiéetimeEnterAfter = time < 174500// Empêche le système de placer de nouveaux ordres sur les jours de la semaine spécifiésdaysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0positionSize = 75// Conditions pour ouvrir une position acheteuseindicator1 = CALL "Breakout Kumo"c1 = (indicator1 = 1)IF c1 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry AND Time < 130000 AND c3[1] THENBUY positionSize CONTRACT AT MARKETENDIF// Conditions pour fermer une position acheteusec2 = (indicator1 = 0)IF c2 AND Time > 170000 THENSELL AT MARKETENDIF// Conditions pour ouvrir une position en vente à découvertindicator2 = CALL "Breakout Kumo"c3 = (indicator2 = -1)IF c3 AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry AND Time < 130000 AND c2[1] THENSELLSHORT positionSize CONTRACT AT MARKETENDIF// Conditions pour fermer une position en vente à découvertc4 = (indicator2 = 0)IF c4 AND Time > 170000 THENEXITSHORT AT MARKETENDIFSET TARGET PPROFIT 65SET STOP PLOSS 2005/12/2017 at 2:11 PM #35327 -
AuthorPosts
Find exclusive trading pro-tools on