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)
Access to indicator from strategy in Multicharts.Net
I am trying to code an strategy in Multicharts.Net which needs information of the value of an indicator, and send orders based on that value. I have read that Multicharts.Net 9,1 allow access to indicators from within a strategy, but I haven't found how to do that.
So lets say I have an indicator called somevalue that takes different values based o prices, I want an strategy that put a buy order when the somevalue indicator has one value, for example, buy at somevalue value + 15. How can I accomplish that?
Thanks
Can you help answer these questions from other members on NexusFi?
Thanks for the answer. It was supossed that version 9 of Multicharts would have a 'native' way to do that. The post you link, talks about complicated aproaches before this is 'natively' supported. As 9 version is what I have, my question is: does it have been implemented in version 9 or still is neccessary to do those workarounds?
I don't think there is an approach that doesn't require any programming. However I am not sure what this "native" solution that you are referring to is. The only thing that comes to mind would be "StrategyInfo.GetPlotValue()" and "StrategyInfo.SetPlotValue()".
When I say native, I mean that you can reference an indicator from an strategy without write the code of the indicator on the strategy and without have to modify the code of the indicator.
For example, if there is an indicator called RSI, something into the strategy code like:
valueofsi = RSI[0].Value would be the code to store the actual value of the RSI indicator into a variable used by the strategy.
That is what I don't know if is possible. Of course, if it is, the way to do won't be that, but if something like that exists, I would like to know how to do. Maybe StrategyInfoPlotvalue can do the trick.
as far as I am aware the study on study functionality (that would not require programming) is only available for regular MC, but not MC.NET. Having said that I am not aware of any way within MC.NET that doesn't require at least
some programming to exchange the values, but you might want to contact the MC support directly to make sure.