Posting to Twitter - NinjaTrader Programming | futures io social day trading
futures io futures trading


Posting to Twitter
Updated: Views / Replies:5,609 / 29
Created: by shodson Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 1  
 
Thread Tools Search this Thread
 

Posting to Twitter

  #11 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received


josh View Post
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.

havent tried, but a better way would be checking the order collections at a specific time instead of the checking the log file.

Reply With Quote
 
  #12 (permalink)
Elite Member
Georgia, US
 
Futures Experience: None
Platform: Various
Favorite Futures: Various
 
josh's Avatar
 
Posts: 4,897 since Jan 2011
Thanks: 5,143 given, 11,242 received


bukkan View Post
havent tried, but a better way would be checking the order collections at a specific time instead of the checking the log file.

So I would have to poll for new orders, or is there a way to be notified?

Reply With Quote
 
  #13 (permalink)
Elite Member
Denver, CO
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: ES
 
NinjaTrader's Avatar
 
Posts: 1,260 since May 2010
Thanks: 153 given, 1,890 received



josh View Post
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.?

EDIT: My response was incorrect so I removed it.

Reply With Quote
 
  #14 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received


josh View Post
So I would have to poll for new orders, or is there a way to be notified?

dont get by what you mean by poll, but the events raised when any orders are executed from the chart trader are all private and thus internal to NT. NT.Cbi.Globals.Accounts[].Ordres gives you the access to the order collections. using a timer you can check the same after certain interval (say after every minute or whatever) and act accordingly.

alternatively you can create a strategy, which essentially replicate the chart trader (there are many samples here at futures.io (formerly BMT)) and then use the OnOrderUpdate or OnExecution events to tweet.

Reply With Quote
The following user says Thank You to bukkan for this post:
 
  #15 (permalink)
Elite Member
Georgia, US
 
Futures Experience: None
Platform: Various
Favorite Futures: Various
 
josh's Avatar
 
Posts: 4,897 since Jan 2011
Thanks: 5,143 given, 11,242 received


bukkan View Post
dont get by what you mean by poll, but the events raised when any orders are executed from the chart trader are all private and thus internal to NT. NT.Cbi.Globals.Accounts[].Ordres gives you the access to the order collections. using a timer you can check the same after certain interval (say after every minute or whatever) and act accordingly.

alternatively you can create a strategy, which essentially replicate the chart trader (there are many samples here at futures.io (formerly BMT)) and then use the OnOrderUpdate or OnExecution events to tweet.

By polling I mean you have to poll, or check every so often, as you suggest you will have to do. The opposite is what you describe, an event which triggers and notifies, thus eliminating the need to manually poll after a timeout. Really what I have is quite sufficient for my needs, it's easier than having to go through a queue of orders I expect, I just read the log file line and parse it, and it's done. It goes against my desire to write perfect code, but it does the job with probably less logic and does what it needs to do. It's not production quality but it doesn't have to be. Often simpler is better, and parsing a text string is good enough, and the work has already been done

Thank you for your suggestions and when I have some down time I may very well revisit this and make it a bit more robust, and I will likely use your suggestions!

Reply With Quote
 
  #16 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received


josh View Post
By polling I mean you have to poll, or check every so often, as you suggest you will have to do. The opposite is what you describe, an event which triggers and notifies, thus eliminating the need to manually poll after a timeout. Really what I have is quite sufficient for my needs, it's easier than having to go through a queue of orders I expect, I just read the log file line and parse it, and it's done. It goes against my desire to write perfect code, but it does the job with probably less logic and does what it needs to do. It's not production quality but it doesn't have to be. Often simpler is better, and parsing a text string is good enough, and the work has already been done

Thank you for your suggestions and when I have some down time I may very well revisit this and make it a bit more robust, and I will likely use your suggestions!

the best option of what you are doing is creating an chart trader replica in a strategy. that way you dont have to "poll" and you can take advantage of the events.

checking the orders is a better way than reading the log files. if the log file is being used by nt, then you can have exceptions. if the log file is too big, then that will also be an issue. just some random thoughts. best of luck on whichever path you take.

Reply With Quote
 
  #17 (permalink)
Elite Member
Georgia, US
 
Futures Experience: None
Platform: Various
Favorite Futures: Various
 
josh's Avatar
 
Posts: 4,897 since Jan 2011
Thanks: 5,143 given, 11,242 received

I'm not sure what you mean by a "chart trader strategy"? "Better" for me in this case was to get it done and back to focus on trading :-)

Reply With Quote
 
  #18 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received


josh View Post
I'm not sure what you mean by a "chart trader strategy"? "Better" for me in this case was to get it done and back to focus on trading :-)

have a look at this. search the forum, there are many many works by other members in this lines. that way you have access to the events.

Reply With Quote
The following user says Thank You to bukkan for this post:
 
  #19 (permalink)
Elite Member
San Jose, CA USA
 
Futures Experience: Beginner
Platform: Ninja
Favorite Futures: Futures
 
Posts: 28 since May 2013
Thanks: 30 given, 15 received

I would like to implement posting trades to twitter. Anyone has a working version?

Reply With Quote
 
  #20 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,339 since Dec 2012
Thanks: 11,282 given, 7,092 received



ArbTrader View Post
I would like to implement posting trades to twitter. Anyone has a working version?

I have it on a todo list.

I haven't looked at the API's yet so don't know if it's on the minutes, hours or days list, any pointers for easiest C# way to go appreciated, it should fit well with my current futures.io (formerly BMT) and local logging schemes. Let me know if you go for it, cheers.

Travel Well
Reply With Quote

Reply



futures io > > > > > Posting to Twitter

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Twitter-based fund beats the market Big Mike News and Current Events 8 August 19th, 2011 08:13 AM
Shoot the short Big Mike Off-Topic 303 April 13th, 2011 11:11 AM
Posting video on BMT lolu Tech Support 8 June 10th, 2010 10:17 AM
posting charts jdella Traders Hideout 3 July 4th, 2009 09:42 AM
Twitter? shodson Off-Topic 2 July 1st, 2009 07:19 PM


All times are GMT -4. The time now is 07:14 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-16 in 0.14 seconds with 20 queries on phoenix via your IP 54.226.113.250