NexusFi: Find Your Edge


Home Menu

 



Showing results 1 to 8 of 8
Search: Posts Made By: Big Mike
Forum: NinjaTrader August 20th, 2009, 01:29 AM
Replies: 21
Views: 9,814
Posted By Big Mike
Good plan vast. Here are my thoughts, untested...

Good plan vast. Here are my thoughts, untested code below. There is probably a simpler way to do this, perhaps using MAX on the Performance.RealtimeTrades DataSeries, but I didn't have time to test...
Forum: NinjaTrader August 19th, 2009, 08:53 PM
Replies: 21
Views: 9,814
Posted By Big Mike
vast, Please explain in plain english what...

vast,

Please explain in plain english what it is you are trying to accomplish with all of your code, list all the objectives please. I am sorry but I am not sure what you are trying to do...
Forum: NinjaTrader August 19th, 2009, 03:07 AM
Replies: 21
Views: 9,814
Posted By Big Mike
Also my suggestion is to simplify things a bit. ...

Also my suggestion is to simplify things a bit. You can write C# code in a way where it flows like English and in a logical fashion. It may not be the most optimized code but don't worry about that...
Forum: NinjaTrader August 19th, 2009, 02:54 AM
Replies: 21
Views: 9,814
Posted By Big Mike
vast, First you should post code using the...

vast,

First you should post code using the PHP Code tag (is on editor toolbar) so it doesn't word-wrap.

The issue with your code is in this area:


if
(CumProfit >...
Forum: NinjaTrader August 16th, 2009, 11:56 PM
Replies: 21
Views: 9,814
Posted By Big Mike
Sorry can't test right now. You may need to do a...

Sorry can't test right now. You may need to do a check first:

if (Performance.AllTrades.Count > 1)

If it's zero it may screw up the rest. Check the log for any obvious errors.

Sorry about...
Forum: NinjaTrader August 13th, 2009, 10:03 PM
Replies: 21
Views: 9,814
Posted By Big Mike
Yup good job. Gary and I have similar...

Yup good job.

Gary and I have similar thoughts and MM plan, think of it like a trailing stop for your daily profit target/loss.
Forum: NinjaTrader August 13th, 2009, 08:59 PM
Replies: 21
Views: 9,814
Posted By Big Mike
Hmm. Maybe create your own DataSeries. ...

Hmm. Maybe create your own DataSeries.


#variables
private DataSeries mycumprofit;

#init
mycumprofit = new DataSeries(this);

#onbarupdate
Forum: NinjaTrader August 13th, 2009, 03:26 PM
Replies: 21
Views: 9,814
Posted By Big Mike
From:...

From: https://nexusfi.com/programmers-paradise/241-code-snippets-needed.html#post1241



// At the start of a new session calculate the prior cum profit so it won't be included in the
//...
Showing results 1 to 8 of 8

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