Perhaps you can modify this to meet your needs, just append it to the
end of your system's code. Sell and Buy prices must be defined.
herman
Plot(C,"Close",colorBlack,styleBar);
PlotShapes( IIf(Buy, shapeSmallCircle, shapeNone),colorGreen, 0, BuyPrice, 0 );
PlotShapes( IIf( Sell, shapeSmallCircle, shapeNone),colorRed, 0 ,SellPrice, 0 );
FirstVisibleBar = Status( "FirstVisibleBar" );
Lastvisiblebar = Status("LastVisibleBar");
for( b = Firstvisiblebar; b <=
Lastvisiblebar AND b < BarCount; b++)
{
if( Buy[b] )
PlotText("\n Buy\n "+NumToStr(BuyPrice[b],1.2),b,BuyPrice[b],colorBrightGreen);
else if( Sell[b] )
PlotText("\n Sell\n "+NumToStr(SellPrice[b],1.2),b,SellPrice[b],colorRed);
}
Sunday, April 22, 2007, 12:20:51 PM, you wrote:
> --- In amibroker@xxxxxxxxxps.com, "David Smith"
<david.smith5@...>
> wrote:
>> I have just tried the function
Plot(BuyPrice, "Buy", colorGreen,
> styleLine),
>> & called exrem before this to filter
extra buy/sell signals, but
> just seem
>> to get a line from every entry signal.
What I was trying to do was
> show for
>> actual trades, the buy sell price with the
arrow for an actual
> trade taken.
>> Is this actually possible in
AB?
>>
> In AB is possible to see on a chart the arrows
for the actual trades
> taken.
> From the AA windows, after a backtest, just go
with the mouse in the
> trade by trade report, rightclick and then
choose the option "Show
> arrows for actual trades".
> As far as I know there's no way to get a "tag"
inside the bar,
> showing the price level at what the trade was
triggered.
>
> 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
> <*> To visit your group on the web, go
to:
> http://groups.yahoo.com/group/amibroker/
> <*> Your email settings:
> Individual Email |
Traditional
> <*> To change settings online go
to:
> http://groups.yahoo.com/group/amibroker/join
> (Yahoo! ID required)
> <*> To change settings via
email:
> mailto:amibroker-digest@xxxxxxxxxps.com
> mailto:amibroker-fullfeatured@yahoogroups.com
> <*> To unsubscribe from this group, send
an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxcom
> <*> Your use of Yahoo! Groups is subject
to:
> http://docs.yahoo.com/info/terms/
>