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

Re: [amibroker] Use AFL to create two charts



PureBytes Links

Trading Reference Links

I have not tried this, but it should work.

Add to Composites now works in indicator mode, so you can place your array 
(Long Setup etc) in an ATC and access it from any other pane to display 
there.

AddToComposite(LongSetup,"~Long Setup","C",7);

Access it by using Foreign function

Ara
----- Original Message ----- 
From: "dralexchambers" <dralexchambers@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, February 01, 2007 7:33 AM
Subject: [amibroker] Use AFL to create two charts


> Is it possible in the backtester to code in AFL the following:
>
> - Open up two charts (basic price)
>
> - On the top chart, show all long positions. I use this code for my
> long positions:
>
> BUY = {conditions here}
> BuyPrice = xxxxx
> LongStop = Ref(L, -1);
> Sell =  L < LongStop;
> Buy = ExRem( Buy, Sell );
> Sell = ExRem( Sell, Buy );
> SellPrice = Min(Open,LongStop);
>
> Plot(LongStop,"LongStop",colorBlue,styleDots);
>
> PlotShapes(LongSetup*shapeUpArrow,colorBlack,0,L,-12);
> PlotShapes(Buy*shapeUpArrow,colorGreen,0,L,-12);
> PlotShapes(Sell*shapeDownArrow,colorRed,0,H,-12);
>
>
> I would then like to plot similar for short trades on the bottom
> chart.
>
> I already have the code for the BUY/SELL AFL. I am looking for code
> to open two charts and write to each one independently.
>
> Thanks - alex
>
>
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.18/662 - Release Date: 1/31/2007 3:16 PM