PureBytes Links
Trading Reference Links
|
Thank you, Graham. That did it!
Best
FP
--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> use Flip function
>
> On 6/17/05, fpsteiner <fpsteiner@xxxx> wrote:
> > Thanks for your efforts...
> >
> > However, just adding the signals results in spikes only.
> >
> > Because the array Cond1 is 0 everywhere except for when the
condition
> > is true (= cross of the two signals), and I then add a second
array
> > with 1s someplace else, I only get to 3 if all three signals are
true
> > on the same bar. However, this rarely happens.
> >
> > From such a Cond1 array
> > [0 0 0 1 0 0 0 0 ... ]
> >
> > I would want to create an array that is sort of the integral of
the
> > Cond1:
> > [0 0 0 1 1 1 1 1 ... ]
> >
> > This means, Cond1 is true as long as it is not actively set back
to
> > false, like a flip-flop.
> >
> > Any ideas?
> >
> > Good investing!
> > FP
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Dickie Paria" <babui@xxxx>
wrote:
> > > Sorry - I just realized you wanted a PLOT function only. Ara's
> > post
> > > explains it.
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, "Dickie Paria" <babui@xxxx>
wrote:
> > > > I presume you already know how to code this in AFL. So - set
up
> > > your
> > > > buy rules as "Conditions" i.e., Cond1 = MACD signal cross;
Cond2
> > =
> > > > EMA short/long cross; Cond3 = RSI/50 cross; Buy = Cond1 +
Cond2
> > +
> > > > Cond3; Sell = whatever you have as your sell.
> > > >
> > > > --- In amibroker@xxxxxxxxxxxxxxx, "fpsteiner" <fpsteiner@xxxx>
> > > wrote:
> > > > > Hi all,
> > > > >
> > > > > One trading signal is usually not enough, so we look for
> > > > > confirmations. I use a threefold signal/confirmation of
> > > > > - MACD/signal cross
> > > > > - EMA short/EMA long cross
> > > > > - RSI/50 line cross
> > > > >
> > > > > How can I plot a step function representing these signals? A
> > Buy
> > > > > signal from MACD/signal cross would go to 1, if confirmed by
> > the
> > > > EMA
> > > > > signal it goes up one further, if confirmed by the RSI it
> > finally
> > > > > reaches 3, which would be the ultimate confirmed buy signal.
> > The
> > > > same
> > > > > for sell.
> > > > >
> > > > > ¦-------------- 3
> > > > > ¦--¦ 2
> > > > > ¦------¦ 1
> > > > > ----¦ 0
> > > > >
> > > > > I am looking forward to your hints and ideas.
> > > > >
> > > > > Good investing
> > > > > FP
> >
> >
> >
> >
> >
> >
> >
> > Please note that this group is for discussion between users only.
> >
> > To get support from AmiBroker please send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Cheers
> Graham
> http://e-wire.net.au/~eb_kavan/
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|