Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I am attempting to rename a Bar Type and have run into a problem
Here is what I have done
I have made a copy of a NT provided Bar Type and am changing its name
All of this was done with the NT Editor
I made the following changes to the code
Within the NT editor I changed its name to MoesCustomBarType
Within the file I changed the Public Class to MoesCustomBarsType
and replaced every instance of the words Original BarType name to MoesCustom
I compile without error.
I restarted NT and tried to open a new chart with the new BarType. But it is not listed.
I receive no errors on screen and there are no errors in the log file.
I reopen the Editor and now there are 2 errors.
The errors read NinjaTrader Custom.Resource 'does not contain a definition for 'NinjaScriptBarsTypeMoesCustom'
'NinjaTrader Data BarsPeriodType' does not contain a definition for 'MoesCustom'
And the errors point to these lines of code
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Name = Custom.Resource.NinjaScriptBarsTypeMoesCuston ;
BarsPeriod = new BarsPeriod { BarsPeriodType = BarsPeriodType.MoesCustom };
DaysToLoad = 3;
}
else if (State == State.Configure)
{
switch (BarsPeriod.BaseBarsPeriodType)
Can anyone give me a hand and direct me to a solution??
Thanks
Dean
Can you help answer these questions from other members on NexusFi?
If you type NinjaTrader.Custom.Resource. at this point after the (dot) you should see a window pop up with all the available options that you can select that belong to the NinjaTrader.Customer.Resource class. If you then type something that does not exist within this, you will hit this error message. So it sounds like whatever it is that you are building, you need to get it into this class.
In the analytical world there is no such thing as art, there is only the science you know and the science you don't know. Characterizing the science you don't know as "art" is a fools game.