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)
not stupid at all - I have long wished there was a way to do exactly what you're asking for. but the Ninjatrader API is just too simplistic I believe that NT7 will support this, whenever that might be...
May I ask you for a bit more discussion on how you create something like this? This looks absolutely incredible... it's probably something simple that I'm just not grasping here at 4AM, but some discussion on creating something like this would be appreciated by others here on the forum as time rolls forward... I have no doubt about it. Thanks again for this incredible tool, Piersh -- I've used it to prove (to myself) the incredible value of trailing stops (I'm honestly stunned at the merit inherent in trailing stops), as well as another concept that seemed so far away from me just a few days ago (the value of much longer-term moving averages, particularly with Renko bars); Renko bars don't have a fixed time in any case, but they do have a fixed range -- longer-term moving averages play very well with Renko bars, and it's pretty crazy to think about 60-bar trades when the time used for each bar is undefined in the first place. Your tool has really made me grasp the market in a much more profound and deep way. Anyhow, if you could elaborate a bit more on the post above, (which I will try and quote, here), that would be very cool. Thanks again.
sure, first of all, make sure you're familiar with Enums.
now, if you expose a property on your strategy that is an Enum value, the optimizer will allow you to vary that property as part of the optimization.
for example, many of the indicators that come with NT have PriceTypeSupported set to true, which means you can change the dataseries mapped to the indicator's Input by changing the PriceType.
so... you can expose this PriceType property on your strategy, like this:
then you can pass this value into the indicator when you add it:
I'm keeping a reference to the indicator locally, so I don't have to keep initializing it later:
now when you run the optimizer, it'll show the following dialog:
which allows you to choose which values of PriceType you wish to test.
I have a question if you don't mind. In the EMA example you provided, is there a way to also access a plot/dataseries and still gain control over the price type the way you have outlined above?
For instance...
Say I wanted to use the DoubleMA indicator which has a plot called "Signal". I would usually do it in the OnBarUpdate something like this, but I wouldn't have control over the pricetype...
I have a question if you don't mind. In the EMA example you provided, is there a way to also access a plot/dataseries and still gain control over the price type the way you have outlined above?
For instance...
Say I wanted to use the DoubleMA indicator which has a plot called "Signal". I would usually do it in the OnBarUpdate something like this, but I wouldn't have control over the pricetype...