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

RE: [amibroker] Re: horizontal study lines? (in AFL) x-dates??



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Nand,
this 
is different from where we began.... To look for line breaks you could instead 
look for crosses of the line. Your condition then becomes a cross of Close (or 
O/H/L) and the study line.....
<FONT face=Arial color=#0000ff 
size=2> 
<FONT 
color=#0000ff>Study<FONT 
size=2>("s1"<FONT 
color=#282828>,1<FONT 
color=#282828>);
Buy<FONT 
color=#282828>=Cross<FONT 
color=#282828>(C, <FONT 
color=#0000ff>Study(<FONT 
color=#ff00ff>"s1",<FONT 
color=#ff00ff>1));
Sell<FONT 
color=#282828>=Cross<FONT 
color=#282828>(Study<FONT 
color=#282828>("s1"<FONT 
color=#282828>,1), 
C);
AddColumn<FONT 
face=Arial>(<FONT 
color=#000000>Buy<FONT 
color=#282828>,"buy"<FONT 
color=#282828>);
AddColumn<FONT 
face=Arial>(<FONT 
color=#000000>Sell<FONT 
color=#282828>,"Sell"<FONT 
color=#282828>);
<FONT 
color=#0000ff>Filter=buy or 
sell;
 
<FONT face=Arial 
color=#0000ff size=2>When you run the exploration set the number of bars you 
wish to explore. If n=1 then you will see only stocks who have broken the line 
today. To see how many times the line was violated in the last 20 bars set  
n=20. 
 
<FONT face=Arial color=#0000ff 
size=2> 
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: nkis22 
[mailto:nkishor@xxxxxxxxx]Sent: Wednesday, October 15, 2003 11:42 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: 
horizontal study lines? (in AFL) x-dates??hi 
Jason,I am trying yours and TJs code, but some how I cannotscan for 
horizontal line break. WHen I mouse over the line, itdoesn't show the last 
bar on the x-value so I have to change itmannually. Though theline would 
keep extending, the x-value doesn'tand may be that is why I cannot scan for 
study lie break. Are youable to do this? I am using 4.44 and all my studies 
are on themain price chartthanksnand--- In 
amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:> 
Nand,> In my example I used a simple horizontal line which extends right. 
Each day> the lastvalue will look at the current bar position. To 
achieve the same> results with a line not extended then use the 
example TJ offered which used> a combination of NOT and IsNull to 
seek out the last point of the line....> > > 
x=ValueWhen(NOT IsNull( Study("re")),Study("re"));> y=ValueWhen(NOT 
IsNull( Study("su")),Study("su"));> > > Regards,> 
Jayson> -----Original Message-----> From: nkis22 
[mailto:nkishor@xxxx]> Sent: Wednesday, October 15, 2003 12:42 AM> 
To: amibroker@xxxxxxxxxxxxxxx> Subject: [amibroker] re: horizontal study 
lines? (in AFL) x-dates??> > > Jason, does this work as the 
line keeps extending into the future> from the day you draw it. When I 
check right extend, the x-dates> don't change, and if you mouse over the 
line you will see the x-date> limits..I thought for right extend mode the 
x-date should be open.> Otherwise we will have to be redrawing the lines 
everyday> > nand> > >> > 
Filter=C>0;> > x=LastValue(Study("s1"));> > 
y=LastValue(Study("s2"));> > AddColumn(x,"");> > 
AddColumn(y,"");> > AddColumn(x-y,"");> >> 
>> > Regards,> > Jayson> > -----Original 
Message-----> > From: Bruce Nutter [mailto:bdnutter@xxxx]> > 
Sent: Tuesday, October 14, 2003 12:26 PM> > To: 
amibroker@xxxxxxxxxxxxxxx> > Subject: [amibroker] How do I subtract 
the difference between two> horizontal> > study lines? (in 
AFL)> >> >> > Gurus,> >> > 
Does anybody know how to subtract between two horizontal study> lines in 
AFL> > code? I have to study lines that I move around to calculate 
entry> and exit> > points. What I'd like to do is to show that 
vertical distance> between these> > two horizontal lines in the 
interpretation window. Would one of you> gurus> > please 
let me know how to do this?> >> > Bruce> >> 
>> > Send BUG REPORTS to bugs@xxxx> > Send SUGGESTIONS to 
suggest@xxxx> > -----------------------------------------> > 
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 Yahoo! Terms of 
Service.> > >       
Yahoo! Groups Sponsor> > > > Send BUG REPORTS to 
bugs@xxxx> Send SUGGESTIONS to suggest@xxxx> 
-----------------------------------------> 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 Yahoo! Terms of 
Service.Send 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------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 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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.