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 have a question regarding this UniRenko which works great on a chart. I am in the process of developing a multi time-frame strategy. I have put the Add statement in as follows:
Add(PeriodType.custom5, 004008002);
I get the following error so I know that something else is needed.
'NinjaTrader.Data.PeriodType' does not contain a definition for 'custom5'
Would anyone please let me know what other statement I have to insert into my code and where it has to go? It would be a big help. I am new at programming so please be specific. Many thanks!
Can you help answer these questions from other members on NexusFi?
Thanks MWinfrey, that fixed the compile problem! Another question please...
What order are the numbers in? In other words
004 = ?
008 = ?
002 = Tick Trend????
the following line is given as an example of Add() method when using Multi Time-Frame strategies:
Add(PeriodType.Custom5, 004008002);
It compiles OK but gives the following runtime error:
**NT** Failed to call method 'Initialize' for strategy 'RangeChartSlopes/6b7d4915312c43ab884f55c1706c5d1a': Please use the alternate method 'AddRenko()' instead of Add()
So I then changed the ADD() method to AddRenko() as follows:
AddRenko(PeriodType.Custom5, 004008002);
This time, I get a compile error:
No overload for method 'AddRenko' takes '2' arguments
Only use AddRenko with the Renko bar type chart comes with NT. Otherwise use Add() for all custom bar types. Further, why don't you post the code for the Initialize method so we can look at it.