PureBytes Links
Trading Reference Links
|
Just for clarity; I was attempting to add additional information, not
criticize Bruce's reply. Since the context of the original question
was in fact for Plotting, I have no argument with Bruce's suggestion.
I just wanted to point out that should you eventually turn this into
a backtest, you might want to avoid the ExRem. Especially if your
code ends up using manual looping code for anything.
Mike
--- In amibroker@xxxxxxxxxxxxxxx, "Mike" <sfclimbers@xxx> wrote:
>
> ExRem is great for charting and for use on intermediary variables.
> But, it can interfere with the backtester and Tomasz recommends not
> using it for Buy/Sell/Short/Cover arrays for that reason.
>
> http://finance.groups.yahoo.com/group/amibroker/message/125451
>
> As an alternative, you can use the Cross function rather than the
> relational operators '<' and '>'.
>
> BuyCond1 = Cross(EMA( Close , 15 ), EMA( Close , 100 ));
>
> That way you don't end up with the redundant signals in the first
> place.
>
> Mike
>
> --- In amibroker@xxxxxxxxxxxxxxx, "wavemechanic" <timesarrow@>
> wrote:
> >
> > Use exrem() to get rid of unwanted signals. You can also use
> plotshapes() to plot buy/sell arrows.
> >
> > Bill
> > ----- Original Message -----
> > From: Noah Bender
> > To: amibroker@xxxxxxxxxxxxxxx
> > Sent: February 22, 2009 12:10 AM
> > Subject: [amibroker] question on formula for plot trade price
> >
> >
> > hello,
> >
> > I am new to amibroker and am trying to figure this one out.
> >
> > I have a simple formula
> > BuyCond1= EMA( Close , 15 ) > EMA( Close , 100 );
> >
> >
> > Buy = Buycond1 ;
> >
> > Sell = EMA (Close,15)<EMA(Close,100);
> >
> > I am trying to plot the trade price on the chart. so far I have
> this:
> >
> >
> > Plot(C,"Price", colorBlack, styleLine );
> > Plot(EMA(C,15),"ema", colorRed );
> >
> >
> > for( i = 0; i < BarCount; i++ )
> > {
> > if( Buy[i] ) PlotText( "Buy\n@" + C[ i ], i, L[ i ],
colorGreen );
> > if( Sell[i] ) PlotText( "Sell\n@" + C[ i ], i, H[ i ],
colorRed,
> colorYellow );
> >
> > WHen I apply indicator it plots the price at every point on the
> chart and not just when the moving averages cross. Does anyone know
> why? and can show me the formula???
> >
> > It would be much appreciated.
> >
> > thanks
> >
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|