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

Re: [amibroker] Re: question



PureBytes Links

Trading Reference Links

The way I did it with IBD 100 and TC2000 tickers and maybe a start for you would be to go to
 
Symbol, Watchlist, Import, Select Watchlist to receive tickers,
 
then point to the 'from' file where the IBD 100 tickers are stored as CSV text. 
This way you'll get that week's IBD 100 stored in a WL.
JOE  
----- Original Message -----
From: vlanschot
Sent: Wednesday, October 05, 2005 8:00 AM
Subject: [amibroker] Re: question

See below.

--- In amibroker@xxxxxxxxxxxxxxx, "Imran Pishori" <ipishori1@x...>
wrote:
> Right now I can use all the help I can get and getting a feel of
how the
> system works!  Thanks to both of you.  It amazes me how helpful the
> community here is.

As a thank you to TJ. Because we like AB, and everybody tries to do
his/her part in sharing knowledge/ideas, but mainly to relieve him
from support, so he can focus on the next upgrade. 
>

>
> I guess I will throw some newbie questions here. 
>

>
> 1)       My plan was to download the multiple IBD 100 from
different months
> and use that as a starting point for my scans.  Is there a way to
download
> the symbols so they get stores a specific folder like watchlist? 
Right now
> I have to go through each symbol after they have been downloaded,
right
> click on the symbol and than assign it a group etc.

Create a CSV-table with headings in row 1, tickers in col1 and
required nrs of group, market, etc in following cols. Looks like this:

Ticker, IndustryNr, MarketNr
MSFT, 1, 1
INTL, 2, 2
etc.

Then create and save a "import-format"file in Amibroker\Formats like
below (see also existing files, and read the manual):

$FORMAT Ticker, GroupID(), MarketID()
$SKIPLINES 1
$SEPARATOR ,
$OVERWRITE 1
$AUTOADD 1
$NOQUOTES 1

Run this file via AB ASCII import. Done.

PS
>
> 2)       I cannot run 'report' in the scan.  It points me to
> 'Setting->Report' in the scan.  After I reach that dialog box I
have no idea
> what to do. 

Report is only applicable for backtest (i.e. after you've run a BT).
>

>
> Thanks,
>

>

>
>   _____ 
>
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
On Behalf
> Of dieterdotbraun
> Sent: Tuesday, October 04, 2005 1:17 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: question
>

>
> Hi Imram,
> sorry.I did not take care your trading rules,only the princip.
> I hope it was nevertheless helpfull a little bit.
> by,dieter
>
> --- In amibroker@xxxxxxxxxxxxxxx, "keithmccombs" <kmccombs@xxxx>
wrote:
> > Imran --
> > You may not get the results you are expecting with Dieter's
code. 
> > You asked to sell "when x crossed 'y and z' to the negative
> > (downside)".  Dieter gave you cross(y,x) which doesn't address
> > the 'z' in your request.
> >
> > You might try:
> > Sell = cross(y,x) AND cross(z,x);
> > But you will most probably find that this is not what you
intended
> > either, because a 'cross' only happens on a single bar and it is
> > highly unlikely that cross(y,x) and cross(z,x) will occur on the
same
> > bar.  Instead, you might use (depending on your intent):
> > Sell = x<y AND x<z;
> >     or
> > Sell = x<y OR x<z;
> >
> > Then use the ExRem() function to get rid of the exta down arrows
on
> > your price chart.
> >
> > You may also discover that rather than using:
> > Buy = cross(x,y);
> > you may really want:
> > Buy = x>y AND x>z;
> > -- Keith
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Imran Pishori"
<ipishori1@xxxx>
> > wrote:
> > > Thanks!
> > >
> > > 
> > >
> > >   _____ 
> > >
> > > From: amibroker@xxxxxxxxxxxxxxx
[mailto:amibroker@xxxxxxxxxxxxxxx]
> > On Behalf
> > > Of dieterdotbraun
> > > Sent: Monday, October 03, 2005 4:09 PM
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Subject: [amibroker] Re: question
> > >
> > > 
> > >
> > > Hi Imran,
> > >
> > > copy and paste the Code from the first /* to the Last */ in the
> > editor
> > > and choose Apply Indicator.
> > > finish.
> > >
> > >
> > > Code Start------------------------------------------------------
----
> > -
> > > /*______________________________ Plot Title______________ */
> > > _SECTION_BEGIN("Price");
> > > SetChartOptions(0,chartShowArrows);
> > > Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi
%g,
> > Lo
> > > %g, Close %g (%.1f%%)
> > > {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) )
> > > )+encodecolor(colorred)+
> > > "\n\n\n\Welcome to amibroker";
> > >
> > >
> > > /*______________________________ Plot Chart______________ */
> > >
> > > Plot( C, "Close", ParamColor("Color", colorBlack ),
styleNoTitle |
> > > ParamStyle("Style", styleCandle, maskPrice ) );
> > > _SECTION_END();
> > > /*_______________________________Variabelen________________*/
> > > x = EMA(C,5);     
> > > y = EMA(C,30)      ;
> > > z = EMA(C,34)      ;
> > > /*______________________________Plot lines on Chart________*/
> > >
> > > Plot(x, "EMA(34)", colorBlue, styleLine);
> > > Plot(y, "EMA(34)", colorGreen, styleLine);
> > > Plot(z, "EMA(34)", colorRed, styleLine);
> > > /*______________________________Trading Rules_/Conditions___*/
> > > Buy=Cross(x,y);
> > > Sell=Cross(y,x);
> > > /*______________________________Plot Arrows on Chart_______*/
> > > PlotShapes(shapeUpArrow * Buy, colorGreen,0,L,-20);
> > > PlotShapes(shapeDownArrow * Sell, colorRed, 0,H,-20);
> > >
> > > /*_____________________________Have FUN___________________*/
> > >
> > > Code Ende-------------------------------------------------------
----
> > >
> > > by,Dieter
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, "Imran Pishori"
<ipishori1@xxxx>
> > wrote:
> > > > Hello,
> > > >
> > > > 
> > > >
> > > > I just got Amitrader and was using the program and I realized
I
> > have
> > > a LOT
> > > > to learn but am enjoying the learning process thus far.
> > > >
> > > > 
> > > >
> > > > I had a question since my coding skills are very limited.
> > > >
> > > > 
> > > >
> > > > Let say I had 3 plots for example.
> > > >
> > > > 
> > > >
> > > > x = plot ema (close (5));
> > > >
> > > > y = plot ema (close (30));
> > > >
> > > > z = plot ema (close (34));
> > > >
> > > > 
> > > >
> > > > now I wanted to buy when 'x' crosses 'y and z' to the
positive
> > (upside):
> > > >
> > > > 
> > > >
> > > > eg:
> > > >
> > > >  Buy = cross (x, ????) // this is the part I don't know what
to
> > do with
> > > >
> > > > 
> > > >
> > > > And I would like to sell when x crossed 'y and z' to the
negative
> > > > (downside):
> > > >
> > > > 
> > > >
> > > > Eg:
> > > >
> > > > Sell = cross (x, ???) // I have no idea what I am doing
> > > >
> > > > 
> > > >
> > > > Could anyone please point me in the right direction on how I
would
> > > > accomplish this.  The help menu points toward the plots
crossing
> > > just one
> > > > point and that is the close price of a particular stock.
> > > >
> > > > 
> > > >
> > > > Also, are there any books on coding etc. that one would
recommend
> > I
> > > read to
> > > > get a better idea on how to code using Amitrader. 
> > > >
> > > > 
> > > >
> > > > THANKS!
> > > >
> > > > 
> > > >
> > > > Imran
> > >
> > >
> > >
> > >
> > > 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 other support material please check also:
> > > http://www.amibroker.com/support.html
> > >
> > >
> > >
> > >
> > >
> > >
> > >   _____ 
> > >
> > > YAHOO! GROUPS LINKS
> > >
> > > 
> > >
> > > *      Visit your group "amibroker
> > > <http://groups.yahoo.com/group/amibroker> " on the web.
> > >  
> > > *      To unsubscribe from this group, send an email to:
> > >  amibroker-unsubscribe@xxxxxxxxxxxxxxx
> > > <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?
subject=Unsubscribe>
> > >  
> > > *      Your use of Yahoo! Groups is subject to the Yahoo!
> > > <http://docs.yahoo.com/info/terms/>  Terms of Service.
> > >
> > > 
> > >
> > >   _____
>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
>
>
>
>
>   _____ 
>
> YAHOO! GROUPS LINKS
>

>
> *      Visit your group "amibroker
> <http://groups.yahoo.com/group/amibroker> " on the web.
>  
> *      To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>  
> *      Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>  Terms of Service.
>

>
>   _____




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 other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS