- ago
I have not been on this site for a while since Fidelity dropped support, I see it can connect to multiple brokers now which is great, but before I buy it, need to know can I call a particular strategy using another app, reason being I have a stock scanner to pick up stocks to trade, when a stock show up in my scan, I need immediately to start auto trade that particular stock.
0
512
12 Replies

Reply

Bookmark

Sort
- ago
#1
There are several options:
1. The most elegant one:
Implement your stock scanner within WL7 as part of your coded strategy.

2 Quicker Implementation
Create a "execution strategy" which runs on the same Universe of symbols as your external stock scanner.
This strategy observes a "signal file". Whenever a symbol is marked as "active" in the signal file, your execution strategy will trade that symbol.

With this setup your stock scanner just needs to create and update the "signal file" with the results of a scan.

A more fancy strategy could open a chart window with the latest traded symbol. To enable such a functionality please vote for this feature request:
https://www.wealth-lab.com/Discussion/Open-Chart-from-code-6126
0
- ago
#2
This is not supported directly now. Frankly, opening up to calling strategies by external apps always raises a concern with me that it may be a potential threat to the software protection. Even so that would be an extra element that may fail. If you need to start auto trade "immediately", I would rather implement that something in Wealth-Lab rather than outsource it to another app.

So the next logical step is to implement your stock scanner in Wealth-Lab 7, letting it create the dynamic DataSet with your stocks to trade programmatically. WL7 already has some dynamic DataSets (for IPOs or stocks with high short interest or premarket activity etc.) but integrating them with a stock scanner (configurable via Tools menu) would be such a sweet feature enhancement! A feature request has been created lately, please vote for it if it makes sense to you:

Dynamic DataSet for stock screening with parameters
https://www.wealth-lab.com/Discussion/Dynamic-DataSet-for-stock-screening-with-parameters-6464

I imagine you could start Wealth-Lab on a schedule, starting that strategy automatically and letting it work on that dynamic DataSet. Vote for another feature request if so:

Support Scheduled Tasks for Auto Update
https://www.wealth-lab.com/Discussion/Support-Scheduled-Tasks-for-Auto-Update-5955
0
- ago
#3
"2 Quicker Implementation
Create a "execution strategy" which runs on the same Universe of symbols as your external stock scanner.
This strategy observes a "signal file". Whenever a symbol is marked as "active" in the signal file, your execution strategy will trade that symbol.
"
would you please send me a link to the doc of how to implement the signal file for strategy to monitor? I need to execute may be 10 different stock symbols.
0
- ago
#4
QUOTE:
how to implement the signal file


There is no specific documentation.
Just use a (.Net, C#) StreamWriter to create an ASCII File in the screener.


And a (.Net C#) StreamReader in the WL7 Strategy to read the file back.
I'd suggest to write one symbol per line for easy parsing...

Documentation: https://docs.microsoft.com/en-us/dotnet/api/system.io.streamreader?view=net-5.0
0
- ago
#5
QUOTE:
And a (.Net C#) StreamReader in the WL7 Strategy to read the file back.
I'd suggest to write one symbol per line for easy parsing...

And again, dynamic DataSet comes to rescue. It could read the file and populate the symbols each time WL7 starts, freeing up @gchudublin's Strategy from this step.
https://www.wealth-lab.com/Support/ExtensionApi/DataSetProvider
0
- ago
#6
But my scanner will update the stock list in seconds, that's why I needed computer to do the work, I can not have W7 restart in few seconds to pick up the new symbol.

What is the shortest interval that I can run the execution strategy to pick up new stock symbols? one minute? Can I do every 1 second? What is the limitation of # of stocks that I can run at at time?
0
- ago
#7
What can your 3rd party scanner do that Wealth-Lab can't?

Wealth-Lab 7 doesn't have to be restarted to pick up the new symbol, a DataSetProvider can update its dynamic DataSet(s) on the fly.
0
- ago
#8
Eugene,

forget about writing scanner in W7 right now, assume I will write to a text file with symbol name + time stamp, so my dataset is called tradethesestock.txt

Would you please show me how to add the above file to the data set and how my running strategy can pick up the file and read symbols in it, if already running that symbol then no need to start to run a new one, if not running then start run the strategy with the symbol read in? and may be limit to 20 can run at any time? I read the document, but probably you can show some code in minutes since you work on this daily for many many years.

And I assume each symbol will show it's own chart window, so I can watch all of them.
0
- ago
#9
Greg,

As a rule I do try to help paid subscribers with example code. Though in this case you take a step further by asking to come up with a custom coding solution, no less. You would agree with me that it looks quite odd from a technician standpoint when topic starter hasn't even taken a 14-day demo. If I didn't know that I had been supporting you for years while WLP was free for Fidelity customers, it might've even raised a red flag with me. https://wl6.wealth-lab.com/Profile/gchudublin

Appreciate that you're turning to me because I work for "many many years" - that's true but still not a reason to work for free in my book. 🤷‍♂️
0
- ago
#10
I don't mind to buy for the whole year to try it out, but you promise to help to make this work?
0
Cone8
 ( 24.61% )
- ago
#11
How many instruments are you scanning?
What streaming data provider?

Everyone likes to separate scanning from trading. Imho, the 'scan' is just a front-end filter for your entry signal, i.e., it's just another trading condition. Wealth-Lab's Strategy Monitor can execute a typical strategy on, say, the S&P 500 in a handful of seconds. An all in one tool for scanning and trading.
0
- ago
#12
I am using X(not sure I can publish their name) scanner, and I wrote an App to pick up the signals, so it is scanning the entire market, but limited by a criteria.

I was using Fidelity, but since disconnected, I have not used this till now. I am thinking to use Alpaca or TD Ameritrade as data provider
0

Reply

Bookmark

Sort