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

Re: Trend Ribbon/ Expert Advisor Help


  • To: metastock@xxxxxxxxxxxxx
  • Subject: Re: Trend Ribbon/ Expert Advisor Help
  • From: Craig DeHaan <cdehaan@xxxxxxxxxxxx>
  • Date: Wed, 23 Sep 1998 19:54:24 -0400 (EDT)
  • In-reply-to: <19980923133233.23307.rocketmail@xxxxxxxxxxxxxxxxxxxxx>

PureBytes Links

Trading Reference Links

Bob,

Try these as per your RSI trend ribbon / advisor formulas specs:

Bullish:
RSI(14)>40 AND 
BarsSince(Cross(RSI(14),60))<BarsSince(Cross(40,RSI(14)))

Bearish:
RSI(14)<60 AND 
BarsSince(Cross(RSI(14),60))>BarsSince(Cross(40,RSI(14)))

There might very well be a more elegant way to get there, but this
method is fairly intuitive...  and it works!

Craig



Robert Lambert wrote:
> 
> I am attempting to configure a Trend Ribbon in an Expert Advisor,
> using the RSI as a trend following indicator.
> 
> I would like to define a bullish trend as the RSI(14)rising above 60.
> The trend would remain bullish until the RSI (14) fell below 40.
> 
> I would like to define a bearish trend as the RSI(14)falling below 40.
> The trend would remain bullish until the RSI (14) rose above 60.
> 
> It's easy to program the first cross of the RSI to begin definition of
> the trend, but I'm not sure how to keep the trend active until the
> second cross of the RSI changes to the countertrend.
> 
> Can someone suggest a simple formula to achieve this?
> 
> Thanks.
> 
> Bob L.
> 
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com