Hi - can someone please take a look at this and let me know why its not trading anything? Seriously spent over 4 hrs trying a whole bunch of different things before resorting to asking Q Crowd to assist this newbie. Took code from a few different places and somehow lost track along the way (wish some version control functionalities can be introduced at some point ... or I should just be a bit more careful)...
Summary of what I am trying:
- take predefined universe
- get 2 /30 EMA
- get delta between EMA's
- sort to get the top 5 delta's
- calculate a weight for the top 5
- purchase those 5 positions based on the calculated weight
Currently just want to try it long only, but tried to build framework around in case wanted to start testing shorts also ... any assistance would be much appreciated