"IndicatorShortName("BIAS("+MAPeriod+")"); " always works, but "SetIndexLabel(0,"BIAS"); " not. I don;t know why, because i think they should all work well.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Below code comes from an indicator's code, and I think the red codes and blue codes are the same, but in the fact very different.
the red code gets the line as 'A' and blue code gets the line as 'B':
A:
B:
in addition, i find add label by two methods as below:
"IndicatorShortName("BIAS("+MAPeriod+")"); SetIndexLabel(0,"BIAS"); "
"IndicatorShortName("BIAS("+MAPeriod+")"); " always works, but "SetIndexLabel(0,"BIAS"); " not. I don;t know why, because i think they should all work well.