I am trying to test Rotation Strategy base on a ratio of two stocks but never succeed. Could you tell me what parts are not correct?? I put three sets symbols in it for example. There will be more sets in it actually.
CODE:
Please log in to see this code.
Size:
Color:
How about this?
CODE:
Please log in to see this code.
Size:
Color:
Eugene,thanks a lot. There shows a error message when i run it. I show it with a picture. Could you take a look?
Size:
Color:
Please either run not on All Data (select "Most recent" or "Fixed bars") or change this line:
CODE:
Please log in to see this code.
Size:
Color:
Thank you, It works well!
Size:
Color:
Hi Eugene
I found that "Min.holding time" doesn't have function here. Could you take a took?
Size:
Color:
Size:
Color:
I am looking for a way to use fundamental data as basic input for a rotation script. F.ex. I have 10 currencies and I have ten interest rate differential series. I want now to rank each week/month the interest rate differentials and buy the three currenices with the three highest differentials.
The Dogs of the Dow strategy does use fundamental information to rank the 30 Dow stocks. But the script use FundamentalDataItems, which are not available in my case.
Can I use GetExternalSeries in a rotation script?
Size:
Color:
QUOTE:
Can I use GetExternalSeries in a rotation script?
Why not? The rotation Strategy in post #2 does exactly that i.e. uses GetExternalSymbol (or GetExternalSeries if you like).
Size:
Color:
Thank you for the hint!
I just take a part of the code:
CODE:
Please log in to see this code.
How can get a printout (f.ex. PrintDebug) of lstPreminum1? I would like to have more information about the content of the list.
Where can I find more information about "List"?
Size:
Color:
QUOTE:
Where can I find more information about "List"?
This is such a basic primitive of .NET that you can find this and other collections covered in (absolutely) any C# 101 resource:
How do I start with C# ? Although it's slightly off topic, the "lstPreminum1" is a
Dictionary rather than a
List.
QUOTE:
How can get a printout (f.ex. PrintDebug) of lstPreminum1?
As simple as this:
CODE:
Please log in to see this code.
Each "item" here is a
KeyValuePair<string, DataSeries>. That's why the .Value part of it has Description property - because it's a DataSeries. Any type can be assigned here - it's just an example.
Size:
Color: