Strategy in the making – The student
Forums › ProRealTime English forum › ProOrder support › Strategy in the making – The student
- This topic has 5 replies, 3 voices, and was last updated 5 years ago by
robertogozzi.
-
-
08/30/2020 at 12:13 AM #142946
Hi all, coming at you with this strategy using the latest indicator in the library by @IV Mcm with an added bonus: I added K= 1 for bull trends and k = -1 for bear trends, just so its easier to call. You then need to add a bollinger band on the MM3 line with the settings “Period: 10 + STD: 1”
Indicator here:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100////============================== IndicateurTrend1 = ADX[5]Trend2 = ADX[10]Trend3 = ADX[15]Trend4 = ADX[20]Trend5 = ADX[25]Trend6 = ADX[30]Trend7 = ADX[35]Trend8 = ADX[40]Trend9 = ADX[45]Trend10 = ADX[50]MM = average[20](close)Bolup = MM+STD[20]*1.0Boldw = MM-STD[20]*1.0Bol1 = MM+STD[20]*1.0Bol2 = MM-STD[20]*1.0Bol3 = MM+STD[20]*2.0Bol4 = MM-STD[20]*2.0CMM1 = Bol1-MMCMM2 = MM-Bol2CMM3 = Bol3-MMCMM4 = MM-Bol4MM0 = average[1](close)-(close)MM1 = average[1](MM0)+(CMM1)MM2 = average[1](MM0)-(CMM2)MM3 = average[1](MM0)+(CMM3)MM4 = average[1](MM0)-(CMM4)TrendT1 = Trend1 > Trend1[1]TrendT2 = Trend2 > Trend2[1]TrendT3 = Trend3 > Trend3[1]TrendT4 = Trend4 > Trend4[1]TrendT5 = Trend5 > Trend5[1]TrendT6 = Trend6 > Trend6[1]TrendT7 = Trend7 > Trend7[1]TrendT8 = Trend8 > Trend8[1]TrendT9 = Trend9 > Trend9[1]TrendT10 = Trend10 > Trend10[1]Trend = TrendT1 or TrendT2 or TrendT3 or TrendT4 or TrendT5 or TrendT6 or TrendT7 or TrendT8 or TrendT9 or TrendT10//============================== Trend BullsihCA1 = close > MM and close > Bolup and TrendBullsih = CA1if Bullsih thenA = 1elseA = 0endifonce k = 0if A = 1 thendrawcandle(MM2,MM1,MM2,MM1)coloured(28,144,194,50)R = 28G = 144B = 194T = 250k = 1endif//============================== Trend BearishCV1 = close < MM and close < Boldw and TrendBearish = CV1if Bearish thenV = 1elseV = 0endifif V = 1 thendrawcandle(MM1,MM2,MM1,MM2)coloured(100,100,100,50)R = 100G = 100B = 100T = 250k = -1endif//============================== No Trendif A = 0 and V = 0 thendrawcandle(MM2,MM1,MM2,MM1)coloured(158,158,158,50)R = 158G = 158B = 158T = 90endif//============================== Bande Bolligerreturn MM0 coloured(R,G,B,T) style (line,2) as "Middle", MM1 coloured(R,G,B,T) style (line,2) as "MM1", MM2 coloured(R,G,B,T) style (line,2) as "MM2", MM3 coloured(R,G,B,T) style (line,2) as "MM3", MM4 coloured(R,G,B,T) style (line,2) as "MM4", k as "k"heres the code for the strategy, no optimizing done, it looks very nice in different markets on higher timeframes.
I just saw this tonight and seeing how its a community shared indicator i thought id share my findings using the bollinger bands.
Obviously if you check more candles its not nearly as good, but its still in the profitable area and i think that with some more work, (maybe better entries, more filters/conditions + maybe a better exit, some money management, maybe some time limitations etc..) things could be looking good for this 🙂
12345678910111213141516171819202122232425262728// Definition of code parameters// Made by JEBUS89, PRC forum, indicator by IV McmDEFPARAM CumulateOrders = False // Cumulating positions deactivated// Conditions to enter long positionsignored, ignored, ignored, indicator1, ignored, ignored = CALL BolStr(close)ignored, ignored, ignored, userindic1, ignored, ignored = CALL BolStr(close)indicator2 = Average[10](userindic1)+std[10](userindic1)c1 = (indicator1 > indicator2)ignored, ignored, ignored, ignored, ignored, indicator3 = CALL BolStr(close)c2 = (indicator3 = 1)IF c1 AND c2 THENBUY 1 CONTRACT AT MARKETENDIF// Conditions to exit long positionsignored, ignored, ignored, indicator4, ignored, ignored = CALL BolStr(close)ignored, ignored, ignored, userindic2, ignored, ignored = CALL BolStr(close)indicator5 = Average[10](userindic2)+std[10](userindic2)c3 = (indicator4 CROSSES UNDER indicator5)IF c3 THENSELL AT MARKETENDIF// Stops and targetsSET STOP pLOSS 1502 users thanked author for this post.
08/30/2020 at 12:22 AM #14294808/30/2020 at 10:21 AM #142960You then need to add a bollinger band on the MM3 line with the settings “Period: 10 + STD: 1”
Reading word for word, does above mean for us to change the Indicator as below …
(Below is probably wrong, but it’s a start to get it right?)
1234567THISMM3 = average[1](MM0)+(CMM3)NEEDS CHANGING TOMM3 = average[1](MM0)+(CMM3)+Bol(10)+STD[1]08/30/2020 at 5:02 PM #142980Sorry bad wording from me, english is not my first language 🙂
To visually see what the algo is doing, i suggest u just add a bollingerband on the MM3 line. Dont change the actual code, just add an indicator, on the this indicator. (i guess you could change the code as well, but i find its easier to just add the bollinger band on the indicator without changing the code)
To trade the system, you dont need to do anything as the bollinger band on the indicator is in the code line 8+9:
12indicator2 = Average[10](userindic1)+std[10](userindic1)c1 = (indicator1 > indicator2)1 user thanked author for this post.
10/26/2020 at 10:02 PM #148590performance in us tech 2h (looks similar good in wall st) since posting system:
10/26/2020 at 11:43 PM #148597Please attach files without using links to external sites.
Thank you 🙂
-
AuthorPosts
Find exclusive trading pro-tools on