[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stochastic Trendlines



PureBytes Links

Trading Reference Links

Hi Mark,
In the formula you may replace s1 and s11 with any other function
and have the respective trendlines.
There is a restriction: since trough and peak function, as far as I 
know,
do not operate with negative values, you should make some 
tranformations.
Example:%R is between -100 and 0. So, the
s1=100+%R
will be between 0 and 100 and you may apply the formula.
If you do not know the limits of your function F1, you may use
s1=abs(Lowest(F1))+F1
which is always >=0.
Dimitris Tsokakis
--- In amibroker@xxxx, Marc Valley <valleymj@xxxx> wrote:
> Nice job...
> Can you code this?
> 
> How about Relative Slope, Balance of Power 
> and Wilder %R with Similar Trendlines.
> 
> Mr. Valley
> 
> --- Dimitris Tsokakis <TSOKAKIS@xxxx> wrote:
> > An amibroker user asked an interesting question.
> > In Stochastic Trendlines formula, 
> > http://www.amibroker.com/library/detail.php?id=103
> > the lines to be green when ascending and red when
> > descending. 
> > I never thought when preparing the formula,
> > but the answer follows:
> > Replace the lines
> > graph6color = 1;
> > graph7color = 1;
> > with the following
> > 
> > Graph6BarColor = IIf(aS>0,5,4);
> > Graph7BarColor = IIf(aR>0,5,4);
> > 
> > Of course the same may be applied to /*Pattern
> > Recognition graph*/ 
> > at
> > http://www.amibroker.com/library/detail.php?id=105
> > and anywhere else.
> > 
> > Dimitris Tsokakis
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just 
$8.95/month.
> http://geocities.yahoo.com/ps/info1