Dont trade on days when there is news on a stock
Author: rmandel00
Creation Date: 9/10/2010 10:24 AM
profile picture

rmandel00

#1
What is the command and syntax for the above.
Thanks,
Rich
profile picture

Eugene

#2
You must be kidding, right? :)
CODE:
Please log in to see this code.
profile picture

joannakim

#3
Eugene, Rich meant that we did not want to trade a stock if there was news on the same stock that day ( the trade day.) Is your code right for that command? thanks.

Joanna
profile picture

Eugene

#4
Joanna, you must be joking too?

On a serious note, you guys probably underestimate the complexity behind that "command". There has never been such a command, because Fidelity Wealth-Lab Pro doesn't keep a historical news database, or even a facility to provide "news" to a Strategy.

There's no turn key solution, so if someone wants the "command", first he has to find a source of news. The task is made simple if he doesn't need to backtest the concept i.e. just news for the day. Next he has to prepare for the usual development: figure out whether the news feed provides an API or not, determine how to query or parse (depends), how to handle the output, which 3rd party helper library to utilize etc. That's it.

...My mockup code doesn't do anything, of course.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).