NexusFi: Find Your Edge


Home Menu

 



Showing results 1 to 3 of 3
Search: Posts Made By: MooreTech
Forum: NinjaTrader March 8th, 2011, 09:45 AM
Replies: 10
Views: 7,624
Posted By MooreTech
A little snippet to help get you started. I...

A little snippet to help get you started. I didn't test this code, but it should give you the idea.


TimeSpan ts = new TimeSpan(1,0,0,0);
DateTime prevTime = Time[0].Subtract(ts);
int barsAgo =...
Forum: NinjaTrader March 8th, 2011, 09:16 AM
Replies: 10
Views: 7,624
Posted By MooreTech
The problem is still with the same line of code....

The problem is still with the same line of code. Time[0].Day returns a value between 1 and 31 indicating the day of the month. If the day of the month is the first, Time[0].Day-n will return a 0 or...
Forum: NinjaTrader March 8th, 2011, 07:53 AM
Replies: 10
Views: 7,624
Posted By MooreTech
My guess is that the error is in the following...

My guess is that the error is in the following line of code.


// Calculate the bars prior intraday close value for the 1515 hrs bar
int barsAgo = CurrentBar - Bars.GetBar(new...
Showing results 1 to 3 of 3

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