Bollinger Scalping eurusd M5
Forums › ProRealTime English forum › ProOrder support › Bollinger Scalping eurusd M5
- This topic has 8 replies, 4 voices, and was last updated 7 years ago by TheAccountant.
-
-
06/04/2017 at 12:10 PM #37374
Hi !
This is my first code. Very simple code I use manually.
It works on eurusd in M5 but maybe in other forex/indices
For now results on my demo account are the same as the backtest.
Sorry for bad english 🙂
Have a nice day.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152// 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éenoEntryBeforeTime = 090000timeEnterBefore = time >= noEntryBeforeTime// 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éenoEntryAfterTime = 170000timeEnterAfter = time < noEntryAfterTime// 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 = BollingerDown[20](close)c1 = (close < indicator1)indicator2 = Average[50](close)c2 = (close > indicator2)IF (c1 AND c2) AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENBUY 1 CONTRACT AT MARKETENDIF// Conditions pour fermer une position acheteuseindicator3 = Average[20](close)c3 = (close CROSSES OVER indicator3)IF c3 THENSELL AT MARKETENDIF// Conditions pour ouvrir une position en vente à découvertindicator4 = BollingerUp[20](close)c4 = (close > indicator4)indicator5 = Average[50](close)c5 = (close < indicator5)IF (c4 AND c5) AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENSELLSHORT 1 CONTRACT AT MARKETENDIF// Conditions pour fermer une position en vente à découvertindicator6 = Average[20](close)c6 = (close CROSSES UNDER indicator6)IF c6 THENEXITSHORT AT MARKETENDIF// Stops et objectifsSET STOP pLOSS 301 user thanked author for this post.
06/04/2017 at 12:19 PM #37378Thanks for sharing your automated strategy code. It seems to be not performing so well on a 200k bars backtest, that’s why I moved your post from the posts pending review list to the forum instead. However, the strategy is not bad, like many others based on mean reverting price behavior with triggers on Bollinger Bands. The fact that the moving average periods are not optimized is also encouraging.
1 user thanked author for this post.
06/05/2017 at 9:11 AM #3742506/05/2017 at 10:51 AM #3745806/05/2017 at 12:44 PM #37478Hi! We have discussed this type of strategy under the topic below. @theaccountant – have a look, it might give you some new ideas.
06/15/2017 at 8:59 PM #3838606/18/2017 at 12:19 PM #38541Btw try to change the starting time for the strategy. Starting this kind of strategy later in the day when the London open is over can improve the result.
06/18/2017 at 2:47 PM #38551hello !
Yep i tried with different time but i think 9 to 17h gives me the best results 🙂
I have improved the eurusd version since:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152// 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éenoEntryBeforeTime = 090000timeEnterBefore = time >= noEntryBeforeTime// 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éenoEntryAfterTime = 170000timeEnterAfter = time < noEntryAfterTime// 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 = BollingerDown[20](close)c1 = (close < indicator1)indicator2 = Average[80](close)c2 = (close > indicator2)IF (c1 AND c2) AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENBUY 5 CONTRACT AT MARKETENDIF// Conditions pour fermer une position acheteuseindicator3 = Average[35](close)c3 = (close CROSSES OVER indicator3)IF c3 THENSELL AT MARKETENDIF// Conditions pour ouvrir une position en vente à découvertindicator4 = BollingerUp[20](close)c4 = (close > indicator4)indicator5 = Average[80](close)c5 = (close < indicator5)IF (c4 AND c5) AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENSELLSHORT 5 CONTRACT AT MARKETENDIF// Conditions pour fermer une position en vente à découvertindicator6 = Average[35](close)c6 = (close CROSSES UNDER indicator6)IF c6 THENEXITSHORT AT MARKETENDIF// Stops et objectifsSET STOP pLOSS 302 users thanked author for this post.
06/18/2017 at 2:48 PM #38553for now, result on demo account and backtest are the same.
-
AuthorPosts
Find exclusive trading pro-tools on