Dark
Theme
Light
Theme
Register
Username or Email
Username or Email
Password
Password
Forgot
Signup
Forgot
Browse
Register
Downloads / Indicators
Articles
Upgrade to Elite
Unanswered Posts
My Posts
Return to Homepage
Today's Posts
Trading Reviews and Vendors
Futures Brokers Reviews
Traders Hideout (general)
Platforms and Indicators
Trading Journals
Elite Trading Journals
Psychology and Money Management
Off-Topic
The Elite Circle
Webinars
Trading Articles
Main Trading Articles Index
Article Categories
Help, Tutorials, How-To's
Traders and Trading Methods
Platforms, Tools and Indicators
Terms (Glossary)
Article Tools
List New Articles
List Recent Article Changes
Random Article
Most Popular Articles
Category Groupings
Wanted Articles
Most Linked to from Forum
Go to Page...
Quotes
by TradingView
>
Search Forums
>
Showing results 1 to 20 of 20
Filter subforums listed
Search:
Posts Made By:
dsraider
Forum:
NinjaTrader
June 6th, 2010, 03:30 PM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
My last post actually needs a bit of editing but...
My last post actually needs a bit of editing but it won't let me edit. First, dividing ProfitPoints by 4 was unnecessary so get rid of "/4" wherever you see it. Second, turn this:
else ...
Forum:
NinjaTrader
June 5th, 2010, 12:02 PM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Got it! If interested: if...
Got it! If interested:
if (stopLossTokens.Contains(order.Token))
{
// Check order for terminal state
if (order.OrderState == OrderState.Filled &&...
Forum:
NinjaTrader
June 3rd, 2010, 09:24 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Hi Greg, Not sure I 100% follow. I tried: ...
Hi Greg,
Not sure I 100% follow. I tried:
if (stopLossTokens.Contains(order.Token))
{
// Check order for terminal state
if (order.OrderState ==...
Forum:
NinjaTrader
June 3rd, 2010, 07:25 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Well, I tried throwing: SendMail("",...
Well, I tried throwing:
SendMail("", "
[email protected]
", Instrument.MasterInstrument.Name + " Cross2050 Stop Filled " + order.AvgFillPrice + ": " + lastTrade.ProfitPoints, "");
into
if...
Forum:
NinjaTrader
June 2nd, 2010, 10:23 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Hi Greg, I'm worried that I might have an...
Hi Greg,
I'm worried that I might have an issue with what's below as I have both my target and stop emailing me when filled so I will try using if(lastTrade != null) ---> SendMail() in both parts...
Forum:
NinjaTrader
June 2nd, 2010, 09:09 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Greg, You're a genius! It's worked like a...
Greg,
You're a genius! It's worked like a charm in Print. Thank you! Can I do that in SendMail as well? I just don't get why changing
SendMail("", "
[email protected]
",...
Forum:
NinjaTrader
June 2nd, 2010, 08:11 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Hi Greg, Thanks for that but it gave me the...
Hi Greg,
Thanks for that but it gave me the following error message:
Type of conditional expression cannot be determined because there is no implicit conversion between 'string' and 'double'
...
Forum:
NinjaTrader
June 2nd, 2010, 06:05 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Hi Mike, That's what makes it even stranger...
Hi Mike,
That's what makes it even stranger because I have the following in place:
protected override void OnBarUpdate()
// Check to make sure there is at least one trade in the collection ...
Forum:
NinjaTrader
June 1st, 2010, 08:33 PM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Okay, as far as defining a variable is concerned,...
Okay, as far as defining a variable is concerned, this works:
Variables
private Trade lastTrade;
The rest is weird. I changed lastTrade to lastTrade.ProfitPoints in SendMail() and it's...
Forum:
NinjaTrader
May 31st, 2010, 07:08 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
To anyone following along, I now have my strat...
To anyone following along, I now have my strat emailing when the stop or target is filled. If interested, here's the code:
//Variables
private ArrayList stopLossTokens = new ArrayList();...
Forum:
NinjaTrader
May 22nd, 2010, 08:35 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
gregid, Apologies for not thanking you...
gregid,
Apologies for not thanking you sooner for your last post but I'm afraid I just can't get this thing to work properly, even when trying to follow your instructions verbatim. I'm having the...
Forum:
NinjaTrader
May 16th, 2010, 08:26 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Okay, I've added stops and targets. ...
Okay,
I've added stops and targets. Everything emails and emails ONLY once. Thanks again for that. The only problem I'm now having is turning:
ES Stop Filled 1170
into
ES Stop Filled...
Forum:
NinjaTrader
May 12th, 2010, 07:11 PM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Wow. You really went beyond the call of duty on...
Wow. You really went beyond the call of duty on that one. It worked like a charm. Onto targets and my trailing stop.
A million thank you's, sir.
Your humble servant,
Dave
Forum:
NinjaTrader
May 12th, 2010, 06:35 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Hey Sam, Good news: ...
Hey Sam,
Good news: entryOrder1.AvgFillPrice worked perfectly. Thanks for that.
Bad news: Neither...
Variables
private bool _enter_email = false;
if (entryOrder1 != null &&...
Forum:
NinjaTrader
May 11th, 2010, 07:32 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Sam, Thanks for taking a look at this. I'm...
Sam,
Thanks for taking a look at this. I'm losing my mind.
Dave
EDIT: Added the zip in case that's easier. Ideally, I'd like to see the following but don't know if it's possible. Would...
Forum:
NinjaTrader
May 10th, 2010, 07:36 PM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Update - I'm making progress but am still having...
Update - I'm making progress but am still having issues.
private IOrder entryOrder1 = null;
if (CrossAbove(EMA(20), EMA(50), 1))
{
entryOrder1 = EnterLong(DefaultQuantity,...
Forum:
NinjaTrader
May 8th, 2010, 07:29 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
When the order is filled is probably better. If...
When the order is filled is probably better. If you have an example, I'd greatly appreciate it as I'm getting a little lost on this one. Oh, and thanks for the birthday wishes. ;) As you can...
Forum:
NinjaTrader
May 7th, 2010, 07:40 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Okay, now I'm getting confused. I'm one year...
Okay, now I'm getting confused. I'm one year older today and closer to senility so please take it easy on me. Do I use both or should I just use the code in your last post and then add something to...
Forum:
NinjaTrader
May 6th, 2010, 08:17 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
Sam, I'm off to work now but wanted to thank...
Sam,
I'm off to work now but wanted to thank you for your quick reply. This looks very promising. Question, though. Do I need to insert this code with each condition or can I just post it...
Forum:
NinjaTrader
May 6th, 2010, 06:45 AM
Replies:
34
SendMail() for strategies
Views:
14,280
Posted By
dsraider
SendMail() for strategies
Hi All,
I'm trying to add SendMail() to my strat for when it enters, moves my stop to breakeven and closes. Since I'm using CalculateOnBarClose = false, I can't use the regular SendMail() code as...
Showing results 1 to 20 of 20
What unexpected challenges have you encountered while trading on a "Funded Trader" platform?
Limited trading instruments
High platform usage fees
Lack of support or mentorship
Unrealistic rules and requirements
No significant challenges
Something else (discuss in thread)
View Results
Discuss Poll
futures io is now NexusFi
Trading Webinars How-to's
Trading Reviews & Products
Join Markets Chat waitlist
NinjaTrader Brokerage (Broker)
Ninja Mobile Trader (Server Hosting)
Apex Trader Funding (Prop Trading)
Tradovate (Trading Platform)
NinjaTrader (Trading Platform)
SharkIndicators (Trading Software)
© 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.