- ago
CODE:
public virtual List<string> Companions

Can the companion indicator be same as main indicator but with different params? (Will it cause infinite loop?)
Can the parameters to companion indicator be passed in companions string in brackets (Example : "MySMA(20)")?
Example:
Main indicator MySMA
Companion indicator MySMA(20)
0
356
4 Replies

Reply

Bookmark

Sort
Glitch8
 ( 9.00% )
- ago
#1
I've never tried it actually, would be interesting to hear if it works if you're attempting it!
0
- ago
#2
Works fine, buf passing parameters in brackets is not allowed. Passing "MySMA" works ok and produces the same indicator twice, but it would be great to have a possibility to pass a parameter "MySMA(50)".
0
- ago
#3
We've coded hundreds of indicators and never had the need to do so. Could you let us know why you think it would be great?
0
- ago
#4
Drag one indicator set it's params and it calculates automatically params for some other indicators and instantiates them. One drag and you got complete setup of indicators. Maybe it can be done not with help of Companions... Just discovered Companions and thought that will be the easiest way
0

Reply

Bookmark

Sort