Ton...as Hermon noted, he put up a template for me, I just changed it for a
long system to short.  Just change all the short/cover assignments to
buy/sell.
 
 
Dave
 

-----Original Message-----
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Ton Sieverding
Sent: Saturday, 28 April 2007 5:11 PM
To: amibroker@yahoogroups.com
Subject: Re: [amibroker] Re: Showing buy sell prices with arrows?





Herman did you try the 'Long' version also ? Is this just a part of a bigger
piece of AFL code or what ?
 
Regards, Ton.
 

----- Original Message ----- 
From: David Smith <mailto:[EMAIL PROTECTED]>  
To: [EMAIL PROTECTED] <mailto:amibroker@yahoogroups.com> ps.com 
Sent: Saturday, April 28, 2007 12:26 AM
Subject: RE: [amibroker] Re: Showing buy sell prices with arrows?




Herman...
 
Just want to say thanks for the code, it took me a few days to get back to
it & test it out.  I have not learnt to code arrays like that yet so this
helped a lot.
 
This is exactly what I was looking for.  I always wanted to be able to drag
& drop a system code & see the signals instantly on the chart.  This really
helps me audit the signals of my system during development.  I like to trend
the signal arrows & trade values as well so added some code for that.  I
have added the equity((1,0) call as well as that seems to filter out the
excess signal.  I hope that's right.
 
For interest for others the complete code I currently apply, including the
the plotting of signal arrows.  (the system isn't profitable yet, just an
example).
 
Cheers, David
 
 

-----Original Message-----
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Herman
Sent: Monday, 23 April 2007 4:22 AM
To: Angelo
Subject: Re: [amibroker] Re: Showing buy sell prices with arrows?




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 [EMAIL PROTECTED] <mailto:amibroker@yahoogroups.com> ps.com,
"David Smith" <[EMAIL PROTECTED]> 

> 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/> > http://www.amibroker.com/devlog/




> For other support material please check also:

 <http://www.amibroker.com/support.html> >
http://www.amibroker.com/support.html

>  

> Yahoo! Groups Links




>     http://groups. <http://groups.yahoo.com/group/amibroker/>
yahoo.com/group/amibroker/




>     Individual Email | Traditional




>     http://groups. <http://groups.yahoo.com/group/amibroker/join>
yahoo.com/group/amibroker/join

>     (Yahoo! ID required)




>     mailto:amibroker- <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] 

>     mailto:amibroker- <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]




>     amibroker-unsubscri <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]




>     http://docs. <http://docs.yahoo.com/info/terms/> yahoo.com/info/terms/

>  







 

Reply via email to