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

Re: [amibroker] Re: How to Enlarge BUY and SELL arrows on Chart



PureBytes Links

Trading Reference Links

hi Wally,
 
like Mike explained the shapes are built in. You can find all of them in the manual:
 
 
 
 
 
 
----- Original Message -----
Sent: Wednesday, November 05, 2008 10:07 PM
Subject: [amibroker] Re: How to Enlarge BUY and SELL arrows on Chart

Hello Edward, Yes I ran the code and it looks good. I see the extra
triangles you placed below the BUY arrows and on top of the SELL
arrows. Also I noticed the hollow white circles you placed on the
trades as well. Very interesting coding.

I am learning just how powerful amibroker can be. My assumption is
that if you can dream it, you can code it.

I noticed that the actual size of the original trade arrows remained
the same. I guess to enlarge the actual arrows involves quite a bit of
work.

How did you know to call the circles "hollow white circle"? Where can
I get the references to shapes (arrows, circles, triangles, etc)?

Thank you for the code. I will save it.

--- In amibroker@xxxxxxxxxps.com, "Edward Pottasch" <empottasch@...>
wrote:
>
> hi wally,
>
> maybe this example helps (below). You can put this in an afl file
and call it in a chart:
>
>
> SetBarsRequired(10000,10000);
>
> Buy = Cross(MA(C,15),MA(C,50));
> Short = Cross(MA(C,50),MA(C,15));
>
> Buy = ExRem(Buy,Short); Buy = Ref(Buy,-1);
> Short = ExRem(Short,Buy); Short = Ref(Short,-1);
> Sell = Short;
> Cover = Buy;
>
> BuyPrice = O;
> ShortPrice = O;
> SellPrice = O;
> CoverPrice = O;
>
> GraphXSpace = 5;
> SetChartOptions(0, chartShowDates);
> Plot(C,"Last=",colorBlue,64);
>
> PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen,0,L,-15);
> PlotShapes(IIf(Buy,shapeHollowUpArrow,shapeNone),colorWhite,0,L,-15);
>
PlotShapes(IIf(Buy,shapeHollowSmallCircle,shapeNone),colorWhite,0,BuyPrice,0);
>
> PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,-15);
> PlotShapes(IIf(Sell,shapeHollowDownArrow,shapeNone),colorWhite,0,H,-15);
>
PlotShapes(IIf(Sell,shapeHollowSmallCircle,shapeNone),colorWhite,0,SellPrice,0);
>
>
PlotShapes(IIf(Short,shapeDownTriangle,shapeNone),colorYellow,0,H,IIf(Short
AND Sell,-30,-15));
>
PlotShapes(IIf(Short,shapeHollowDownTriangle,shapeNone),colorWhite,0,H,IIf(Short
AND Sell,-30,-15));
>
PlotShapes(IIf(Short,shapeHollowCircle,shapeNone),colorWhite,0,ShortPrice,0);
>
>
PlotShapes(IIf(Cover,shapeUpTriangle,shapeNone),colorLightBlue,0,L,IIf(Cover
AND Buy,-30,-15));
>
PlotShapes(IIf(Cover,shapeHollowUpTriangle,shapeNone),colorWhite,0,L,IIf(Cover
AND Buy,-30,-15));
>
PlotShapes(IIf(Cover,shapeHollowCircle,shapeNone),colorWhite,0,CoverPrice,0);
>
>
>
>
> ----- Original Message -----
> From: electricwally77
> To: amibroker@xxxxxxxxxps.com
> Sent: Wednesday, November 05, 2008 9:22 PM
> Subject: [amibroker] Re: How to Enlarge BUY and SELL arrows on Chart
>
>
> Hello Edward. Thank you for helping. Please bear with me I am not a
> programmer but learning. I simply took two of the lines of code you
> sent me which are :
>
> PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen,0,L,-15);
> PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,-15);
>
> I placed these in my Formula Editor File along with the code to my
> system and received an error message which said:
>
> Variable 'buy' used without having been initialized.
> Variable 'sell' used without having been initialized.
>
> Just curious what I need to accomplish to enlarge the buy and sell
> arrows. Thank you.
>
> --- In amibroker@xxxxxxxxxps.com, "Edward Pottasch" <empottasch@>
> wrote:
> >
> > electricwally,
> >
> > you can choose different symbols. However, I like to put a little
> circle on the exact price that I buy/sell and an arrow further
> below/above.
> >
> > for example:
> >
> > PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen,0,L,-15);
> >
PlotShapes(IIf(Buy,shapeHollowUpArrow,shapeNone),colorWhite,0,L,-15);
> >
>
PlotShapes(IIf(Buy,shapeHollowSmallCircle,shapeNone),colorWhite,0,BuyPrice,0);
> >
> > PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,-15);
> >
PlotShapes(IIf(Sell,shapeHollowDownArrow,shapeNone),colorWhite,0,H,-15);
> >
>
PlotShapes(IIf(Sell,shapeHollowSmallCircle,shapeNone),colorWhite,0,SellPrice,0);
> >
> >
>
PlotShapes(IIf(Short,shapeDownTriangle,shapeNone),colorYellow,0,H,IIf(Short
> AND Sell,-30,-15));
> >
>
PlotShapes(IIf(Short,shapeHollowDownTriangle,shapeNone),colorWhite,0,H,IIf(Short
> AND Sell,-30,-15));
> >
>
PlotShapes(IIf(Short,shapeHollowCircle,shapeNone),colorWhite,0,ShortPrice,0);
> >
> >
>
PlotShapes(IIf(Cover,shapeUpTriangle,shapeNone),colorLightBlue,0,L,IIf(Cover
> AND Buy,-30,-15));
> >
>
PlotShapes(IIf(Cover,shapeHollowUpTriangle,shapeNone),colorWhite,0,L,IIf(Cover
> AND Buy,-30,-15));
> >
>
PlotShapes(IIf(Cover,shapeHollowCircle,shapeNone),colorWhite,0,CoverPrice,0);
> >
> >
> >
> > ----- Original Message -----
> > From: electricwally77
> > To: amibroker@xxxxxxxxxps.com
> > Sent: Wednesday, November 05, 2008 8:17 PM
> > Subject: [amibroker] How to Enlarge BUY and SELL arrows on Chart
> >
> >
> > Hello Members, I am trying to enlarge the buy and sell arrows on my
> > chart so they are easier to see. I understand that the larger the
> > arrows are (if possible), the harder it is to read the buy and sell
> > plots if there are many trades over a specific period.
> >
> > I would like to know if making the arrows larger is possible and
how.
> > Thank you.
> >
>

__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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

*********************************




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

__,_._,___