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

[amibroker] Re: QuickAFL and SetBarsRequired and other stories



PureBytes Links

Trading Reference Links









This should give you the bars since the lowest close in last
100 bars of the chart

Llbars = Lowestsincebars(barindex()==barcount-1-100,c);

 



Cheers,
Graham
http://e-wire.net.au/~eb_kavan/ 



<span
>-----Original Message-----
From: Gordon Sutherland
[mailto:gosuth@xxxxxxxxxx] 
Sent: Monday, July 12, 2004 10:08
AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Re: Help
with Bars Countback

<font size=3
face="Times New Roman"> 

<font size=2 color=navy
face=Arial>Hi
Graham,

<font size=2 color=navy
face=Arial> 

<font size=2 color=navy
face=Arial>Thanks
very much for code below. It seems to give me half the answer. However, the
number of bars reported are sometimes greater than 100 look back which is where
I am really struggling. I only want to measure the lowest close in the last 100
periods and then find the offset number of bars from the last bar. Any further
thoughts on how to tweak your code would be appreciated.

<font size=2 color=navy
face=Arial> 



<font size=3 color=green
face="Times New Roman">Regards,

<font size=3 color=green
face="Times New Roman">
Gordon Sutherland



<font size=2 color=navy
face=Arial> 

<span
>-----Original Message-----
From: Graham [mailto:gkavanagh@xxxxxxxxxxxxx]

Sent: Monday, 12 July 2004 1:44
p.m.
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Re: Help
with Bars Countback

<font size=3
face="Times New Roman"> 

<font size=2
color=black face="Courier New">Gordon, try this

<font size=2
color=black face="Courier New">LLCLose = <font size=2
color=red face="Courier New">C<font
size=2 color=black face="Courier New">==<font size=2
color=blue face="Courier New">LLV<font
size=2 color=black face="Courier New">(<font size=2
color=red face="Courier New">C<font
size=2 color=black face="Courier New">,<font size=2
color=fuchsia face="Courier New">100<font
size=2 color=black face="Courier New">); 

<font size=2 color=black
face="Courier New">Llbars = <font size=2 color=blue
face="Courier New">BarsSince<font size=2
color=black face="Courier New">(Llclose);



<span
>Cheers,
Graham
http://e-wire.net.au/~eb_kavan/ 



<span
>-----Original Message-----
From: Gordon Sutherland
[mailto:gosuth@xxxxxxxxxx] 
Sent: Monday, July 12, 2004 9:31
AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Help with
Bars Countback

<font size=3
face="Times New Roman"> 

<span
>I have been trying to code in an
exploration report for the number of bars since the lowest close in the last
100 periods. I have got the value of the lowest close in the last 100 periods
 i.e. :

<span
> 

<span
> <font size=1
color=black face="Courier New">LLCLose = <font size=1
color=blue face="Courier New">LLV<font size=1
color=black face="Courier New">(C,<font
size=1 color=fuchsia face="Courier New">100<font size=1
color=black face="Courier New">);

<font size=1 color=black
face="Courier New"> 

<font size=1 color=black
face="Courier New">But I would have thought something like below would give me the #
of bars since this occurrence:

<font size=1 color=black
face="Courier New"> 

<font size=1 color=black
face="Courier New">LLBars = <span
lang=EN-NZ >LowestSinceBars<font
size=1 color=black face="Courier New">(LLClose == True,<span
>C,<font size=1 color=fuchsia
face="Courier New">1<span
lang=EN-NZ >); //
?????

<font size=1 color=black
face="Courier New"> 

<font size=1 color=black
face="Courier New">But I just don&#8217;t seem to be able to get the function and or
coding right. Any help would be appreciated.

<span
> 

<font size=3 color=green
face="Times New Roman">Regards,

<font size=3 color=green
face="Times New Roman">
Gordon Sutherland

<font size=3
face="Times New Roman"> 



Check
AmiBroker web page at:<span
>
http://www.amibroker.com/

Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
size=2> 





Check
AmiBroker web page at:<span
>
http://www.amibroker.com/

Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html





<font size=2
face="Times New Roman">

Check
AmiBroker web page at:<span
>
http://www.amibroker.com/

Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
size=2> 









Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.