PureBytes Links
Trading Reference Links
|
Jayson,
did you get my email.
I got an error and thus resent it...
Markus
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=jcasavant@xxxxxxxxxxxx
href="">Jayson
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Monday, February 17, 2003 5:43
PM
Subject: RE: [amibroker] Can't detect
proper cum values - TJ please read
It
is hard to decipher with out the code. If you want to send the firstswing code
either here or direct I will look at it....
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: <A
href="">funnybiz@xxxxxx
[mailto:funnybiz@xxxxxx]Sent: Monday, February 17, 2003 11:37
AMTo: <A
href="">amibroker@xxxxxxxxxxxxxxxSubject:
Re: [amibroker] Can´t detect proper cum values - TJ please
read
Jayson,
sorry to cause ya so much headache.
I already tried your suggestion before I asked
online.
If I do it as you now said, I´m only given the
last bar´s cum value (interestingly for firstswingtop AND for
firstswingbottom?????????????!!!!!!!!).
Maybe TJ knows a workaround?????
TJ???????????????
Markus
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=jcasavant@xxxxxxxxxxxx
href="">Jayson
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Monday, February 17, 2003 5:27
PM
Subject: RE: [amibroker] Can´t detect
proper cum values - TJ please read
<SPAN
class=008182216-17022003>Markus,
if
firstswing returns a true or false then eliminating the h==firstswing
and simply looking for firstswing may solve your
problem.so...
<SPAN
class=008182216-17022003>
<FONT
size=2><FONT face=Arial
color=#0000ff> Value1=Valuewhen(firstswingtop,cum(1),1)
<FONT face=Arial color=#0000ff
size=2>Value2=Valuewhen(firstswingbottom,cum(1),1)
<SPAN
class=008182216-17022003>should allow you to find the last occurrence of
firstswing.......
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: funnybiz@xxxxxx
[mailto:funnybiz@xxxxxx]Sent: Monday, February 17, 2003 11:02
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re:
[amibroker] Can´t detect proper cum values - TJ please
read
Hello Jayson,
have I tried WHAT?
Markus
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=jcasavant@xxxxxxxxxxxx
href="">Jayson
To: <A
title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Monday, February 17, 2003 4:46
PM
Subject: RE: [amibroker] Can´t detect
proper cum values - TJ please read
<SPAN
class=793204015-17022003>Markus,
<SPAN
class=793204015-17022003>
<SPAN
class=793204015-17022003>I do not know how you calculated firstswing but
have you tried...
<SPAN
class=793204015-17022003>
<FONT face=Arial color=#000000
size=2>Value1=Valuewhen(firstswingtop,cum(1),1)
and
<FONT face=Arial color=#000000
size=2>Value2=Valuewhen(firstswingbottom,cum(1),1)
In
your original cum(1) would be returned for the last time High was equal to
your trigger if this number occurs several times than your cum(1) could be
misrepresented......
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: funnybiz@xxxxxx
[mailto:funnybiz@xxxxxx]Sent: Monday, February 17, 2003 10:05
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]
Can´t detect proper cum values - TJ please read
TJ,
I´m trying to retrieve the cum
values for the two variable below clled "firstswingtop" and
"firstswingbottom". I sent the complete code so that you understand what
those two variable are made up of.
I figured that the cum values were
this
<FONT face=Arial
color=#000000>Value1=Valuewhen(h==firstswingtop,cum(1),1)
and
<FONT face=Arial
color=#000000>Value2=Valuewhen(l==firstswingbottom,cum(1),1)
but I aly get the last bars cum value.
Why is that since the conditions above can´t apply to this very last
bar????????
I´m really puzzled, since firstswingtop
and firstswingbottom detect the right high and low
values ;-))
Markus
- - - - - - - - - - - - - - - - - - - -
- - - - - - - -
swingsize=5<FONT
face="Courier New" color=#6600aa>;
weeklyrange=(<FONT face="Courier New"
color=#0000ff>Ref<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#0000ff>HHV<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#000000>High<FONT face="Courier New"
color=#6600aa>,swingsize),-<FONT face="Courier New"
color=#ff00ff>1<FONT face="Courier New"
color=#6600aa>)-<FONT face="Courier New"
color=#0000ff>Ref<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#0000ff>LLV<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#000000>Low<FONT face="Courier New"
color=#6600aa>,swingsize),-<FONT face="Courier New"
color=#ff00ff>1<FONT face="Courier New"
color=#6600aa>))*<FONT face="Courier New"
color=#ff00ff>0.1;
Thresholddown=<FONT face="Courier New"
color=#0000ff>Ref<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#0000ff>LLV<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#000000>Low<FONT face="Courier New"
color=#6600aa>,swingsize),-<FONT face="Courier New"
color=#ff00ff>1<FONT face="Courier New"
color=#6600aa>)-weeklyrange;
Thresholdup=<FONT face="Courier New"
color=#0000ff>Ref<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#0000ff>HHV<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#000000>High<FONT face="Courier New"
color=#6600aa>,swingsize),-<FONT face="Courier New"
color=#ff00ff>1<FONT face="Courier New"
color=#6600aa>)+weeklyrange;
Linechangeup=<FONT face="Courier New"
color=#000000>High<FONT face="Courier New"
color=#6600aa>>Thresholdup;
Linechangedown=<FONT face="Courier New"
color=#000000>Low<FONT face="Courier New"
color=#6600aa><thresholddown;
z=Linechangedown;
y=linechangeup;
firstlinechangedown=<FONT face="Courier New"
color=#0000ff>LastValue<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#0000ff>ValueWhen<FONT face="Courier New"
color=#6600aa>(z,<FONT face="Courier New"
color=#0000ff>Cum<FONT face="Courier New"
color=#6600aa>(1<FONT
face="Courier New" color=#6600aa>),<FONT face="Courier New"
color=#ff00ff>1));
firstlinechangeup=<FONT face="Courier New"
color=#0000ff>LastValue<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#0000ff>ValueWhen<FONT face="Courier New"
color=#6600aa>(y,<FONT face="Courier New"
color=#0000ff>Cum<FONT face="Courier New"
color=#6600aa>(1<FONT
face="Courier New" color=#6600aa>),<FONT face="Courier New"
color=#ff00ff>1));
firstswingtop=<FONT face="Courier New"
color=#0000ff>Ref<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#0000ff>HHV<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#000000>High<FONT face="Courier New"
color=#6600aa>,(firstlinechangedown-firstlinechangeup)+<FONT
face="Courier New" color=#ff00ff>1<FONT face="Courier New"
color=#6600aa>),-(<FONT face="Courier New"
color=#0000ff>LastValue<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#0000ff>Cum<FONT face="Courier New"
color=#6600aa>(1<FONT
face="Courier New" color=#6600aa>))-firstlinechangedown));
secondlinechangedown=<FONT face="Courier New"
color=#0000ff>LastValue<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#0000ff>ValueWhen(z
AND<FONT
face="Courier New" color=#6600aa> <FONT face="Courier New"
color=#0000ff>Cum<FONT face="Courier New"
color=#6600aa>(1<FONT
face="Courier New" color=#6600aa>)<<FONT face="Courier New"
color=#0000ff>LastValue<FONT face="Courier New"
color=#6600aa>(firstlinechangeup),<FONT face="Courier New"
color=#0000ff>Cum<FONT face="Courier New"
color=#6600aa>(1<FONT
face="Courier New" color=#6600aa>),<FONT face="Courier New"
color=#ff00ff>1));
secondlinechangeup=<FONT face="Courier New"
color=#0000ff>LastValue<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#0000ff>ValueWhen(y
AND<FONT
face="Courier New" color=#6600aa> <FONT face="Courier New"
color=#0000ff>Cum<FONT face="Courier New"
color=#6600aa>(1<FONT
face="Courier New" color=#6600aa>)<<FONT face="Courier New"
color=#0000ff>LastValue<FONT face="Courier New"
color=#6600aa>(secondlinechangedown),<FONT face="Courier New"
color=#0000ff>Cum<FONT face="Courier New"
color=#6600aa>(1<FONT
face="Courier New" color=#6600aa>),<FONT face="Courier New"
color=#ff00ff>1));
firstswingbottom=<FONT face="Courier New"
color=#0000ff>Ref<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#0000ff>LLV<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#000000>Low<FONT face="Courier New"
color=#6600aa>,(firstlinechangeup-secondlinechangedown)+<FONT
face="Courier New" color=#ff00ff>1<FONT face="Courier New"
color=#6600aa>),-(<FONT face="Courier New"
color=#0000ff>LastValue<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#0000ff>Cum<FONT face="Courier New"
color=#6600aa>(1<FONT
face="Courier New" color=#6600aa>))-firstlinechangeup));<FONT
face="Courier New" color=#6600aa><FONT face="Courier New"
color=#000000>
Filter<FONT face="Courier New"
color=#6600aa>=firstlinechangedown>firstlinechangeup;<FONT
face="Courier New" color=#0000ff>
AddColumn(<FONT
face="Courier New" color=#0000ff>Cum<FONT face="Courier New"
color=#6600aa>(1<FONT
face="Courier New" color=#6600aa>), <FONT face="Courier New"
color=#ff00ff>"total bars"<FONT face="Courier New"
color=#6600aa>,<FONT face="Courier New"
color=#ff00ff>1.0<FONT face="Courier New"
color=#6600aa>);
AddColumn<FONT face="Courier New"
color=#6600aa>(firstswingtop,<FONT face="Courier New"
color=#ff00ff>"1. swing top"<FONT face="Courier New"
color=#6600aa>,<FONT face="Courier New"
color=#ff00ff>1.2<FONT face="Courier New"
color=#6600aa>);
AddColumn<FONT face="Courier New"
color=#6600aa>(firstswingbottom,<FONT face="Courier New"
color=#ff00ff>"1. swing bottom"<FONT face="Courier New"
color=#6600aa>,<FONT face="Courier New"
color=#ff00ff>1.2<FONT face="Courier New"
color=#6600aa>);<FONT
face="Courier New" color=#0000ff>
AddColumn(<FONT
face="Courier New" color=#0000ff>MA<FONT face="Courier New"
color=#6600aa>(<FONT face="Courier New"
color=#000000>Volume<FONT face="Courier New"
color=#6600aa>,<FONT face="Courier New"
color=#ff00ff>50<FONT face="Courier New"
color=#6600aa>),"50DMA
Vol.",<FONT
face="Courier New" color=#ff00ff>1.2<FONT face="Courier New"
color=#6600aa>);
AddColumn(<FONT
face="Courier New" color=#000000>Close<FONT face="Courier New"
color=#6600aa>, "last
close",<FONT
face="Courier New" color=#ff00ff>1.2<FONT face="Courier New"
color=#6600aa>);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.
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.
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.
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|