Не рисует.
{quote} Thank you for sharing the updated version of the TMAcentered Macd indicator. I've got a question, how can I determine programmatically what color the indicator currently has ?{/quote}
Вопрос (пер-д): Я хочу узнать когда TMAcentered Macd indicator меняет цвет. Как это сделать?
Ответ: Просто читайте сигналы на его буферах (пример ниже).
input int FastHalfLength = 50;
input int SlowHalfLength = 100;
input int Price = PRICE_CLOSE;
int SgTMA = 0;
-------------------------
...
...
SgTMA = 0;
double SgTMAUp = iCustom(Symbol(), 0, "TMAcentered MACD v1.2", FastHalfLength, SlowHalfLength, TMAPrice, 0, 1);
double SgTMADn = iCustom(Symbol(), 0, "TMAcentered MACD v1.2", FastHalfLength, SlowHalfLength, TMAPrice, 1, 1);
if (SgTMAUp != EMPTY_VALUE) SgTMA = 1; // Buy
if (SgTMADn != EMPTY_VALUE) SgTMA =-1; // Sell
// Update the version of the indicator. This version give Digits+1 decimal points.
And the program "ind_iCustom_TFS_v1s" that will receive the data "TMA centered MACD v1.2" from another timeframe.
Example for data from H1 to M15: Set "eurusd_m15-h1_tma_macd_center.set" for "ind_iCustom_TFS_v1s".
С помощью ind_iCustom_TFS_v1s можно смотреть сигналы TMA centered MACD v1.2 со старших ТФ на младшем.
Тоже не рисует.