NexusFi: Find Your Edge


Home Menu

 



Showing results 1 to 9 of 9
Search: Posts Made By: gregid
Forum: NinjaTrader April 28th, 2015, 05:23 PM
Replies: 19
Views: 5,493
Posted By gregid
You're welcome

You're welcome
Forum: NinjaTrader April 28th, 2015, 05:09 PM
Replies: 19
Views: 5,493
Posted By gregid
Hard to say, theoretically both should work, but...

Hard to say, theoretically both should work, but just in case when using multiple bars series always use CurrentBars[x]
Forum: NinjaTrader April 28th, 2015, 04:13 PM
Replies: 19
Views: 5,493
Posted By gregid
The problem is you don't have enough bars...

The problem is you don't have enough bars available - you are requesting data from 4 bars ago (3) while on bar 0, 1, 2. This won't work so you need to make sure that:
if (CurrentBars[1] < X) return;...
Forum: NinjaTrader April 28th, 2015, 03:42 PM
Replies: 19
Views: 5,493
Posted By gregid
Now we know that the secondary bars have been...

Now we know that the secondary bars have been successfully added and the error was in your DrawText.

If you are inside BarsInProgress == 1 you can use Open[X] and this will use the right Bars, so...
Forum: NinjaTrader April 28th, 2015, 11:50 AM
Replies: 19
Views: 5,493
Posted By gregid
OK, please try the minimum version with just...

OK, please try the minimum version with just adding the bar and Print method (no DrawText...) just as in my post - trying to identify where the error is.
Forum: NinjaTrader April 28th, 2015, 11:45 AM
Replies: 19
Views: 5,493
Posted By gregid
I think the error message is cutoff - can you...

I think the error message is cutoff - can you scroll to the right to get a full one?
Forum: NinjaTrader April 28th, 2015, 11:24 AM
Replies: 19
Views: 5,493
Posted By gregid
What is UT2? Try adding without the...

What is UT2?

Try adding without the Instrument.FullName, ie:
Add(PeriodType.Custom4, 10);// [1]
Also for better debugging add Print method to check in the output window if it executes:

...
Forum: NinjaTrader April 28th, 2015, 09:38 AM
Replies: 19
Views: 5,493
Posted By gregid
You had it at the bottom: :becky: ///...

You had it at the bottom: :becky:

/// <summary>
/// </summary>
public ReversalBarsType () : base(PeriodType.Custom4)
{
this.OxFln4MCc = true;
}

So use Custom4 to add the bar...
Forum: NinjaTrader April 28th, 2015, 09:06 AM
Replies: 19
Views: 5,493
Posted By gregid
I gather ReversalBars is some custom bar type you...

I gather ReversalBars is some custom bar type you have imported to NT. The only way to add custom bar type is to use Custom or Final eg. assuming that ReversalBars use Custom5 you would use:
...
Showing results 1 to 9 of 9

Have you been scammed by "Vinny Emini"?

 


 
 


© 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