Hi, Iam relative new to programming. I want to code the following strategy, but don’t know how. Hope you can help me out.
I have a Portfolio of 200 Stocks. Each Stock has a limit each day at which I buy. Now I want to check every morning how close the open to the limit price is. Then I want to count the number of stocks, which are less than 3% away from the limit. If there are many stocks(for example >50) less than 3% away from the limit I want to put each limit further away from the origin.
Is it possible to program this? How?
Size:
Color:
Here's something to start with:
CODE:
Please log in to see this code.
Size:
Color:
Using Index-Lab is another way, but we'd have to beg Eugene to create the Index Definition anyway :)
Size:
Color: