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

[amibroker] Re: PositionSize in Portfolio Backtest



PureBytes Links

Trading Reference Links




Hi All,
 
To explain further, I need to code PositionSize using the 
following technique (from Help).
 

Buy = <your buy formula here>Sell = 0; // 
selling only by stop
TrailStopAmount = 2 * ATR( 20 );Capital = 100000; /* IMPORTANT: Set 
it also in the Settings: Initial Equity */
Risk = 0.01*Capital;PositionSize = 
(Risk/TrailStopAmount)*BuyPrice;ApplyStop( 2, 2, 
TrailStopAmount, 1 );
To do so in Portfolio Backtest, I need to have 
access to the Portfolio Equity amount.
How may I gain that access?
Regards,
Tony
 
 
 
 






Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.