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

RE: [amibroker] Graham again( was AFL help...)



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Gilles,
put 
another way flip simply hold the condition true until cond 2 "Flips" it to 
false. Consider this
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>Cond1=c>10;
cond2 
c<8;
<FONT face=Arial color=#0000ff 
size=2> 
using 
flip if the price of your stock rises to 11 then drops back to 9 the condition 
is still considered true (1), even though your price is now below the thresh 
hold. Once the price drops below 8 the cognition is now considered (flipped to) 
false (0). 
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: Graham 
[mailto:gkavanagh@xxxxxxxxxxxxx]Sent: Friday, September 12, 2003 6:01 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker] 
Graham again( was AFL help...)Gilles, sorry my French 
is a bit rusty, over 30 years since learning someand none understood me 
anyway on my last trip to ParisIf you do an exploration (with cond1 and 
cond2 in the columns) over a periodwhere the conditions exist you would see 
that once Cond1 becomes 1 normallythe next day it returns to zero, but the 
flip will carry forward that 1until Cond2 is true. At this day Cond1 becomes 
0 and Cond2=1.Hope this helpsCheers,Graham<A 
href="">http://groups.msn.com/ASXShareTrading<A 
href="">http://groups.msn.com/FMSAustralia-----Original 
Message-----From: gillesdeprez [mailto:gillesdeprez@xxxxxxxxx] Sent: 
Friday, 12 September 2003 5:44 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
[amibroker] Graham again( was AFL help...)Graham, You're right, 
that's not the problem, but...can you express :Cond3 = Flip(Cond1,Cond2);in 
english?Well, french would do even better, but :o)Something obviously is 
missing in my brain, but I can't see the relationship between this line and 
the crossings that are sooo easy to see on a graph....Thanks for your 
patience, I owe you a couple of bbelgian) beers! Gilles> Gilles> 
Sorry the 50 should have been 0, slip of the keys, or brain If you > want 
to find where the macd crosses below the signal line asfirst> 
instance after macd moves above zero> I made a little mistake in my hasty 
scribblings, just checked andthis> should give you that 
condition> Hopefully I have interpreted correctly> > Cond1 
= Cross(MACD(),0);> Cond2 = Cross(Signal(),MACD());> Cond3 = 
Flip(Cond1,Cond2);> Filter = Cond2 AND Ref(Cond3,-1); 
AddColumn(Cond2,"close",1.3);> > If you want to find either the 
above or just Cond2 then> Cond1 = Cross(MACD(),0);> Cond2 = 
Cross(Signal(),MACD());> Cond3 = Flip(Cond1,Cond2);> Cond4 = Cond2 
AND Ref(Cond3,-1);> Filter = Cond4 or Cond2;> 
AddColumn(Cond2,"close",1);> AddColumn(Cond4,"close",1);> > 
Cheers,> Graham> <A 
href="">http://groups.msn.com/ASXShareTrading> 
<A 
href="">http://groups.msn.com/FMSAustralia> 
> > -----Original Message-----> From: gillesdeprez 
[mailto:gillesdeprez@xxxx]> Sent: Friday, 12 September 2003 1:33 
PM> To: amibroker@xxxxxxxxxxxxxxx> Subject: [amibroker] Graham ( 
was AFL help...)> > > Hi Graham!> Hem, I'm still 
sinking, as Yuki said, I never realized I wasmentally > challenged 
before I began to use this program...> Hence:> How do I include 
this in an explo? How do "filter" and "cond" mix??I 've> read what I 
found about "flip", well I'm not electrician...In> this particular case, 
how I see it is:> or MACD line crosses above 50( where is this 50 coming 
from??), then > it results a (1)-and if not, then maybe MACD line 
crosses belowMACD > signal: one out of two conditions are enough to 
give a positive> result (1) , if both are false then it results in a 
(0);> Damn, I'm not too sure to understand myself what I'm writing... And 
I still> don't see any relationship with the condition I try 
to> write, it may be there but I just can't see it...> Can you 
help? :o(> Friendly,> Gilles> > --- In 
amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:> > I 
think this may give you what you want> > > > Cond1 = 
cross(macd(),50);> > Cond2 = cross(signal(),macd());> > 
Cond3 = flip(Cond1,Cond2);> > Sell = Cond2 and ref(Cond1,-1);> 
> > > Cheers,> > Graham> > <A 
href="">http://groups.msn.com/ASXShareTrading> 
> <A 
href="">http://groups.msn.com/FMSAustralia> 
> > > > > -----Original Message-----> > From: 
gillesdeprez [mailto:gillesdeprez@xxxx]> > Sent: Thursday, 11 
September 2003 10:23 PM> > To: amibroker@xxxxxxxxxxxxxxx> > 
Subject: [amibroker] AFL help...> > > > > > I give 
up, my brain has melted...> > Please, how can I set up a condition 
as:> > The MACD line crosses below the  MACD signal FOR THE FIRST 
TIME> SINCE> > the signal has crossed above zero.> > 
TIA to the group!> > Gilles> > > > 
------------------------ Yahoo! Groups Sponsor ---------------------~--> 
Buy> Ink Cartridges or Refill Kits for Your HP, Epson, Canon or 
LexmarkPrinter> at Myinks.com. Free s/h on orders $50 or more to the 
US & Canada. > <A 
href="">http://www.c1tracking.com/l.asp?cid=5511> 
<A 
href="">http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM> 
---------------------------------------------------------------------~->> 
> 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<A 
href="">http://docs.yahoo.com/info/terms/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 <A 
href="">http://docs.yahoo.com/info/terms/ 
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.