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

[amibroker] What am I doing wrong here?



PureBytes Links

Trading Reference Links

I'm trying to add the moving average condition,
MA(C,5)<MA(MA(C,5),7), to the following formula.

Plot(2.5,"ribbon", IIf( MACD()<Signal(), colorRed, colorGreen
),styleOwnScale|styleArea|styleNoLabel, -0.5, 100 );

My efforts, one of which follows are so far to no avail.
Plot(2.5,"ribbon", IIf( MACD()<Signal() OR MA(C,5)<MA(MA(C,5),7),
colorRed, colorGreen), styleOwnScale|styleArea|styleNoLabel, -0.5, 100 );

What am I doing wrong here?
I'd appreciate any help
Regds Gerard

-- 
http://www.fastmail.fm - mmm... Fastmail...

------------------------ 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/mOAaAA/3exGAA/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/