TFI 2.0 (Triple function Indicator) Strategy
Forums › ProRealTime English forum › ProOrder support › TFI 2.0 (Triple function Indicator) Strategy
- This topic has 5 replies, 5 voices, and was last updated 5 years ago by
MAKSIDE.
-
-
04/01/2020 at 8:44 AM #124078
This strategy is very useful in trending markets. This strategy is only tested on a ten min graphic.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182// Definitie van code parametersDEFPARAM CumulateOrders = False // Opstapelen posities gedeactiveerdDefparam flatbefore = 000000Defparam flatafter = 000000// Condities om long posities te openen// Settingsonce n = 5once m= 29// Parameters for the StochasticMomentumIndicatorc1=SMI[14,3,5](close)>40c11=SMI[14,3,5](close)>-40// Parameters for the CommodityChannelIndexc2= CCI[n](typicalPrice)>100c21=CCI[n](typicalPrice)<-100//Parameters for the Relative StrenghtIndexc3=RSI[m](close)>60c31=RSI[m](close)<40//Test for each Indicatorif c1 thenZLS1= 1elsif c11 thenZLS1=-1endifif c2 thenZLS2=1elsif c21 thenZLS2=-1endifIf c3 thenZLS3=1elsif c31 thenZLS3=-1endif//Summary of the resultsTFI = sin(atan(ZLS1+ZLS2+ZLS3))K1= TFI CROSSES OVER 0IF k1 THENBUY 1 CONTRACT AT marketENDIF// Condities om long posities te sluitenIF TFI crosses under 0 THENSELL AT MARKETENDIF// Condities om short posities te openenk3 = TFI CROSSES UNDER 0IF k3 THENSELLSHORT 1 CONTRACT AT marketENDIF// Condities om short posities te sluitenIF TFI crosses over 0 THENEXITSHORT AT MARKETENDIF// Stops en targetsSET STOP ploss 50SET TARGET pPROFIT 125004/01/2020 at 8:51 AM #124203Hi Zigo, thanks a lot for sharing this strategy. I moved it from the library to the forum, hope you don’t mind. Mainly because I think that the settings are too much adapted for the current market situation and much more on a 10-minutes timeframe and for only less than a month. It doesn’t mean that the strategy is not of interested, but I think that users must be warned that it would need more Out-Of-Sample testing before using it. Thank you again for all the help and codes you provide on the website 😉
04/01/2020 at 10:49 AM #124223Change line 14 and 15123411. once p=814. c1=SMI[p,3,5](close)>4015. c11=SMI[p,3,5](close)>-40Thank you Nicolas for your good advice.
I tested the 2 hours graphic without (zonder) Walk Forward and once with WF for this year. As many other systems, it work well in very trending markets. But be aware in periods of consolidation.
04/01/2020 at 1:05 PM #12423804/01/2020 at 3:01 PM #124248thats incredible in 10m and 200000 bars.
Post the equity curve and the performance stats so we can see please?
1 user thanked author for this post.
04/01/2020 at 3:54 PM #124252 -
AuthorPosts
Find exclusive trading pro-tools on