R-Portfolio - a diversification method - page 5

 
Yes, MCD. ok, Yuri, it turns out that in your case the unfortunate macdac must have pulled the entire portfolio? i.e. any portfolio put together by your algorithm must contain a macdac with a large weighting factor in order to have a growing return?
 
(when portfolios are compiled that include a crisis period)
 
neoclassic >>:
Да, MCD. Ок, Юрий, выходит, что в вашем случае несчастный макдак должен был вытянуть весь портфель? то есть любой портфель, составляемый вашим алгоритмом должен содержать макдак с большим весовым коэффициентом, что бы иметь растующую доходность?

It's much simpler than that. I have two portfolios generated in my program at once: one for long positions and one for short positions.

 
Reshetov писал(а) >>

No, it is McDonalds by the MCD symbol. Of all the securities, DJI is the only one that not only did not crumble in 2008, but also posted a profit for the year.


That didn't occur to me. We are discussing portfolios and choosing from hundreds or thousands of assets. I don't get you. You're a trader, but you act like a sucker manager. I don't get it.
 
Ah... good idea. I'll have to do some digging at my leisure.
 
lexandros >>:
ЗЫ: как известно на большинстве наиболее популярных ДЦ (которые работают через МТ) - листинг ценных бумаг крайне скуп. и мне представляется сомнительным, что из такого малого количества активов удастся создать оптимальный портфель.
Поэтому было бы крайне интересно - как можно (и вообще возможно ли) применить данный метод к валютам, ну или к CFD.

I had to change the method. The modified method turned out to be better in all tests. The point of modification is the following: it's not profit from the instrument, but profitability per invested unit of money. In this case it shows how to distribute money to instruments as shares, not how many lots to buy.

Tried to the currencies. If we take pure currencies, nothing good came out - they are very strongly positively correlated. I would not be able to build a portfolio of such instruments, because everything will either fall or rise. On the other hand, it worked together with gold.

At the moment the shares are as follows:

67% of money to invest in NZDUSD

33% in gold

I opened a demo account for $250,000 to test it in practice:


Trading server: UWC-Demo.com
Account number (login): 252744
Investor password: mx7wduc


Here are the results for couple of days (I was testing and debugging the Expert Advisor yesterday, that's why profits of opened positions were not so high this morning, about $10 000). The main profit has been made today after the Expert Advisor had no problems:


Open Trades:
TicketOpen TimeTypeSizeItem PriceS / LT / P PriceCommissionTaxesSwapProfit
71169442010.05.11 11:15buy27.72nzdusd0.72080.00000.00000.71910.000.00-110.88-4 712.40
71186552010.05.11 13:13buy0.01nzdusd0.71940.00000.00000.71910.000.00-0.04-0.30
71186752010.05.11 13:16buy0.01nzdusd0.71950.00000.00000.71910.000.00-0.04-0.40
71193032010.05.11 13:48buy0.01nzdusd0.71810.00000.00000.71910.000.00-0.041.00
71193672010.05.11 13:51buy0.01nzdusd0.71830.00000.00000.71910.000.00-0.040.80
71194662010.05.11 13:56buy0.01nzdusd0.71800.00000.00000.71910.000.00-0.041.10
71204312010.05.11 14:34buy0.01nzdusd0.71760.00000.00000.71910.000.00-0.041.50
71206962010.05.11 14:47buy0.01nzdusd0.71790.00000.00000.71910.000.00-0.041.20
71251732010.05.11 18:50buy0.01nzdusd0.72070.00000.00000.71910.000.00-0.04-1.60
71267512010.05.11 20:06buy0.05nzdusd0.72060.00000.00000.71910.000.00-0.20-7.50
71282022010.05.11 21:40buy0.03nzdusd0.71880.00000.00000.71910.000.00-0.120.90
71358072010.05.12 08:26buy0.12nzdusd0.71240.00000.00000.71910.000.000.0080.40
71360122010.05.12 11:02buy56.73nzdusd0.71640.00000.00000.71910.000.000.0015 317.10
71360602010.05.12 11:05buy0.02nzdusd0.71660.00000.00000.71910.000.000.005.00
71369752010.05.12 12:06buy0.03nzdusd0.71750.00000.00000.71910.000.000.004.80
71388602010.05.12 14:41buy0.01nzdusd0.71930.00000.00000.71910.000.000.00-0.20
71346222010.05.11 11:13buy16.22xauusd1209.310.000.001240.370.000.00-48.3350 379.32
71357982010.05.12 10:38buy0.03xauusd1233.280.000.001240.370.000.000.0021.27
71358302010.05.12 10:41buy0.01xauusd1232.750.000.001240.370.000.000.007.62
71360232010.05.12 11:03buy15.79xauusd1232.410.000.001240.370.000.000.0012 568.84
0.00 0.00 -159.85 73 668.45
Floating P/L: 73 508.60
Working Orders:
TicketOpen TimeTypeSizeItem PriceS / LT / PMarket Price
No transactions
Summary:
Deposit/Withdrawal: 0.00 Credit Facility: 0.00
Closed Trade P/L: 5 345.17 Floating P/L: 73 508.60 Margin: 139 113.75
Balance: 255 805.90 Equity: 329 314.50 Free Margin: 190 200.75


If anybody would like to try it, I attach an EA.

It should be run on gold and NZDUSD charts

The input parameter for:

Gold p value = 0.33

NZDUSD p = 0.67

Files:
 

goldtrader:

A practical example would be very useful. I can provide datafeeds on all NYSE stocks real-time.

Is the offer still valid?
 
Yes. But on a win-win basis as datafeed is commercial.
 

The site listed on the first page of this thread is no longer working and there is no desire to pay for domain renewal.

Here is a new version of R-Portfolio, now as a handy uninstaller for Windows.

What's changed:

  1. As input data - quotes in a spreadsheet in CSV format. You may edit in Excel, or (if you know how to program) - programmatically. The output is a portfolio.
  2. Instead of table of returns in pips, yields are used as a payment matrix. This allows obtaining the portfolio as a percentage of the investment instead of the number of lots for each instrument.
  3. The portfolio consists of long and short positions, which diversify each other.
  4. Distribution license: Creative Commons (cc by-nd). I.e. if inspectors get hold of the software for pirated software, the software is licensed (as indicated in the "About" menu), which means that there should be no legal problems. And at the same time, the license allows the software to be freely distributed and used for commercial purposes.
The uninstaller can be found in the attached archive. If there are no viruses: I have checked, there should be no viruses (if you check again, it won't be any worse).
Files:
r-portfolio.zip  76 kb
 

New version 1.01 of R-Portfolio

  1. Fixed an error in setting of boundaries of the portfolio yield table
  2. Added output of results to html file
Files: