PureBytes Links
Trading Reference Links
|
Hello,
There is no magic about this.
Scan LISTS *RAW* buy/sell/short/cover signals.
Backtest shows processed TRADES.
No delays, no stops etc are applied.
--------------------------------------------
(unless you apply them explicitely by using Equity(1) somewhere in your formula
- see below for more details)
In other words SCAN is uses ZERO delay and no stops.
(if you don't use Equity(1) in your formula)
===
The basic idea is very simple: you create a system that generates
buy/sell signals, and backtest it with buy/sell delay of 1 and trade on
open. Backtester applies delays and signal generated using today's data
causes tommorrows trade.
You can run the same code with "SCAN" mode to generate
signals FOR TOMMORROW because scan does not use delays
so the signal for tommorrow will be shown today)
===
Excerpt from the Guide: Automatic analysis window :
"Scan
this starts the signal scan mode - AmiBroker will search through defined range of stocks and quotations for buy/sell signals defined
by your trading rules.If one of the buy/sell conditions is fulfilled, AmiBroker will display a line describing when and on which
stock the signal has occurred. Next AmiBroker proceeds to the end of the range so multiple signals on single stock may be generated.
"
Note:
If you use Equity(1) in your code you are simply RUNNING BACKTESTER INSIDE
your code. The signals are then affected by all backtester settings,
stops, etc.
Therefore unless you know exactly what you are doing you should use Equity(0)
that does not modify signals.
The difference between Equity(0) and Equity(1) is very simple.
Both work the same (perform internal backtest and calculate equity value)
with one difference: Equity(1) WRITES BACK UPDATED buy/sell/short/cover
signals so they represent ACTUAL TRADES taken.
Equity(0) does NOT do this therefore does not affect scan results.
Generally speaking people tend to abuse Equity(1) placing it everywhere
without understanding what is going on.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Ken Close" <closeks@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, May 01, 2003 4:25 PM
Subject: RE: [amibroker] Re: Signals for next day's Trade
> Fred: thanks for the reply....I have tried what you suggest and I
> *think* that the Scan shows the signals on the current day for the next
> day in simple systems with simple rules. I see this by switching
> between SCAN and BACKTEST. However, on more complex systems with
> multiple rules it is not easy to determine what SCAN signal goes with
> what BACKTEST Buy signal. I have read all of the documentation (but not
> past message archives) and while SCAN is mentioned hundreds of times, it
> is just the "word" and not a definition of how SCAN **WORKS**. Further
> confusing the learning by trying is the action of Equity(1) command the
> presence of which eliminates signals from SCAN. Sometimes these are
> repeated signals (like three Shorts in a row) but other times it adds or
> eliminates combinations of signals (when there are multiple exit or
> entry rules). I still remain confused enough as to have low confidence
> in acting on systems with multiple entry and exit rules....my problem I
> am sure, but it is hard for me to grasp.
>
> Thanks again for the reply,
>
> Ken
>
> -----Original Message-----
> From: Fred [mailto:fctonetti@xxxxxxxxx]
> Sent: Thursday, May 01, 2003 10:09 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Signals for next day's Trade
>
> Ken,
>
> Not to intentionally not answer your question but can't you test with
> a stock that you know has a buy on some particular open by setting
> the day back one day and running the scan ?
>
> Fred
>
> PS I would think it would NOT show unless you change your criteria
> from Buy Open / Delay 1 ... to ... Buy Close / Delay 0
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Ken Close" <closeks@xxxx> wrote:
> > Hi: would someone review with me the seemingly simple task of
> showing
> > next days signals. What I mean is that a system that
> > buys/sells/shorts/cover with 1 day delay at the open should be
> showing a
> > signal the night before in order to tell you to place an order the
> next
> > morning.
> >
> > How exactly do you get the signal to display?
> >
> > This is so basic a question that I am embarrassed to ask but ....
> when
> > one does a scan for the signals after nightly EOD download, does
> SCAN
> > show a signal for the next day's trade?
> >
> > I recall Dingo speaking of no signals showing in the Scan unless you
> > create a separate file with different buy rules
> >
> > Buy = Ref(Buy,-1), etc.
> >
> > But this seem confusing at best and wrong at worst, but what is the
> > answer?
> >
> > A patient and complete reply would be most helpful for me and I bet
> a
> > lot of others.
> >
> > Thanks,
> >
> > Ken
>
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading!
Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/cjB9SD/od7FAA/uetFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|