You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
telerater asked for these on mtf thread (here : https://www.mql5.com/en/forum/173574/page204) I think it is better to post these here : PS: don't be surprised by the look of mtf, they are mtf.
And the second one made new metatrader 4 compatible too : tcf_smoothed_-_t3_mtf_nmc.mq4
...
Akif,
The main difference comes from the usage of buffers and arrays
You are using buffers and I am using arrays for everything except the values that need to be displayed on the chart. The way array are treated in my code means that array elements are accessed in "inverted logic" to buffer logic (in "buffer logic" buffer[0] is the current value, in that "array logic" array[0] is the oldest value) I like this way because apart of resizing the array to current bars size, it does not require any additional coding and allows simple using of two dimensional arrays instead of buffers (it is still an 8 buffer limitation in MT4, MT5 will not have that limitation)
Also, there is one difference in my calculation compared to M.H.Pee way : in his article he calculates momentum(5) as a momentum of 5 elements and not what momentum(5) is - a momentum of 1st and 6th element (if we used Pee's logic, than momentum(1) would always be 0, and as we know, it is not) Hence I do not have the /(Length-1) part but rather simple /(Length). And further To get same values as Pee for his 35 PCI one should use length 34
Anyway, here are tose PCI and T3 smoothed PCI. There is no secret in the code, but as keit tells, one really must read what for and how does Pee use that indicator. That is all
regards
mladen
Ok guys
I tried to implement PCI. Here is my shot at it.
mladen,
Can you check if it is correct or not also I try to imitate your inverse slope but it looks like I couldnt reproduce it.
To imitate it I changed this line of code:
Close[startIndex]+momentum*(k)/(PeriodPCI-1); [/code]to this:
[code]GradientLineBuffer[startIndex-k]=
Close[startIndex]+momentum*(PeriodPCI-1-k)/(PeriodPCI-1);Green represents situaton 1 and situation 3 in the document (which is momentum>0 and PCI<20)
Red represents situaton 2 and situation 4 in the document (which is momentum80)
Orange represents situaton 5(which is momentum>0 and PCI>80) and situation 6 (which is momentum<0 and PCI<20) in the document
Akif,Trend trigger factor by Alexander Gettinger
ttf.mq4
Trend continuation factor by Alexander Gettinger
tcf.mq4
Keit,
Thanks for the offer, I really would like to see those articles. Maybe we should make all of them (does not matter separate thread or no separate thread, it seems that M.H.Pee deserves at least that much)
For starters here is the Trend Detection Index (there is one more here https://www.mql5.com/en/forum/172972 at post #2, but, for some reason, it uses approximation (when using sma*PeriodTDI) so this one is the one calculating the "original M.H.Pee way")
__________________________
PS: I do recommend that people read that document of how to use trend detection index, since it is not about two lines crossing
regards
mladenUpgraded version of trend detection index (version compatible with new mt4, multi time frame and alerts) posted here : https://www.mql5.com/en/forum/173574/page639
Upgraded version of trend detection index (version compatible with new mt4, multi time frame and alerts) posted here : https://www.mql5.com/en/forum/173574/page639
Interesting. Thanks
Upgraded TTF (trend trigger factor) indicator with some new options and some new calculating ways posted here : https://www.mql5.com/en/forum/173574/page662
Upgraded TTF (trend trigger factor) indicator with some new options and some new calculating ways posted here : https://www.mql5.com/en/forum/173574/page662
Nice. Thanks
Upgraded TTF (trend trigger factor) indicator with some new options and some new calculating ways posted here : https://www.mql5.com/en/forum/173574/page662
Thank you Mladen!Tester file indicator please.Taknks