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

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



PureBytes Links

Trading Reference Links

Another approach might be to use one of the Param functions to select what is plotted. That way, you could double-click the formula twice to create 2 panes and then change the param on the second chart.
 
if ( MyParamChoice == 1)
    Plot( Cond 1....
else
    Plot( Cond 2...
 
Steve
----- Original Message -----
Sent: Wednesday, August 17, 2005 6:45 PM
Subject: Re: [amibroker] How do I show PLOT in another pane?

Yes but that is what I was trying to avoid.  That requires me to maintain two or more files for one strategy.  It's not a huge deal, but when you are trying out so many things like I am you want to find efficiencies in your work. 
 
But if that's the only way....
----- Original Message -----
From: Graham
Sent: Wednesday, August 17, 2005 2:58 PM
Subject: Re: [amibroker] How do I show PLOT in another pane?

you could have the code in one file and the plots in others and use #include

On 8/18/05, Brian Fenske <brfenske@xxxxxxxxxxx> wrote:
> 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
>
>
>
>
>
> 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
>
>
>
>
>
>
>


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


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