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

composites



PureBytes Links

Trading Reference Links

Tomasz, all;

I run a scan nightly to create composites for my sector work. each night I
will have to delete the composites and start over because I get the
following result.......




the partial code that creates one of the composites is.....

Buy=1;

newhigh=C>Ref(HHV(C,25),-1); //stocks making new high

newlow=C<Ref(LLV(C,25),-1); //Stocks making new low

x=SectorID(0);

AddToComposite(IIf(x==1,C,0),"~Capital Goods" ,"c",flags=1);

AddToComposite(IIf(x==1,V,0),"~Capital Goods" ,"v",flags=1);

AddToComposite(IIf(x==1,1,0),"~Capital Goods" ,"O",flags=1);

AddToComposite(IIf(x==1 AND newhigh,1,0),"~Capital Goods","H",flags=1);

AddToComposite(IIf(x==1 AND newlow,1,0),"~Capital Goods","L",flags=1);



I added the flags=1 and it seemed to work in the previous beta but I only
used the flag a couple of times before the last upgrade. Since the upgrade
it does not seem to solve the problem. Once deleted and recreated it works
fine. Any guidance would be welcome.

TIA

Jayson



------=_NextPart_001_002B_01C2750B.AE086130
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" http-equiv=3DContent-Type=
>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR></HEAD>
<BODY>
<DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT face=3DArial><SPAN class=3D042394103-11102002>Tom=
asz,<FONT=20
color=3D#0000ff><SPAN class=3D660495215-16102002>&nbsp;&nbsp;<FONT=20
color=3D#000000>all;&nbsp;</FONT></SPAN></FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D042394103-11102002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D042394103-11102002>I run a s=
can nightly=20
to create composites for my sector work.&nbsp;&nbsp;<SPAN=20
class=3D660495215-16102002><FONT color=3D#0000ff>&nbsp;</FONT>each night</S=
PAN> I=20
will have to delete the composites and start over because I get the followi=
ng=20
result.......</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D042394103-11102002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D042394103-11102002><IMG alig=
n=3Dbaseline=20
alt=3D"" border=3D0 hspace=3D0 src=3D"cid:042394103@xxxx";></SPAN><=
/FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D042394103-11102002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT face=3DArial><SPAN class=3D042394103-11102002><SP=
AN=20
class=3D660495215-16102002></SPAN></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT face=3DArial><SPAN class=3D042394103-11102002><SP=
AN=20
class=3D660495215-16102002>&nbsp;</SPAN>the&nbsp;<SPAN=20
class=3D660495215-16102002>&nbsp;partial &nbsp;</SPAN>code that creates<SPA=
N=20
class=3D660495215-16102002>&nbsp; one of&nbsp;</SPAN> the composite<SPAN=20
class=3D660495215-16102002>s&nbsp;</SPAN> is.....</SPAN></FONT></FONT></DIV=
>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D042394103-11102002></SPAN></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D042394103-11102002><B><FONT face=3DArial><FONT size=3D2>
<P>Buy</B><FONT color=3D#282828>=3D</FONT><FONT color=3D#ff00ff>1</FONT><FO=
NT=20
color=3D#282828></FONT></FONT><FONT face=3DArial size=3D2>;</FONT></P><FONT=
=20
size=3D2><FONT face=3DArial>
<P>newhigh=3D</FONT><B><FONT color=3D#000000>C</B></FONT></FONT></FONT><FON=
T=20
size=3D2><FONT face=3DArial><FONT color=3D#282828>&gt;</FONT><FONT=20
color=3D#0000ff>Ref</FONT><FONT color=3D#282828>(</FONT><FONT=20
color=3D#0000ff>HHV</FONT><FONT color=3D#282828>(</FONT><B><FONT=20
color=3D#000000>C</B></FONT></FONT></FONT><FONT face=3DArial><FONT size=3D2=
><FONT=20
color=3D#282828>,</FONT><FONT color=3D#ff00ff>25</FONT><FONT=20
color=3D#282828>),-</FONT><FONT color=3D#ff00ff>1</FONT><FONT color=3D#2828=
28>);=20
</FONT><FONT color=3D#008000>//stocks making new high</P></FONT><FONT=20
color=3D#282828></FONT></FONT><FONT size=3D2><FONT face=3DArial>
<P>newlow=3D</FONT><B><FONT color=3D#000000>C</B></FONT></FONT></FONT><FONT=
=20
size=3D2><FONT face=3DArial><FONT color=3D#282828>&lt;</FONT><FONT=20
color=3D#0000ff>Ref</FONT><FONT color=3D#282828>(</FONT><FONT=20
color=3D#0000ff>LLV</FONT><FONT color=3D#282828>(</FONT><B><FONT=20
color=3D#000000>C</B></FONT></FONT></FONT><FONT face=3DArial><FONT size=3D2=
><FONT=20
color=3D#282828>,</FONT><FONT color=3D#ff00ff>25</FONT><FONT=20
color=3D#282828>),-</FONT><FONT color=3D#ff00ff>1</FONT><FONT color=3D#2828=
28>);=20
</FONT><FONT color=3D#008000>//Stocks making new low</P></FONT><FONT=20
color=3D#282828></FONT></FONT><FONT face=3DArial><FONT size=3D2>
<P>x=3D</FONT><FONT color=3D#0000ff>SectorID</FONT><FONT color=3D#282828>(<=
/FONT><FONT=20
color=3D#ff00ff>0</FONT><FONT color=3D#282828>);</P></FONT><FONT=20
color=3D#0000ff></FONT></FONT><FONT size=3D2><FONT face=3DArial>
<P>AddToComposite</FONT><FONT color=3D#282828>(</FONT><FONT=20
color=3D#0000ff>IIf</FONT><FONT color=3D#282828>(x=3D=3D</FONT><FONT=20
color=3D#ff00ff>1</FONT><FONT color=3D#282828>,</FONT><B><FONT=20
color=3D#000000>C</B></FONT></FONT></FONT><FONT face=3DArial><FONT size=3D2=
><FONT=20
color=3D#282828>,</FONT><FONT color=3D#ff00ff>0</FONT><FONT=20
color=3D#282828>),</FONT><FONT color=3D#ff00ff>"~Capital Goods"</FONT><FONT=
=20
color=3D#282828> ,</FONT><FONT color=3D#ff00ff>"c"</FONT><FONT=20
color=3D#282828>,flags=3D</FONT><FONT color=3D#ff00ff>1</FONT><FONT color=
=3D#282828>);=20
</P></FONT><FONT color=3D#0000ff></FONT></FONT><FONT size=3D2><FONT face=3D=
Arial>
<P>AddToComposite</FONT><FONT color=3D#282828>(</FONT><FONT=20
color=3D#0000ff>IIf</FONT><FONT color=3D#282828>(x=3D=3D</FONT><FONT=20
color=3D#ff00ff>1</FONT><FONT color=3D#282828>,</FONT><B><FONT=20
color=3D#000000>V</B></FONT></FONT></FONT><FONT face=3DArial><FONT size=3D2=
><FONT=20
color=3D#282828>,</FONT><FONT color=3D#ff00ff>0</FONT><FONT=20
color=3D#282828>),</FONT><FONT color=3D#ff00ff>"~Capital Goods"</FONT><FONT=
=20
color=3D#282828> ,</FONT><FONT color=3D#ff00ff>"v"</FONT><FONT=20
color=3D#282828>,flags=3D</FONT><FONT color=3D#ff00ff>1</FONT><FONT color=
=3D#282828>);=20
</P></FONT><FONT color=3D#0000ff></FONT></FONT><FONT face=3DArial><FONT siz=
e=3D2>
<P>AddToComposite</FONT><FONT color=3D#282828>(</FONT><FONT=20
color=3D#0000ff>IIf</FONT><FONT color=3D#282828>(x=3D=3D</FONT><FONT=20
color=3D#ff00ff>1</FONT><FONT color=3D#282828>,</FONT><FONT=20
color=3D#ff00ff>1</FONT><FONT color=3D#282828>,</FONT><FONT=20
color=3D#ff00ff>0</FONT><FONT color=3D#282828>),</FONT><FONT color=3D#ff00f=
f>"~Capital=20
Goods"</FONT><FONT color=3D#282828> ,</FONT><FONT color=3D#ff00ff>"O"</FONT=
><FONT=20
color=3D#282828>,flags=3D</FONT><FONT color=3D#ff00ff>1</FONT><FONT color=
=3D#282828>);=20
</P></FONT><FONT color=3D#0000ff></FONT></FONT><FONT size=3D2><FONT face=3D=
Arial>
<P>AddToComposite</FONT><FONT color=3D#282828>(</FONT><FONT=20
color=3D#0000ff>IIf</FONT><FONT color=3D#282828>(x=3D=3D</FONT><FONT=20
color=3D#ff00ff>1</FONT><FONT color=3D#282828> </FONT><B><FONT=20
color=3D#000000>AND</B></FONT></FONT></FONT><FONT face=3DArial><FONT size=
=3D2><FONT=20
color=3D#282828> newhigh,</FONT><FONT color=3D#ff00ff>1</FONT><FONT=20
color=3D#282828>,</FONT><FONT color=3D#ff00ff>0</FONT><FONT=20
color=3D#282828>),</FONT><FONT color=3D#ff00ff>"~Capital Goods"</FONT><FONT=
=20
color=3D#282828>,</FONT><FONT color=3D#ff00ff>"H"</FONT><FONT=20
color=3D#282828>,flags=3D</FONT><FONT color=3D#ff00ff>1</FONT><FONT=20
color=3D#282828>);</P></FONT><FONT color=3D#0000ff></FONT></FONT><FONT size=
=3D2><FONT=20
face=3DArial>
<P>AddToComposite</FONT><FONT color=3D#282828>(</FONT><FONT=20
color=3D#0000ff>IIf</FONT><FONT color=3D#282828>(x=3D=3D</FONT><FONT=20
color=3D#ff00ff>1</FONT><FONT color=3D#282828> </FONT><B><FONT=20
color=3D#000000>AND</B></FONT></FONT></FONT><FONT size=3D2><FONT face=3DAri=
al><FONT=20
color=3D#282828> newlow,</FONT><FONT color=3D#ff00ff>1</FONT><FONT=20
color=3D#282828>,</FONT><FONT color=3D#ff00ff>0</FONT><FONT=20
color=3D#282828>),</FONT><FONT color=3D#ff00ff>"~Capital Goods"</FONT><FONT=
=20
color=3D#282828>,</FONT><FONT color=3D#ff00ff>"L"</FONT><FONT=20
color=3D#282828>,flags=3D</FONT><FONT color=3D#ff00ff>1</FONT><FONT=20
color=3D#282828>);</FONT></FONT></FONT></P>
<P><FONT color=3D#282828></FONT>&nbsp;</P>
<P><FONT face=3DArial size=3D2><SPAN class=3D042394103-11102002>I added the=
flags=3D1=20
and it seemed to work in the previous beta but I only used the flag a coupl=
e of=20
times before the last upgrade.&nbsp; Since the upgrade it&nbsp; does not se=
em to=20
solve the problem. Once deleted and recreated it works fine. Any guidance w=
ould=20
be welcome.</SPAN></FONT></P>
<P><FONT face=3DArial size=3D2><SPAN=20
class=3D042394103-11102002>TIA</SPAN></FONT></P></SPAN></DIV>
<P><FONT color=3D#0000ff face=3D"Palace Script MT" size=3D6><STRONG>Jayson=
=20
</STRONG></FONT></P>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_001_002B_01C2750B.AE086130--

Attachment: Description: ""