I wonder if you might provide a few lines of code as to how to open a com port in c#. I am intrigued by this idea of becoming my own sms gateway but my coding skills are fairly basic ( not newbie but no where near advanced!!)
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Sending SMS from NT6?
Collapse
X
-
HiOriginally posted by zweistein View Post
I wonder if you might provide a few lines of code as to how to open a com port in c#. I am intrigued by this idea of becoming my own sms gateway but my coding skills are fairly basic ( not newbie but no where near advanced!!)
-
Hi,
Its somthing I looked at a while back and havent had a chance to complete yet.
there are currently 2 alternatives.
The easiest is email you can setup your acc details in options misc. If you search around there is script on the forums with print statements and scriipts for emailing.
the second is twiiterize. there is a script floating aropund that shows how to do it.
the third option would be to ask Ray nicely to alow email / sms alerts with the next release of NT. i am prepared to do the work. I just know as soon as I copmplete it, there it will be as a standard item and I will have wasted hours or in my case days. Everything is mobile these days so it should be a standard item with the best trading sowtware in the world NT7.
Hope this helps.
raef
Last edited by raefon72; 01-03-2012, 10:07 PM.
Comment
-
You can do your own email from within a strategy
I googled how to email from .NET and found something and put it in a strategy and it worked.
I was even sending to my phone as I was sending to my sprint account (and no, i'm not blahblah....@messaging...)
It can be done!
Close[0] is what it means in ninjascript. Put whatever you want there.
Code:using System.Net; using System.Net.Mail; ... MailMessage mail = new MailMessage(); mail.To.Add("[email protected]"); mail.From = new MailAddress ("From:MYSELF"); //txtFrom.Text; mail.Subject = "Subject:PUT YOUR SUBJ HERE";//txtSubject.Text; mail.Body = "Body:" + Close[0]; //txtBody.Text; SmtpClient smtp = new SmtpClient("*******.******.***"); smtp.Send(mail);Originally posted by raefon72 View PostHi,
Its somthing I looked at a while back and havent had a chance to complete yet.
there are currently 2 alternatives.
The easiest is email you can setup your acc details in options misc. If you search around there is script on the forums with print statements and scriipts for emailing.
the second is twiiterize. there is a script floating aropund that shows how to do it.
the third option would be to ask Ray nicely to alow email / sms alerts with the next release of NT. i am prepared to do the work. I just know as soon as I copmplete it, there it will be as a standard item and I will have wasted hours or in my case days. Everything is mobile these days so it should be a standard item with the best trading sowtware in the world NT7.
Hope this helps.
raef
Comment
-
Most cell phone providers will have an SMS email address you can use with the SendMail() function.
You can use that address to send emails to and it should be forwarded to your phone. You'd need to check with your provider to see what your address to your phone would be.MatthewNinjaTrader Product Management
Comment
-
Csk,
Yes, you would need to create a strategy for this. If you don't have the "New NinjaScript" in the Tools menu option you may want to use a simulated key to do your development, or upgrade to a standard edition license.
Sign up for a free sim key : http://www.ninjatrader.com/download-registration.php
Upgrade to a standard edition license : http://www.ninjatrader.com/purchaseAdam P.NinjaTrader Customer Service
Comment
-
Csk, please edit your post to remove the license info - we would not want this published publicly on the forums - thanks.
You're using a direct edition license here, so this would not include the system development features needed. To use those please proceed as offered by Adam in his post #23.
Comment
-
You're using the free direct edition, which is a limited functionality version of our end-to-end trading platform that can be used with your live brokerage account. It comes with basic order entry and charting functionality.
The standard edition license would then add those feature sets :
Advanced Trade Management:
This powerful feature is what put NinjaTrader on the map! Predefine your trade exit parameters and watch NinjaTrader automatically submit and manage your stop loss and profit target orders in milliseconds. In a game of ticks…Advanced Trade Management is a must have!
Chart Trader
React to the market instantly by placing orders and managing trades directly within a chart.
Order Entry Hot Keys
Drive order submission, modification, cancellation and close positions efficiently by invoking user configured Hot Keys.
Automated Trading System/Indicator Development & Backtesting
Using C# based NinjaScript, develop, backtest and optimize trading strategies and indicators.
Automated Trading
Take the emotion out of your trading by running automated trading strategies.
One Cancels Other Orders (OCO)
Submit multiple orders to protect an open position, when one fills the other is automatically cancelled.
The free simulation edition offered would include all our features - however you could not execute to a live account with it.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
574 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment