hi
i 've a chart with signal and indicator
i want to know signal's name from the indicator
i try to use GetStrategyName but i get indicator's name and not signal's name
get symbol name from indicator
- Svetlana MultiCharts
- Posts: 645
- Joined: 19 Oct 2017
- Has thanked: 3 times
- Been thanked: 163 times
Re: get symbol name from indicator
Hello, turbofib,
There is no direct way to get the signal's name from the indicator.
You can try using Global Variables to achieve it:
https://www.multicharts.com/trading-sof ... _Variables
For example, assign the name through the Global Variable in the indicator and then get it in the signal.
Indicator:
Signal:
There is no direct way to get the signal's name from the indicator.
You can try using Global Variables to achieve it:
https://www.multicharts.com/trading-sof ... _Variables
For example, assign the name through the Global Variable in the indicator and then get it in the signal.
Indicator:
Code: Select all
var: b(0);
GVSetString(b, "12345");
Code: Select all
var: b(0);
var: s1("");
s1 = GVGetString(b);
print(s1);