Using indicators inside a signal object  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
Denis
Posts: 2
Joined: 22 May 2013
Has thanked: 1 time

Using indicators inside a signal object

Postby Denis » 22 May 2013

Hello,

How can I instantiate an indicator object in my signal code to use the indicator values for calculations ?

Thx

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Using indicators inside a signal object  [SOLVED]

Postby Henry MultiСharts » 22 May 2013

Hello Denis,

You need to place your indicator calculation logic into your signal code in order to perform the calculation based on original indicator values. You can also create the function that will do the calculation you need and then utilize it from your code.

We are going to add ability to reference the values of one study from the other study in one of the future versions of MultiCharts .Net.

Denis
Posts: 2
Joined: 22 May 2013
Has thanked: 1 time

Re: Using indicators inside a signal object

Postby Denis » 23 May 2013

Thank you for your reply,

Happy to read this, do you plan to create also a kind of a "strategy" class that can contain multiple signalobjects interacting one with each other ?
This could be usefull too.

Thx
Denis

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Using indicators inside a signal object

Postby Henry MultiСharts » 23 May 2013

When multiple signals are applied to the same chart - they create a single strategy, same-direction orders generated by different signals are assigned priority relative to each other based on the order that the signals appear under the Signals tab in the Format Objects window. Please refer to the followong page for more information: How Scripts Work


Return to “MultiCharts .NET”