Instead of "#exs1.de" and "#exx6.de" I would like to buy out of TWO baskets of 5 each the best ranked 2 in roc(25)
Instead of "#exs1.de" a basket A of lets say "#exs1.de", "#exs2.de", "#exs3.de", "#exs4.de", "#exs5.de".
Instead of "#exx6.de" a basket B of lets say "#exx6.de", "#exx7.de", "#exx8.de", "#exx9.de", "#exx10.de".
So how to define at
- buy: pick out best 2 of Basket A if mk1 < 9 and mk3 > 8.32
- sell Basket A and buy best 2 out of Basket B if mk1 < 9 and mk3 > 8.32
filter1 = mk1 < 9 and mk3 > 8.32;
rank1 = comp(roc(25), "rank", 1, filter1, "Basket A"); // Where Basket A is a list of symbols you can create in "Symbol-> Symbols View"
rank2 = comp(roc(25), "rank", 1, !filter1, "Basket B");
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.