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

Re: [amibroker] need help with code



PureBytes Links

Trading Reference Links

Hi goldwing01!

> how can i make this work in amibroker?
> 
> if Mode = 1 then Plot1(MA1, "MA1");
> if Mode = -1 then Plot2(MA2, "MA2");

Here is another way

Plot(IIf(mode == 1, MA1, MA2), WriteIf(mode == 1, "MA1", "MA2"), color,
style); 

-- 
Franco

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 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/amibroker/

To unsubscribe from this group, send an email to:
 amibroker-unsubscribe@xxxxxxxxxxxxxxx

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/