PureBytes Links
Trading Reference Links
|
dear Formulaprimer,
Think Rainbow?
The ribbon feature in an expert is designed to display a TRUE or FALSE
result,not a running count like an indicator.
here's an example of a system that generates a binary signal +1.-1,else 0
if the close is greater than the 10 ma and the close has been above the 65 day ma for at least 3 days then long and the reverse of that for a short
Buy:=If(C>Mov(C,10,S) and Sum(C>Mov(C,65,S),3)>2),1,0);
Sell:=If(C<Mov(C,10,S) and Sum(C<Mov(C,65,S),3)>2),-1,0);
Signal:=Buy+Sell;
Signal;
in the bullish tab"color green""text Bull" enter
Buy:=If(C>Mov(C,10,S) and Sum(C>Mov(C,65,S),3)>2),1,0);
Sell:=If(C<Mov(C,10,S) and Sum(C<Mov(C,65,S),3)>2),-1,0);
Signal:=Buy+Sell;
Signal=1
in the bearish tab"color red""text Bear" enter
Buy:=If(C>Mov(C,10,S) and Sum(C>Mov(C,65,S),3)>2),1,0);
Sell:=If(C<Mov(C,10,S) and Sum(C<Mov(C,65,S),3)>2),-1,0);
Signal:=Buy+Sell;
Signal=-1
the bullish trend will show when the system is long,
the bullish trend will show when the system is short
and the remaining ribbon will show when you are out of the trade
--- In equismetastock@xxxxxxxxxxxxxxx, "formulaprimer" <formulaprimer@xxx> wrote:
>
> Think Rainbow...
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "Henry" <henry1224@> wrote:
> >
> > the expert Ribbon in an expert can only display a binary result, it cannot display a running count.
> >
> > Example
> >
> > Buy:=If(C>Mov(C,10,S) and Sum(C>Mov(C,65,S),3)>2),1,0);
> > Sell:=If(C<Mov(C,10,S) and Sum(C<Mov(C,65,S),3)>2),-1,0);
> > Signal:=Buy-Sell;
> > Signal;
> >
> > Bullish = Signal=1
> >
> > Bearish =Signal=-1
> >
> > all else =0
> >
> >
> >
> > --- In equismetastock@xxxxxxxxxxxxxxx, "fib1618" <fib1618@> wrote:
> > >
> > > I thought of using an Expert ribbon to show idealised cycle counts but can't figure out how to do it.
> > > I put the " day, month,year " in but how can I say " add say 8 days " to that ?
> > > I looked up Help but can't see anything useful -- but I'm prob missing it.
> > >
> > > any advice appreciated
> > > thanks Keith
> > >
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
equismetastock-digest@xxxxxxxxxxxxxxx
equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|