Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
for (; masPeriod<=Mas.End; masPeriod+= Mas.Step, masCount++)
Mladen, (; - looks like something missing, is it ACodeError?
dem, his code getting shorter and shorter - i'm very unhappy
now i don't even know what is it (what i'm stealing), that's apsets me
see, with such hi-tec - how to achieve TrStr C effect (p.44):
To determine how much a market shows a trend-movement we will use the TrendStrength C
Indicator from the TrendStrength family (introduced above). This indicator was developed by José
Cruset and works similar as the TrendStrength A indicator but instead of comparing the price with
the price of various SMAs it counts how many SMAs are rising or falling. The higher its value (in
absolute terms) the more SMAs are rising and consequently the stronger is the trend. The higher the
indicator
This one I needed to rename : it was described by Jose Cruset in the attached document but since he calls it a Trend Strength and since there is already an indicator for metatrader with that name (different calculation behind it) I renamed it to MasTrend.
Thanks for sharing.
Last edited by Sundowner; 08-29-2009 at 04:11 AM.
Reason: add pic
for (; masPeriod<=Mas.End; masPeriod+= Mas.Step, masCount++)
Mladen, (; - looks like something missing, is it ACodeError?
dem, his code getting shorter and shorter - i'm very unhappy
now i don't even know what is it (what i'm stealing), that's apsets me
Nah, no error
As of short - not short enough. The ideal would look something like this :
but when I write it metatrader complains (can you imagine that )
Quote:
Originally Posted by fxbs
seriously, with all hard coded in one f-la ("A") : ) - how to get "C" (p44 doc) : (
Looking for slopes of MA instead for difference between price and MA. So : if iMa(,..,i)>iMa(,...,i+1) total++ and if iMa(,..,i)<iMa(,...,i+1) total--. For speeding up maybe some more code would be needed, but that is the essence
_____________________________
PS: Ultra trend does the same slope comparing thing only it uses JMA for that and it's representation is a bit different, so it would be interesting to find out exactly the origin of that "slope" idea (I am not sure that it is Jose Cruset's original idea)
if i knew what is it :
for (; masPeriod<=Mas.End; masPeriod+= Mas.Step, masCount++)
- i would allready did it
(just two words explain(it's not a programminf thread, but...) - please, Mladen
but when I write it metatrader complains (can you imagine that )
Looking for slopes of MA instead for difference between price and MA. So : if iMa(,..,i)>iMa(,...,i+1) total++ and if iMa(,..,i)<iMa(,...,i+1) total--. For speeding up maybe some more code would be needed, but that is the essence
_____________________________
PS: Ultra trend does the same slope comparing thing only it uses JMA for that and it's representation is a bit different, so it would be interesting to find out exactly the origin of that "slope" idea (I am not sure that it is Jose Cruset's original idea)
like this
A:
for (; masPeriod<=Mas.End; masPeriod+= Mas.Step, masCount++)
{
double ma = iMA(NULL,0,masPeriod,0,Mas.Type,Price,i);
if (price > ma) total++;
if (price < ma) total--;
}
MasTrendBuffer[i] = 100.00*total/masCount;
C:
for (; masPeriod<=Mas.End; masPeriod+= Mas.Step, masCount++)
{
double ma0 = iMA(NULL,0,masPeriod,0,Mas.Type,Price,i);
double ma1 = iMA(NULL,0,masPeriod,0,Mas.Type,Price,i+1);
if (ma0 > ma1) total++;
if (ma0 < ma1) total--;
}
MasTrendBuffer[i] = 100.00*total/masCount;
p.s. thanks, Mladen ( though i still have no idea what "for (; " means - and you don't wanna tell nobody : (((((((
for (; masPeriod<=Mas.End; masPeriod+= Mas.Step, masCount++)
Mladen, (; - looks like something missing, is it ACodeError?
dem, his code getting shorter and shorter - i'm very unhappy
now i don't even know what is it (what i'm stealing), that's apsets me
This one I needed to rename : it was described by Jose Cruset in the attached document but since he calls it a Trend Strength and since there is already an indicator for metatrader with that name (different calculation behind it) I renamed it to MasTrend.
The idea is simple : compare a price to a series of moving averages. For more details about it (not just about it) please read the attached document by Jose Cruset. In general, values above 60 and below -60 are considered as strong trend.