Hello,
How can I instantiate an indicator object in my signal code to use the indicator values for calculations ?
Thx
Using indicators inside a signal object [SOLVED]
- 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]
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.
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.
Re: Using indicators inside a signal object
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
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
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Using indicators inside a signal object
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