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)
why is it that the my code cannot go down to the PostToTwitter? I put it under the OnBarUpdate, did I put it correcty? or I made a mistake.. I copy all the staf that posted on the postTwitter code. I used the code that not use curl.exe..
Can you help answer these questions from other members on NexusFi?
The method used by shodson was made redundant by Twitter some time ago - if you know how to program you may need want to look at some generic c# examples/discussion, like the one here:
I have been using simple SendMail commands from within my Ninjascript, to email to a TwitterMail address, with NinjaTrader configured via gmail's SMTP server (smtp.gmail.com, port 587, SSL), for well over a year now. The "tweet" is uniformly "received" within a second, and, other than what was a twittermail problem some months ago (was down for a few days), the solution works flawlessly and around the clock.
I use this as my code:
Twitter t = new Twitter(Username, Password);
t.Status.Update("status = " + msg +"Instrument = " +Instrument.FullName
+"Direction = " +SignalType +"Close Price = " +Close[0] +"Date/Time = " +SignalTime);
but wen I compile this code it says that Object refferences not set of an object what does it mean?
hello everyone.. need help, I'd tried to post a tweet in the twitter in the using ninjatrader Indicator, this code was working in the ASP.NET but not in the ninja,,, I got this error when I compile it.
The name 'Response' does not exist in the current context
The name 'Request' does not exist in the current context
any can help pls??
try
{
var oauth_consumer_key = "consumerKey";
var oauth_consumer_secret = "ConsumerSecret";
I have used your code to perform the same function but running into an error, can you share your full code or help in fixing the error, here is my code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Design;
using System.Drawing.Drawing2D;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using System.Xml.Serialization;
using Microsoft.Win32;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Design;
using NinjaTrader.Indicator;
using RestSharp;
I don't know, you don't even explain what the error message is that you are getting. I wrote this code 8 years ago. I don't post trade updates to Twitter anymore. Maybe Twitter changed their API so that might explain why this doesn't work anymore.
TradingTechnics
Hello Trader,
I have used your code to perform the same function but running into an error, can you share your full code or help in fixing the error, here is my code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Design;
using System.Drawing.Drawing2D;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using System.Xml.Serialization;
using Microsoft.Win32;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Design;
using NinjaTrader.Indicator;
using RestSharp;
Error : ; expected at line 32 column 83
Error : Unexpected Character "\" at line 32 column 90
I tried it several way but the error is not getting resolved, maybe you can help
Also getting error @ Line 24, column 31
Error: NinjaTrader.Strategy is a 'namespace' but is used like 'type'
The is the code line : public class PostToTwitter : Strategy
If you copy the complete code and compile, you will see the errors, just replace twitter username/pwd with yours.
shodson
I don't know, you don't even explain what the error message is that you are getting. I wrote this code 8 years ago. I don't post trade updates to Twitter anymore. Maybe Twitter changed their API so that might explain why this doesn't work anymore.