I have already solved it, I save the constant in a variable in the On Init event and then I compare it every 0.5 sec. If I modify it in the Properties box, I already detect it. Thanks
Latest posts made by digimax
-
RE: Update variables when modifying parametersposted in Questions & Answers
-
RE: Update variables when modifying parametersposted in Questions & Answers
I only read the parameters on init, when I load the bot.
But if I go to parameters and accept the changes, the bot does not go through the On Init event.
With the On init event I pass that parameter (constants) to Variable.What I want is to detect when the user presses the OK button in the parameter box
-
Update variables when modifying parametersposted in Questions & Answers
Good,
is there an option that detects the modification of parameters.
Currently I modify some constant from the parameters menu and the bot is not updated
Thank you very much
####################Buenas,
hay alguna opción que detecte la modificación de parámetros.
Actualmente modifico alguna constante desde el menú parámetros y no se me actualiza el bot.Gracias
-
RE: divergencia con stocasticposted in Questions & Answers
Vale gracias pues a ver si encuentro algo que valga la pena. Gracias
-
RE: divergencia con stocasticposted in Questions & Answers
Sí es cierto, yo estaba probando con uno que se llama DiverStoch creo. Pero ni le funciona la alerta ni va actualizando según avanza el gráfico la parte del stoc. donde muestra una flecha verde o roja. Intenté modificar el código en metaeditor pero sin éxito.
Si sabe de algún indicador que funcione bien de Diverg-Stoch avíseme porque ya estoy cansado de probar y probar y la es una pena porque éste marcaba muy bienSaludos
-
RE: Mostrar Profit de Grupo "Profit Group"posted in Questions & Answers
@l-andorrà interesante tu ejemplo. Al final he usado los buckets pero en vez de filtrar por color he filtrado por grupo y funciona perfecto. Lo actualizo cada tick.
Lo de Each position entiendo es por cada operación. Yo voy a abrir 2 o tres posiciones y me interesa calcular el profit de esas posiciones juntar, vamos filtrar por magicnumber+id_grupo. En otra pestaña a va trabajar el mismo bot pero tendré que filtrar por magicnumber+grupo. A ver como va saliendoMuchas gracias
-
RE: Mostrar Profit de Grupo "Profit Group"posted in Questions & Answers
Ayer estuve viéndolo pero me hace falta el importe de ese profit. Yo en ese bloque solo veo una comparación. En que campo podría poner la variable desde lo voy a leer para enviarlo al gráfico??
He probado con Bucket of trades mediante el color. Funciona pero va con retraso. En que bloque lo metería ontimer?, onTick,on Trade, on chart .? He probado "on trade" y que vaya actualizando la variable pero no va bien y on tick va en cada tick pero no creo que sea lo correcto. -
Mostrar Profit de Grupo "Profit Group"posted in Questions & Answers
Buenas,
a ver si alguien sabría como mostrar el profit de determinadas operaciones que se encuentren en un mismo grupo , es decir, filtrando por MagicNumber+grupo.
Necesitaría simplemente el valor del profit, después lo grabaría en una variable y luego con el bloque comment lo mostraría en el gráfico.
Muchas gracias
Good,
Let's see if someone would know how to show the profit of certain operations that are in the same group, that is, filtering by MagicNumber + group.
I would simply need the value of the profit, then I would save it in a variable and then with the comment block I would show it on the chart.
Thank you
-
RE: divergencia con stocasticposted in Questions & Answers
@l-andorrà Buenas no el problema persiste. Efectivamente he probado lo que dice, he probado en varias velas 0,1,2.. el problema es el indicador da señales falsas o bien no actualiza como debiese...buscaré otro a ver que tal va