do not open operations
-
Hello, I would like to achieve something very simple but that I have not yet been able to do. That is, when a certain market condition is met, the signal of any indicator, this prevents the opening of new operations, for example selling, but does not prevent the opening of operations in the opposite trend, for example buying. I do not know if I have explained it well, thank you very much.
-
@fran Not sure I fully understand. Can you please be more specific?
-
@l-andorrà Es muy sencillo, simplemente lo explicado anteriormente. Pero no se qué módulo usar para evitar que el EA abra nuevas operaciones en determinada tendencia, Buy o Sell. Tan solo pretendo hacer eso, que transcurrida determinada señal el EA no pueda abrir nuevas operaciones en la tendencia especificada. A su vez, colocaría un bool “True/False” en Constants para activar o desactivar dicho mecanismo; pero esto último no es el problema, sé cuál es el proceso para realizar lo expuesto. Lo que no consigo descubrir es cuál sería el modulo a colocar para que se ejecute la acción última de “no trading Sell (o Buy)”, por decirlo de alguna forma. O sea, que mientras determinados indicadores y “True/False” estén activos, no puedan abrirse nuevas operaciones en Buy o Sell.
Un Saludo y nuevamente felicidades por la excelente aplicación y gracias por la atención prestada. -
@fran Siempre puedes crear nuevas variables true/false que detengan la estructura de lanzamiento de operaciones mientras hay esas condiciones no se aplican en este momento. No necesitas un bloque concreto. Basta con que añadas una condición más que sea false cuando no sean todas las otras ciertas y true cuando seá así.
-
@l-andorrà Gracias por la respuesta, seguiré investigando a ver cual es la mejor forma de hacerlo.
-
@fran De nada. No dudes en volver si necesitas más ayuda.
-
In the end I have spent a little time trying to do this. It really is something very simple and it may seem silly but I am attaching the formula in case it helps someone at some point. It only deals with an example with random values, the conditions in which the cessation of new openings must take place depend on particular needs. The important thing here is that when the "bool" is activated in "True" and some particular conditions are met (to be specified according to the need), all this converging within an AND module, according to the described way, the EA will not open operations. A semiautomatic way of operating that maybe some other user will be interested in. link text
-
@fran Thank you very much for sharing.