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

[amibroker] How do I show PLOT in another pane?



PureBytes Links

Trading Reference Links

I have a formula that can be used for trading as well as backtesting 
and as an indicator, like so:

cond1 = <some calc>;
cond2 = <some other calc>;

if ( AASettings == 1 ) {
	// [Indicator]
//	PlotOHLC(O, H, L, C, "OHLC", colorBlack, styleCandle);
        Plot(cond1, "cond1", colorRed);
        Plot(cond2, "cond2", colorBlue);
	

} else if (AASettings == 3) {
	AlertIf( Buy, "SOUND C:\\PROGRAM 
FILES\\AMIBROKER\\BUY.WAV", "Buy", 3 );

} else if (AASettings == 4) {

} else if (AASettings == 5) {
	// [Backtest] //
        Buy = cond1;
        Sell = cond2;

I can drag this system onto a price chart, and the plots show up.

My question is:

How do I get cond2 to plot in another pane, as opposed to over the 
price chart?  I would rather keep all of my code in one file for 
easy maintenance instead of breaking out the calcs and plots into 
separate custom indicators.   

Any ideas?

Brian




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hrn13gi/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124316900/A=2894350/R=0/SIG=10tj5mr8v/*http://www.globalgiving.com";>Make a difference. Find and fund world-changing projects at GlobalGiving</a>.</font>
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/