I have a strategy I use the Quotes window for. every morning I have to watch it like a hawk and sometimes miss trades because of a Fidelity trading rule. Namely:
A limit order will produce an error if the limit price is 10% higher than the stock price (or maybe if the stock price is 10% lower)
So if a stock has bad news overnight and opens down 15%, my strategy might want to buy it, and the monitor will place the limit order, but it will produce an error.
I could just have the quote monitor convert all orders to market but I tried that and the slippage was terrible so that's not ideal.
I'm assuming there's no way, but is there a possibility of placing a market order if the price is >10% lower than the limit order automatically? This really only happens at the open but I'm tired of being tied to my computer every morning and rushing to switch errored orders to market orders hoping I don't miss my price target.
Thanks
Size:
Color:
Have you tried the Convert to Market button in Quotes > Alerts Pane?
Size:
Color:
Yes - but like I said that converts ALL the trades to market and the slippage is really high then.
Size:
Color:
I tried to get that changed years ago so that Fidelity would accept Wealth-Lab Pro orders even if limit or stop orders were immediately marketable - forget it, this cannot be changed.
The only thing that I can think of is to monitor premarket trading for large gaps with a quotes-like tool and manually adjust your triggers where required. Maybe fidelity.com has a tool that could alert you?
Size:
Color:
Size:
Color:
Ok, thanks for explaining. I asked the Active Trader group if they can change it too but haven't heard back.
That's a cool site thank you. I'll try that.
The only other thing I could think of but hate doing is have the quote window convert to market on the open but then stop that at 931. I still have to be at the computer though and I have to remember to change my trigger threshold from 80 to 100 pre-market then back to 80 for the limit orders.
Painful.
Thanks
Size:
Color:
Just for fun I tried to come up with a parser for that page (70% done) but there's highly annoying anti-bot protection (captcha) that kicks in after 3 web page requests, making it nearly impossible to finish the code. Maybe later.
Size:
Color:
QUOTE:
..change my trigger threshold from 80 to 100 pre-market then back to 80 for the limit orders.
80% is a pretty low threshold. A strategy that I run bought 5 symbols yesterday triggering at 100%. 80% would have triggered more than 15 other symbols none of which would have been purchased. imho, 95% is plenty of "early warning" to get an order in place.
Size:
Color:
Thanks. I don't mind having the extra orders. I had it at 90 and was missing several trades that barely touch my limit. I've only missed 1 trade after the open after changing it to 80.
The only drawback is that Fidelity sets aside margin for the open orders but I don't have enough triggers a day to fill my margin limit except rarely.
Thanks for trying Eugene.
Size:
Color:
EDIT 07/02/2010: fixed crash
I got the damned thing working. MarketWatch pisses me off by banning all my IPs so I had to resort to a VPN.
REQUIREMENTS:
1. Add references to
System.Core,
System.Web and
System.Xml on Editor's ".NET References" dialog > "NET Framework" tab. Tick the three boxes, OK the dialog, save with the Strategy.
2. WLP/D now includes
HtmlAgilityPack which is required for this code to run. Previously, an installed Community Components included the library.
Notes:1. There should be no red compiler errors at the bottom of the Editor. Otherwise the code wouldn't run. Disregard any "squiggly lines" in the code though.
2. The code runs once saving the web page to WL's global memory. Then you can run this code while WLP is running w/o risking to get caught by captcha.
3. You will see a blank PrintDebug output if the data is not actual i.e. no premarket yet.
CODE:
Please log in to see this code.
Size:
Color:
Ok, so this will get premarket prices? Can you please explain briefly how to use it?
Thanks!
Size:
Color:
Yes.
You must be bookmarking topics where you post? This explains the fast replies (here: 4 minutes since my post). With my posts it does not always work to reply to me instantly because I'm used to editing them several times until perfection is reached. :)
So I've added some guidelines while you were replying (see above) and guess I should add that the StockData contains the properties of a "laggard" (gap down) or "leader" (gap up). The PremarketChangePct is the key - you can filter on this property as you wish to look for symbols which gapped up/down only a certain magnitude or greater.
Size:
Color:
This is really helpful. Thank you very much.
Nah, just had it open and walked in to check the market and saw you had replied - so lucky timing.
Size:
Color:
Glad to help you!
Size:
Color:
Just trying this now and got this error:
The System.Object is defined in an assembly that is not referenced. You must add a reference to the assembly 'System.Runtime, Version=4.0.0.0 etc.'
I added the references you mentioned about but System.Runtime isn't showing. Runtime.Remoting and Runtime.Serialization.Formatting.Soap show.
Any suggestions please?
Size:
Color:
Size:
Color:
Perfect Thank you!
That's so cool.
Size:
Color:
Glad to help you! Good to hear it's working.
Size:
Color:
Code in post #10 updated, crash fixed.
Size:
Color: