PureBytes Links
Trading Reference Links
|
<SPAN
class=299124217-17102002>Rick,
As I
understand the new flags they relate to backtest and optimization and not to the
actual scan creation. I could be wrong. I posted a snip of the code yesterday
which I will repeat below. The code essentially repeats its self for each of the
12 sectors. to create just one composite the code is......
<SPAN
class=299124217-17102002>
<FONT
face=Arial>
Buy=1<FONT
color=#282828>;<FONT
size=2>
newhigh=C<FONT
size=2>><FONT
color=#0000ff>Ref(<FONT
color=#0000ff>HHV(<FONT
color=#000000>C<FONT
color=#282828>,25<FONT
color=#282828>),-1);
//stocks making new high<FONT
color=#282828>
newlow=C<FONT
size=2><<FONT
color=#0000ff>Ref(<FONT
color=#0000ff>LLV(<FONT
color=#000000>C<FONT
color=#282828>,25<FONT
color=#282828>),-1);
//Stocks making new low<FONT
color=#282828>
x=SectorID(<FONT
color=#ff00ff>0);<FONT
color=#0000ff>
AddToComposite(<FONT
color=#0000ff>IIf(x==<FONT
color=#ff00ff>1,<FONT
color=#000000>C<FONT
color=#282828>,0<FONT
color=#282828>),"~Capital Goods"<FONT
color=#282828> ,"c"<FONT
color=#282828>,flags=1);
AddToComposite(<FONT
color=#0000ff>IIf(x==<FONT
color=#ff00ff>1,<FONT
color=#000000>V<FONT
color=#282828>,0<FONT
color=#282828>),"~Capital Goods"<FONT
color=#282828> ,"v"<FONT
color=#282828>,flags=1);
AddToComposite(<FONT
color=#0000ff>IIf(x==<FONT
color=#ff00ff>1,<FONT
color=#ff00ff>1,<FONT
color=#ff00ff>0),"~Capital
Goods" ,"O"<FONT
color=#282828>,flags=1);
AddToComposite(<FONT
color=#0000ff>IIf(x==<FONT
color=#ff00ff>1 <FONT
color=#000000>AND<FONT
color=#282828> newhigh,1<FONT
color=#282828>,0<FONT
color=#282828>),"~Capital Goods"<FONT
color=#282828>,"H"<FONT
color=#282828>,flags=1<FONT
color=#282828>);<FONT
face=Arial>
AddToComposite(<FONT
color=#0000ff>IIf(x==<FONT
color=#ff00ff>1 <FONT
color=#000000>AND<FONT
color=#282828> newlow,1<FONT
color=#282828>,0<FONT
color=#282828>),"~Capital Goods"<FONT
color=#282828>,"L"<FONT
color=#282828>,flags=1<FONT
color=#282828>);
to see
it on a chart just plot....<FONT
color=#282828>
Plot(<FONT
color=#000000>C, <FONT
color=#ff00ff>"Index",<FONT
color=#000000>colorBlue,<FONT
color=#ff00ff>4 );
the first scan works fine but when I rescan
new data It does not. Once I delete the composite and scan all is well. I have
tried with and with out "flags=1" . according to help flags=1 - reset
values at the beginning of scan (recommended
any input
appreciated
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: Rick Parsons
[mailto:RickParsons@xxxx]Sent: Thursday, October 17, 2002
1:19 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE:
[amibroker] composite crashing
<FONT color=#000080
size=2>Jayson,
I noticed this
text in the Readme.html. Maybe something here will help if you haven't
already see this. It also helps to post your AddToComposite
code.
<FONT color=#000080
size=2>
AddToComposite has 2 new flags that allow running AddToComposite in
backtest/optimization mode and exploration modeatcFlagEnableInBacktest =
8 atcFlagEnableInExplore = 16
the following constants were added for readability of formulas using
AddToComposite:atcFlagResetValues = 1 atcFlagCompositeGroup = 2
atcFlagTimeStamp = 4 atcFlagEnableInBacktest = 8
atcFlagEnableInExplore = 16 atcFlagDefaults = atcFlagResetValues |
atcFlagCompositeGroup | atcFlagTimeStamp;
<FONT color=#000080 face="Vladimir Script"
size=5>Rick
<FONT face=Tahoma
size=2>-----Original Message-----From: Jayson
[mailto:jcasavant@xxxx]Sent: Thursday, October 17, 2002
12:55 PMTo: 1amiSubject: [amibroker] composite
crashing
I know many of you
use composites on a routine basis. Are you finding the need to delete your
composites prior to a new scan? Using the code I posted yesterday I will need
to delete almost every one of the 12 sectors I track almost every night. If
any one has a work around I would surely appreciate the input. I feel
confident the code is correct as everything seems to work fine once I delete
and rescan. the problem is that the last bar returns untrue values prior to
deletion of the index.......
<SPAN
class=397085016-17102002>
<SPAN
class=397085016-17102002>TIA
Jayson
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|