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)
NinjaTrader allows me to code a strategy by simply referencing an indicator inside the strategy, i.e. the plot values of the indicator can be used inside the strategy as variables, and if I want the strategy to also plot the indicator without explicitly adding the indicator itself, I just add the indicator within the strategy code. This will prevent the potential mistake of supplying different params to the indicator and the strategy, were they added to chart separately.
In MultiCharts EasyLanguage, it seems that I cannot do something similar?
What I have learnt so far, is, write a function that generates the values, then write an indicator to plot the values, then write a signal that uses the values of the function.
However, if there is an existing indicator that plots, can I use the plot values in a MultiCharts strategy like in Ninja?
I am just worried that there is always the danger of mistakenly supplying different params to the function, from within the indicator and from within the strategy, since they need to be added separately.
With either of the two approaches you won't have these problem. If the trendlines are being plotted from the strategy there is no indicator with different settings.
In the latter approach the indicator would read the values from the strategy and doesn't have any inputs at all.
By the way it just came to my mind instead of feeding the indicator the strategy values via EL Collections, simply feed the inputs only.
This will make sure the results are similar (make sure the maximum number of bars the studies reference are the same!) as the inputs are alike.
Hello, my question is similar. I am not concerned about plotting an indicator in the strategy because I can just apply the indicator in the chart with the same inputs that I'm using in the strategy in EL. However, I don't know how to use an indicator in a strategy when the code for the indicator is not available. I would like to use the NPCPX_SignalLine indicator, however the code is not available. Is it possible to use the indicator in the strategy without adding the code? In Ninjatrader this is possible and I'm hoping it can be done in EL also.
In Tradestatation this would unfortunately not be possible. Maybe the indicator developer can provide you with a function that exposes the indicator values. This could be closed code,
but you would be able to call it from a strategy.