Cambio valores al cambiar de timeframe

 
Buenas tardes,
Tengo un indicador que me presenta en pantalla:
- El Balance Inicial
- El Balance Actual
- El Balance Neto
Normalmente opero en TimeFrame 1M y me permiten conocer cómo evoluciona el Balance de la cuenta.
Me ocurre que al cambiar de TimeFrame a 5M, por ejemplo, se reinicializan los valores del indicador.
¿Me podrías indicar por qué me pasa esto?
Gracias anticipadas,
 
febrero59:

Sin ver el código no podemos ayudarle.

Debe compartir código usando el botón 'Código'.


 
Aquí está la solución con variables globales de terminal. https://www.mql5.com/en/forum/392818#comment_28877130
Change values when changing timeframe
Change values when changing timeframe
  • 2022.04.05
  • www.mql5.com
Good afternoon, I have an indicator that shows me on the screen: - The Initial Balance - The Current Balance - The Net Balance Normally I operate i...