NexusFi: Find Your Edge


Home Menu

 



Showing results 1 to 6 of 6
Search: Posts Made By: gregid
Forum: NinjaTrader June 4th, 2010, 10:29 AM
Replies: 34
Views: 14,274
Posted By gregid
Dave, you understood it correctly. The reason why...

Dave, you understood it correctly. The reason why no Print statement or SendMail executed is because lasttrade at the time is empty (no value).

Move the (full) code where you update the “Trade...
Forum: NinjaTrader June 3rd, 2010, 08:19 AM
Replies: 34
Views: 14,274
Posted By gregid
Dave, You didn't check if lastTrade contains...

Dave,

You didn't check if lastTrade contains any value before using it. You should check it every time you ask for its value.

Greg
Forum: NinjaTrader June 2nd, 2010, 09:30 AM
Replies: 34
Views: 14,274
Posted By gregid
Check if you haven't missed any curly brackets in...

Check if you haven't missed any curly brackets in your code:

if (Performance.RealtimeTrades.Count > 0)
{
// Get the last completed real-time trade (at index 0)
Trade lastTrade...
Forum: NinjaTrader June 2nd, 2010, 08:40 AM
Replies: 34
Views: 14,274
Posted By gregid
I can't check it now but try something along...

I can't check it now but try something along these lines:

Print("The last trade profit is " + (lastTrade.ProfitPoints >= 0 ? "+" + Convert.ToString(lastTrade.ProfitPoints) :...
Forum: NinjaTrader June 2nd, 2010, 07:04 AM
Replies: 34
Views: 14,274
Posted By gregid
dsraider, have you tried this: Print("The...

dsraider, have you tried this:

Print("The last trade profit is " + (lastTrade.ProfitPoints >= 0 ? "+" + lastTrade.ProfitPoints : lastTrade.ProfitPoints))
Forum: NinjaTrader May 18th, 2010, 05:30 AM
Replies: 34
Views: 14,274
Posted By gregid
dsraider in your code change this line: ...

dsraider

in your code change this line:

double lastProfit = lastTrade.ProfitPoints;

to:

lastProfit = lastTrade.ProfitPoints;
Showing results 1 to 6 of 6

What unexpected challenges have you encountered while trading on a "Funded Trader" platform?

 


 
 


© 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