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

[amibroker] Re: writing scan code for a trading range



PureBytes Links

Trading Reference Links

Thanks Graham,

I appear not to be joined to this group yet so will have to wait til
tomorrow to have the read.

Regards,


Don

-----Original Message-----
From: Graham [mailto:gkavanagh@xxxxxxxxxxxxx]
Sent: Wednesday, 30 June 2004 11:02 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] RE: PosQty and which trades are selected in
backtester


Maybe the answer you seek lies in the civil exchanges that occurred when TJ
was beta testing the portfolio capabilities.
Have a look at this site
http://finance.groups.yahoo.com/group/amibroker-beta/


Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: Collectable Images [mailto:telecard@xxxxxxxxxxxxxx]
Sent: Wednesday, June 30, 2004 8:48 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] RE: PosQty and which trades are selected in
backtester

Well thanks for that BOB,

very helpful - Not.

Any suggestions  where to find TJ??? who is that? or which of the 355 pages
to locate the pertentant topic??

Or do you want to just show off your superior knowledge level.

??


Don

just maybe I am not like you. Perhaps I dont have a gift for remembering
where within 355 pages a particular thing was mentioned. Sorry if I asked
someone who did know to quickly point it out. I would help others like that
but maybe you dont ned that type of help so cant see why anyone else would.
That said, I do not believe I have seen in any of the help pages where it is
stated -the answer to my question that is.

-----Original Message-----
From: Bob Jagow [mailto:bjagow@xxxxxxxxxxxxx]
Sent: Wednesday, 30 June 2004 10:57 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] RE: PosQty and which trades are selected in
backtester


Don,
I know, but that's because I read TJ's posts and the Help Files 8<).

Bob

-----Original Message-----
From: Collectable Images [mailto:telecard@xxxxxxxxxxxxxx]
Sent: Tuesday, June 29, 2004 4:06 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] RE: PosQty and which trades are selected in
backtester


Graham,

I read this and will be trying my own  position score idea later today.

I was asking how the amibroker program actually worked out which trades it
took, I could not locate any definition or explanation of what ITS rules
were as I guess it is hard coded into the program.

Do you know what the program actually uses to work out which of multiple
entries to take when backtesting is done?

Don

-----Original Message-----
From: Graham [mailto:gkavanagh@xxxxxxxxxxxxx]
Sent: Tuesday, 29 June 2004 6:01 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] RE: PosQty and which trades are selected in
backtester


>From the help files

Tutorial: Portfolio-level backtesting
USING POSITION SCORE

You can use new PositionScore variable to decide which trades should be
entered if there are more entry signals on different securities than
maximum
allowable number of open positions or available funds. In such case
AmiBroker will use the absolute value of PositionScore variable to decide
which trades are preferred. See the code below. It implements simple MA
crossover system, but with additional flavour of preferring entering trades
on symbols that have low RSI value. If more buy signals occur than
available
cash/max. positions then the stock with lower RSI will be preferred. You
can
watch selection process if you backtest with "Detailed log" report mode
turned on.

The code below includes also the example how to find optimum number of
simultaneously open positions using new Optimization in Porfolio mode.

/*****
** REGULAR PORTFOLIO mode
** This sample optimization
** finds what is optimum number of positions open simultaneously
**
****/

SetOption("InitialEquity", 20000 );
SetTradeDelays(1,1,1,1);
RoundLotSize = 1;

posqty = Optimize("PosQty", 4, 1, 20, 1 );
SetOption("MaxOpenPositions", posqty);

// desired position size is 100% portfolio equity
// divided by PosQty positions

PositionSize = -100/posqty;

// The system is very simple...
// MA parameters could be optimized too...
p1 = 10;
p2 = 22;
// simple MA crossover
Short=Cross( MA(C,p1) , MA(C,p2) );
Buy=Cross( MA(C,p2) , MA(C,p1) );
// always in the market
Sell=Short;
Cover=Buy;

// now additional score
// that is used to rank equities
// when there are more ENTRY signals that available
// positions/cash
PositionScore = 100-RSI(); // prefer stocks that have low RSI;



Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: Collectable Images [mailto:telecard@xxxxxxxxxxxxxx]
Sent: Tuesday, June 29, 2004 3:43 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] RE: PosQty and which trades are selected in backtester

How does Amibroker determine which stocks are traded when PosQty is defined
and more trade signals are generated than available trade positions?

When I reduce the PosQty number results are generally better but how do I
know whcih are selected in real time?




Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links








Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links








Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links








Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links








Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links








Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/