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

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



PureBytes Links

Trading Reference Links

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 as first
instance after macd moves above zero
I made a little mistake in my hasty scribblings, just checked and this
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
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia


-----Original Message-----
From: gillesdeprez [mailto:gillesdeprez@xxxxxxxxx] 
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 was mentally 
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 below MACD 
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
> http://groups.msn.com/ASXShareTrading
> http://groups.msn.com/FMSAustralia
> 
> 
> -----Original Message-----
> From: gillesdeprez [mailto:gillesdeprez@x...]
> 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 Lexmark Printer
at Myinks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/ 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/