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

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



PureBytes Links

Trading Reference Links

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/