I want to be able to add a 'condition' in my code which will reference other stocks in my 'portfolio' and then based on that, generate the final buy or sell signal. In other words, say, I have Ten stocks in my portfolio, and I am 'Long' in all those stocks. If a single stock starts to generate an 'Exit' signal based on my current strategy, I want the code to be able to see that since 90% of my stocks are in a 'Long' position...an 'Exit' signal must NOT be generated on this single stock....even though the individual stock strategy is signalling an 'Exit' signal.
Announcement
Collapse
No announcement yet.
Cross referencing portfolio or other stocks
Collapse