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

Re: Re[2]: [amibroker] Re: Showing buy sell prices with arrows?



PureBytes Links

Trading Reference Links

Yes, Herman thanks I got the message already from David ...
 
Ton.
 
----- Original Message -----
From: Herman
Sent: Saturday, April 28, 2007 9:35 PM
Subject: Re[2]: [amibroker] Re: Showing buy sell prices with arrows?

It is a template that I use often in RT to display variables liken Time, PositionSize, Shares, fill-prices, status, etc. 


You can add Short/Cover signals by copying lines that include Buy/Sell and changing Buy->Cover and Sell->Short. Note that by inserting "\n" and posititiong it at the Low you can create a column and display many variables.


herman


Saturday, April 28, 2007, 3:11:19 AM, you wrote:


>

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 

To: amibroker@xxxxxxxxxps.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@xxxxxxxxxps.com [mailto:amibroker@yahoogroups.com] 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 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/

>  

 

__._,_.___

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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___