Hello Scriptor, Although you published TMA_Extreme_line_indicator some time ago, I have just discovered it… And I love it !!! I am trying to use it to automate some operations, using iCustom to fill an array and get the values of the middle line into some variables. However, I am not able to get the values of the middle line in mode “redraw INPUT_YES”. I can only get the values of the “redraw INPUT_NO”, even when I represent the indicator in INPUT_YES. This is the code I am using:
Would you be so kind to let me know if I am missing something in the code to be able to get to fill the variables TMA_1, TMA_2 & TMA_3 with the “redraw INPUT_YES” values? Or , Would it be possible to get the indicator re-written so that these values become accessible? Many thanks.
lostsergio #: Hello Scriptor, Although you published TMA_Extreme_line_indicator some time ago, I have just discovered it… And I love it !!! I am trying to use it to automate some operations, using iCustom to fill an array and get the values of the middle line into some variables. However, I am not able to get the values of the middle line in mode “redraw INPUT_YES”. I can only get the values of the “redraw INPUT_NO”, even when I represent the indicator in INPUT_YES. This is the code I am using:
Would you be so kind to let me know if I am missing something in the code to be able to get to fill the variables TMA_1, TMA_2 & TMA_3 with the “redraw INPUT_YES” values? Or , Would it be possible to get the indicator re-written so that these values become accessible? Many thanks.
¿Sería posible tener una regla de coloración de las velas basada en el indicador para que cuando salga de las bandas empiece a colorearlas para compra o venta?
Soy nuevo en las plataformas MT... ¡Gracias! ¿Hay alguna manera de incorporar alertas de cambio de color en el código? ¡Voy a aprender cómo, por favor, diríjame! Gracias por codificar este :-)
Cuando utilizo este indicador con Redraw configurado en YES, dibuja las líneas maravillosamente. Pero estoy escribiendo un EA y CopyBuffer() siempre devuelve los valores como si se establece en Redraw NO.
He estado mirando este hermoso indicador de canal durante mucho tiempo. Era increíble cómo detecta el canal. Miré el código - oops. El indicador cuenta sólo con datos históricos, pero si hay una posibilidad, mira hacia adelante al tamaño de la TMA. Wow, que movimiento :)))
Although you published TMA_Extreme_line_indicator some time ago, I have just discovered it… And I love it !!!
I am trying to use it to automate some operations, using iCustom to fill an array and get the values of the middle line into some variables.
However, I am not able to get the values of the middle line in mode “redraw INPUT_YES”. I can only get the values of the “redraw INPUT_NO”, even when I represent the indicator in INPUT_YES.
This is the code I am using:
enum ENUM_INPUT_YES_NO
{
INPUT_YES = 1, // Yes
INPUT_NO = 0 // No
};
input TMAPeriods = 20
input TMA_ATRPeriods = 20
input TMA_ATRWidth = 3
input ENUM_INPUT_YES_NO InpRedraw = INPUT_YES; // Redraw
double TMA[];
int TMAControlPanel;
double TMA_1, TMA_2, TMA_3;
int OnInit()
{
ArraySetAsSeries(SlowTMADATA,true);
TMAControlPanel = iCustom(_Symbol, PERIOD_CURRENT, "TMA_Extreme_line_indicator", TMAPeriods, TMA_ATRPeriods, TMA_ATRWidth, INPUT_YES);
}
void OnDeinit(const int reason)
{
IndicatorRelease(TMAControlPanel);
}
void OnTick()
{
CopyBuffer(TMAControlPanel, 0, 0, 5, TMADATA);
TMA_1 = NormalizeDouble(TMADATA[1],6);
TMA_2 = NormalizeDouble(TMADATA[2],6);
TMA_3 = NormalizeDouble(TMADATA[3],6);
}
Would you be so kind to let me know if I am missing something in the code to be able to get to fill the variables TMA_1, TMA_2 & TMA_3 with the “redraw INPUT_YES” values?
Or , Would it be possible to get the indicator re-written so that these values become accessible?
Many thanks.
Hello Scriptor,
Although you published TMA_Extreme_line_indicator some time ago, I have just discovered it… And I love it !!!
I am trying to use it to automate some operations, using iCustom to fill an array and get the values of the middle line into some variables.
However, I am not able to get the values of the middle line in mode “redraw INPUT_YES”. I can only get the values of the “redraw INPUT_NO”, even when I represent the indicator in INPUT_YES.
This is the code I am using:
enum ENUM_INPUT_YES_NO
{
INPUT_YES = 1, // Yes
INPUT_NO = 0 // No
};
input TMAPeriods = 20
input TMA_ATRPeriods = 20
input TMA_ATRWidth = 3
input ENUM_INPUT_YES_NO InpRedraw = INPUT_YES; // Redraw
double TMA[];
int TMAControlPanel;
double TMA_1, TMA_2, TMA_3;
int OnInit()
{
ArraySetAsSeries(SlowTMADATA,true);
TMAControlPanel = iCustom(_Symbol, PERIOD_CURRENT, "TMA_Extreme_line_indicator", TMAPeriods, TMA_ATRPeriods, TMA_ATRWidth, INPUT_YES);
}
void OnDeinit(const int reason)
{
IndicatorRelease(TMAControlPanel);
}
void OnTick()
{
CopyBuffer(TMAControlPanel, 0, 0, 5, TMADATA);
TMA_1 = NormalizeDouble(TMADATA[1],6);
TMA_2 = NormalizeDouble(TMADATA[2],6);
TMA_3 = NormalizeDouble(TMADATA[3],6);
}
Would you be so kind to let me know if I am missing something in the code to be able to get to fill the variables TMA_1, TMA_2 & TMA_3 with the “redraw INPUT_YES” values?
Or , Would it be possible to get the indicator re-written so that these values become accessible?
Many thanks.
Cuando utilizo este indicador con Redraw configurado en YES, dibuja las líneas maravillosamente. Pero estoy escribiendo un EA y CopyBuffer() siempre devuelve los valores como si se establece en Redraw NO.
¿Alguien más ha tenido este problema?
Saludos Pete
INPUT_YES = 1, // Sí
INPUT_NO = 0 // No
He estado mirando este hermoso indicador de canal durante mucho tiempo. Era increíble cómo detecta el canal. Miré el código - oops. El indicador cuenta sólo con datos históricos, pero si hay una posibilidad, mira hacia adelante al tamaño de la TMA. Wow, que movimiento :)))