NexusFi: Find Your Edge


Home Menu

 





Posting to Twitter


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one josh with 6 posts (1 thanks)
    2. looks_two bukkan with 5 posts (3 thanks)
    3. looks_3 shodson with 4 posts (13 thanks)
    4. looks_4 Flexer with 3 posts (0 thanks)
      Best Posters
    1. looks_one shodson with 3.3 thanks per post
    2. looks_two Beljevina with 2 thanks per post
    3. looks_3 gregid with 1.5 thanks per post
    4. looks_4 bukkan with 0.6 thanks per post
    1. trending_up 11,296 views
    2. thumb_up 24 thanks given
    3. group 13 followers
    1. forum 29 posts
    2. attach_file 1 attachments




 
Search this Thread

Posting to Twitter

  #11 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


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

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Futures True Range Report
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #12 (permalink)
 
josh's Avatar
 josh 
Georgia, US
Legendary Market Wizard
 
Experience: None
Platform: SC
Broker: Denali+Rithmic
Trading: ES, NQ, YM
Posts: 6,216 since Jan 2011
Thanks Given: 6,752
Thanks Received: 18,136


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)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,713 since May 2010
Thanks Given: 203
Thanks Received: 2,686



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.

Follow me on Twitter Reply With Quote
  #14 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


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
Thanked by:
  #15 (permalink)
 
josh's Avatar
 josh 
Georgia, US
Legendary Market Wizard
 
Experience: None
Platform: SC
Broker: Denali+Rithmic
Trading: ES, NQ, YM
Posts: 6,216 since Jan 2011
Thanks Given: 6,752
Thanks Received: 18,136


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)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


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)
 
josh's Avatar
 josh 
Georgia, US
Legendary Market Wizard
 
Experience: None
Platform: SC
Broker: Denali+Rithmic
Trading: ES, NQ, YM
Posts: 6,216 since Jan 2011
Thanks Given: 6,752
Thanks Received: 18,136

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)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


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
Thanked by:
  #19 (permalink)
 ArbTrader 
San Jose, CA USA
 
Experience: Beginner
Platform: Ninja
Trading: Futures
Posts: 43 since May 2013
Thanks Given: 39
Thanks Received: 18

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

Reply With Quote
  #20 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,425



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
Visit my NexusFi Trade Journal Reply With Quote




Last Updated on March 28, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts