Donchian Scalping strategy, help needed!
Forums › ProRealTime English forum › ProOrder support › Donchian Scalping strategy, help needed!
- This topic has 6 replies, 4 voices, and was last updated 7 years ago by GraHal.
-
-
06/16/2017 at 12:54 PM #38442
“Help! I need somebody
Help! Not just anybody
Help! You know I need someone
Heeeeeeeeeeeeeeeeeeeeeeeeeeeelp! ” 🙂Hello everyone !
I work on a scalping strategy based on donchian channel. I was inspired by a video I saw on the youtube channel of Doctrading ( Im a fan 🙂 )
It’s a scalping stratégie on DAX. Timeframe M1. Filtered with MACD zero lag. I added SMA50, SMA20, RSI and ADX. TP 2 pts SL 15 pts. The Timesitting are to have the spread a 1 pts.
Please take a look at pics, it’s hard for me to describe with my bad english 🙂 ( I know: a guy with an English name who speaks bad English….. 🙂 )
The problem is that the few losses destroy the long series of wins. And therefore the strategy is not profitable.
I tried to modify the sl and tp. with SL = 40 pts we have 92% wins…. but is not profitable…
So I tried to integrate this code of management of the positionsize (thanks to Nicolas) so that the beginning of a series of wins compensate the future loss :
1234567891011121314151617181920initiallot = 1if buycondition thenif positionperf(1)>0 thencount=count+1elsecount=0endifif count=1 thenmylot = 5elsif count=2 thenmylot = 10elsif count=3 thenmylot = 15elsemylot = initiallotendifBUY mylot CONTRACTS AT MARKETendifBut I did not find a good solution… And I’m blocked now. 🙁
I will appreciate any help or ideas you may have.
Have a nice day !
TheAccountant.
PS : I took the codes of the donchian channel and the MACD zero lag on the website of Doctrading.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253// 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 = 091500timeEnterBefore = 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 = 171500timeEnterAfter = 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 acheteuseignored, ignored, indicator1, indicator2 = CALL "macd zero retard perso"c1 = (indicator1 > indicator2)indicator3 = Average[50](close)c2 = (close > indicator3)indicator4 = RSI[9](close)c3 = (indicator4 < 70)indicator5, ignored = CALL "canal donchian perso"c4 = (close CROSSES OVER indicator5)indicator6 = Average[200](close)c5 = (close > indicator6)indicator7 = ADX[14]c6 = (indicator7 >= 25)IF (c1 AND c2 AND c3 AND c4 AND c5 AND c6) AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENBUY 1 CONTRACT AT MARKETENDIF// Conditions pour ouvrir une position en vente à découvertignored, ignored, indicator8, indicator9 = CALL "macd zero retard perso"c7 = (indicator8 < indicator9)indicator10 = Average[50](close)c8 = (close < indicator10)indicator11 = RSI[9](close)c9 = (indicator11 > 30)ignored, indicator12 = CALL "canal donchian perso"c10 = (close CROSSES UNDER indicator12)indicator13 = Average[200](close)c11 = (close < indicator13)indicator14 = ADX[14]c12 = (indicator14 >= 25)IF (c7 AND c8 AND c9 AND c10 AND c11 AND c12) AND timeEnterBefore AND timeEnterAfter AND not daysForbiddenEntry THENSELLSHORT 1 CONTRACT AT MARKETENDIF// Stops et objectifsSET STOP pLOSS 15SET TARGET pPROFIT 206/17/2017 at 8:22 AM #38485Hi,
Even if it’s not the scalping philosophy, did you try a trailing stop? Or a takeprofit sized with volatility.1 user thanked author for this post.
06/17/2017 at 10:53 AM #3849206/17/2017 at 11:35 AM #38497Hi ! I try with trailing stop based on ATR trailling stop ( great for other strategy) but for this strategy results was not good…
In fact in manual one of the filter that I use are the supports and resistances (points pivots on PRT) : Do not buy just below a resistance or do not just sell over a support ( support/resistance = im not sur in english 🙂 ) But I do not know how to code this.
Otherwise, there is a way to make the stoploss dinamic to adapt the size according to the volatility … I do not know ! 😉
06/17/2017 at 12:48 PM #3849906/17/2017 at 1:30 PM #3850306/17/2017 at 11:21 PM #38526 -
AuthorPosts
Find exclusive trading pro-tools on