Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I just coded my automated strategy to post trades, entries, exits, and daily P/L summaries to a Twitter account. I tried using some of the 3rd-part .NET Twitter APIs but I couldn't get one to work (Twitteroo) so I just used the command-line API. You need to have a working copy of curl.exe on your machine and set it's path in the "cmd" string. I've attached a ZIP with the curl.exe I'm using on Vista Ultimate. The "user" and "password" parameters are your Twitter username and password you want to post to.
You can follow my strategy's Twitter account at @uberBOT1.
Actually, this one is probably better, it doesn't require the curl library, just uses the built-in .NET libraries. Props to this page for helping me fine-tune it.
Apologies for the grave dig but I'm curious how you implemented this code. I tried pasting the code into a strategy and calling it in "OnBarUpdate" and it locked up NT7. Never managed to break NT so easily and consistently lol.
I've asked over at the NT forum but thought it wouldn't hurt to double post here.
Is it possible to use something like TwitterVB or another library to post twitter updates if I place a manual trade, as opposed to calling the code from an automated strategy? Like, if I place a stop order in the DOM, is there some mechanism to detect that and immediately post that an order is placed, and then when the order is filled, and then when the stop loss is moved, etc.?
I tried using a strategy and it seems that a strategy will not detect orders placed outside of the strategy.
After researching, one way I can see to implement this is to read from the log file, and read each line and then just determine the order information from that text file.
As an update to this, I am reading from the log file and doing what I needed to do, this is the only way to get info for manually placed trades according to NT. Parsing the info and using SendMail() via twittermail.