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

[amibroker] Re: buy/sell arrows (Volume Price Confirmation Indicator)



PureBytes Links

Trading Reference Links

What am I doing wrong.  After following the instructions listed below 
I still am unable to display the arrows on the chart.  What am I 
doing wrong??

--- In amibroker@xxxxxxxxxxxxxxx, "Fred" <ftonetti@xxx> wrote:
>
> Run backtest ... Then right click on the tradelist in the AA window 
> and click on show arrows for actual trades.
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "mikedostal24" <mikedostal24@> 
> wrote:
> >
> > Hello,
> > Tomasz provided code for the July issue of Technical Analysis of 
> > Stock & Commodities magazine along with a picture of a chart. In 
> the 
> > picture there are buy/sell arrows which don't seem to be in the 
> code. 
> > I am wondering how I would plot this - do I need to write a 
> seperate 
> > code to plot the arrows as seperate overlay? Below is the code
> > Any help is appreciated.
> > Thanks in advance!
> > mike
> > 
> > // Volume Price Confirmation Indicator (VCPI) CODE
> > // volume weighted MA
> > function VWMA( array, period )
> > {
> >   return Sum( array * V, period ) / Sum( V, period );
> > }
> > // Volume Price Confirmation Indicator
> > function VPCI( speriod, Lperiod )
> > {
> >   Vw = VWMA( C, lperiod );
> >   Vpc = Vw - MA( C, lperiod );
> >  
> >   Vpr = VWMA( C, speriod ) / MA( C, speriod );
> >   Vm = MA( V, speriod ) / MA( V, Lperiod );
> >   return Vpc * Vpr * Vm;
> > }
> > 
> > // plot VPCI
> > speriod = Param("Short period", 5, 1, 50, 1 );
> > lperiod = Param("Long period", 20, 1, 100, 1 );
> > Vp = VPCI( speriod, Lperiod );
> > Plot( Vp, "VPCI"+ _PARAM_VALUES(), colorRed );
> > 
> > // and VPCI smoothed
> > aperiod = Param("Smoothing period", 20, 1, 30, 1 );
> > Vps = MA( Vp, aperiod);
> > Plot( Vps, "MA("+aperiod+")", colorBlue );
> > 
> > // simple trading system follows
> > Buy = Vp > Vps AND
> >       ADX( 7 ) > 10 AND
> >       MACD( 12, 26 ) > Signal( 12, 26, 9 );
> > Sell = Vps < Vp;
> >
>




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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> 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/