PureBytes Links
Trading Reference Links
|
Markus,
Send it to me also...offline...
Anthony
IVA GmbH wrote:
> Hello Jayson, Iīll send you the code offline in a couple of minutes.
> The other bb members might be getting bored if we continued HERE,
> eh?? Then, I can tell you what the code does. It really might need
> some explanation on my part>g>. TTYL Markus
>
> ----- Original Message -----
> From: Jayson
> To: 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
> -----Original Message-----
> From: funnybiz@xxxxxx [mailto:funnybiz@xxxxxx]
> Sent: Monday, February 17, 2003 11:37 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: 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
>
> ----- Original Message -----
> From: Jayson
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Monday, February 17, 2003 5:27 PM
> Subject: RE: [amibroker] Canīt detect proper cum
> values - TJ please read
> Markus,if firstswing returns a true or false
> then eliminating the h==firstswing and simply
> looking for firstswing may solve your
> problem.so...
> Value1=Valuewhen(firstswingtop,cum(1),1)Value2=Valuewhen(firstswingbottom,cum(1),1) should
> allow you to find the last occurrence of
> firstswing....... Jayson
> -----Original Message-----
> From: funnybiz@xxxxxx [mailto:funnybiz@xxxxxx]
> Sent: Monday, February 17, 2003 11:02 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Canīt detect proper cum
> values - TJ please read
>
> Hello Jayson, have I tried WHAT? Markus
>
> ----- Original Message -----
> From: Jayson
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Monday, February 17, 2003 4:46 PM
> Subject: RE: [amibroker] Canīt detect
> proper cum values - TJ please read
> Markus,I do not know how you calculated
> firstswing but have you tried...
>
>
> alue1=Valuewhen(firstswingtop,cum(1),1)
> and
>
>
> alue2=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
> -----Original Message-----
> From: funnybiz@xxxxxx
> [mailto:funnybiz@xxxxxx]
> Sent: Monday, February 17, 2003 10:05 AM
>
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [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
>
>
> alue1=Valuewhen(h==firstswingtop,cum(1),1)
> and
>
>
> alue2=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;
>
>
> eeklyrange=(Ref(HHV(High,swingsize),-1)-Ref(LLV(Low,swingsize),-1))*0.1;
>
> Thresholddown=Ref(LLV(Low,swingsize),-1)-weeklyrange;
>
> Thresholdup=Ref(HHV(High,swingsize),-1)+weeklyrange;
>
> Linechangeup=High>Thresholdup;
>
> Linechangedown=Low<thresholddown;
>
> z=Linechangedown;
>
> y=linechangeup;
>
>
> irstlinechangedown=LastValue(ValueWhen(z,Cum(1),1));
>
> firstlinechangeup=LastValue(ValueWhen(y,Cum(1),1));
>
> firstswingtop=Ref(HHV(High,(firstlinechangedown-firstlinechangeup)+1),-(LastValue(Cum(1))-firstlinechangedown));
>
> secondlinechangedown=LastValue(ValueWhen(z
> AND
> Cum(1)<LastValue(firstlinechangeup),Cum(1),1));
>
> secondlinechangeup=LastValue(ValueWhen(y
> AND
> Cum(1)<LastValue(secondlinechangedown),Cum(1),1));
>
> firstswingbottom=Ref(LLV(Low,(firstlinechangeup-secondlinechangedown)+1),-(LastValue(Cum(1))-firstlinechangeup));
>
> Filter=firstlinechangedown>firstlinechangeup;
>
> AddColumn(Cum(1), "total bars",1.0);
>
> AddColumn(firstswingtop,"1. swing
> top",1.2);
>
> AddColumn(firstswingbottom,"1. swing
> bottom",1.2);
>
> AddColumn(MA(Volume,50),"50DMA
> Vol.",1.2);
>
> AddColumn(Close, "last close",1.2);
>
> 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.
>
>
> 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.
>
> 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.
>
>
> 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.
>
> 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.
>
>
> 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.
>
>
> 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.
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/
|