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'm looking to improve my existing automated strategy. Currently its running on a Renko 3 chart, but I would like to also have it do the same analysis on a Range 4 chart and possibly others, then make buy decisions on a polling basis.
Is this possible in ninjascript? Any Examples?
I've looked through the SampleMultiInstrument example in ninja trader but they don't seem to add more then one instrument or show how to use them independently.
Can you help answer these questions from other members on NexusFi?
I uses a two chart system myself. The first is a non-renko chart and the second is a renko chart. created alerts based on indicators on both charts, but the strategy is applied to the main chart. Here are some snippets on how I did it.
Keeping in mind this strategy is being placed on the non-renko chart, I need to "add" a renko chart to it during initialization:
then later, in the OnBarUpdate section, i first need to specify what to do for ticks relate to each chart:
protected override void OnBarUpdate()
if (BarsInProgress == 0)
{logic for non-renko main chart}
else if (BarsInProgress == 1)
{logic for secondary renko chart}
Using this format you can theoretically as much info from as many charts as you need, though I only use two, so YMMV. Also, PeriodType.Final2 is specific to the "WickedRenko" which is what I use.