Hola, tengo inconvenientes con este código
Int índice =iHighest (NULL, 0, MODE_HIGH, 76,39);
Técnicamente me tendría que devolver un valor entre 76-39, pero de devuelve 108, ya probé con rangos como 50-20, 81-17, pero todas me dan una barra fuera del rango que establezco.
Agradecería su ayuda
- EA forex muy rentable
- EA forex muy rentable (30% a 60%)
- HistorySelect works not properly
jxtok:
Hola, tengo inconvenientes con este código
Hola, tengo inconvenientes con este código
Int índice =iHighest (NULL, 0, MODE_HIGH, 76,39);
Técnicamente me tendría que devolver un valor entre 76-39, pero de devuelve 108, ya probé con rangos como 50-20, 81-17, pero todas me dan una barra fuera del rango que establezco.
Agradecería su ayuda
Lee mejor la descripción https://www.mql5.com/es/docs/series/ihighest
Documentación para MQL5: Acceso a las series temporales y a los datos de indicadores / iHighest
- www.mql5.com
[in] Identificador de la serie temporal en la que se realizará la búsqueda. Puede ser cualquiera de los valores de ENUM_SERIESMODE. [in] El número de elementos de las series temporales (en la dirección que va desde la barra actual hacia el aumento del índice), entre los cuales se debe realizar la búsqueda. [in] Índice (desplazamiento con...
jxtok:
Hello, I have problems with this code
Hello, I have problems with this code
Int index = iHighest (NULL, 0, MODE_HIGH, 76,39);
Technically I would have to return a value between 76-39, but it returns 108, I already tried with ranges like 50-20, 81-17, but they all give me a bar outside the range I set.
I'd appreciate your help
This is an English language forum.
Please only post in English.
Use the translation tool if necessary.
jxtok:
Int index = iHighest (NULL, 0, MODE_HIGH, 76,39);Technically I would have to return a value between 76-39, but it returns 108, I already tried with ranges like 50-20, 81-17, but they all give me a bar outside the range I set.
- You misunderstand what 76,39 means. It is not the range [76…39].
It is starting at 39 for 76 items or [114…39] (39+76-1=114). This is why you got 108.
If you want the range [76…39] then you would use 38,39 since 76-39+1=38
- Please post only in English on this forum. Use the automatic translation tool if needed. Use simple language structure when using mechanical translation.
-
Why did you post your MT4 question in the
Root /
MT5 Indicators
section
instead of the MQL4 section,
(bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon. - When you post code please use the CODE button (Alt-S)!
(For large amounts of code, attach it.)
Please edit
your (original) post.
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register