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

Re: choosing one stock?



PureBytes Links

Trading Reference Links

This is a good question as i too would like to know how to do this.
Is it possible to only have stocks that may be choosen by the ROC or 
other sys to compare against an index only if the index is rising by 
using an adx formula or similar.
I am fairly new to ami and dont understand the capabilities of 
ami yet.
I can create a custom index but the results when looking at the 
chart are very choppy and has eratic short price jumps from 1 extreme 
to the other.
The prob is how can i use a custom or even the normal index as a 
base ( but only a base when it is in a rising trend) then only when 
the formula of the index is true will it then seek to buy stocks 
from whatever group of stocks you choose.
I would like this as an exploration, and also to backtest all the 
qoutes.
I would think this is impossible as it would probably have to be 
done in 2 steps and save the index results in a separate watchlist( 
but i dont think you can save a watchlist of the index or any other 
stock that has the history with only the individual date ranges or 
true results after running a formula e.g. ADX)
In this case it would only have stored the ranges of the index 
after running an ADX formula.
so then i can compare all the stocks or certain groups against this 
broken index knowing it will only buy if the index has a rising trend.
If there is any other way to do this can someone please be helpful 
and post a formula or the way to do this in a basic explanation.

sorry if this is a stupid question.

Thankyou

peter.



--- In amibroker@xxxx, "mik954" <mik-u@xxxx> wrote:
> Hi,
> 
> Did you try to store Exploration results in Watch List and then 
> caclulate the results using back-test for this list?
> 
> Mike
> 
> --- In amibroker@xxxx, "witold_dabrowski" <witold_dabrowski@xxxx> 
> wrote:
> > Hi,
> > 
> > I want back-test a trend-following system who watch an index to 
> > determine trend. When the trend is found, system ranks the stocks 
> > from index and choose one the best. The buy-signal is generated 
> only 
> > for this stock. Exit signal is generated with 'ApplyStop()' 
> function.
> > 
> > I have troubles with programming buy signal. It's simple to watch 
> > cross-over on the index, but how to tell to AmiBroker to buy a 
> stock 
> > XYZ? For this moment I see only one solution: write this as 
> > Exploration (it's simple) and calculate the results of back-
testing 
> > mannualy...