How to do it with many variables
-
I have this strategy for losing positions, which works fine, but it works for a buy position and a sell position (a variable for each one), and they have to be closed to use it again with new positions, because when closed resets the value of the variable, that is, it is unoccupied.
How can I do it to have several variables, at least 3 buy and 3 sell, and ideally save them in memory: https://fxdreema.com/shared/3xtPZESee -
@rodrigo-ortuzar Why are you using all blocks on the 'on chart' tab and not on the 'on tick' one? That way you would be able to reinitiate variables more easily.
-
The mistake was mine, I was working "on chart" with a EA to generate the coverage and I sent it without realizing it. It works but block 12 brings me the wrong volume value and I don't know how to correct it.
I also want to use "Draw Arrow" to detect a bad block directly, see: https://fxdreema.com/shared/JTVSmyBlbYou are right the one I want to do multi variable has to go in "on Tick" But I still can't do it: https://fxdreema.com/shared/chp0EsLje
Can you enlighten me on these problems ?
-
@rodrigo-ortuzar Before moving one I recommend you this:
-
Do not use all those 'draw arrow' blocks at the same time. In order to check where a problem is you just need one only draw arrob block and then connect it below each block to test BUT disconnecting all blocks below it before. Otherwise you will never be sure the problem is there. Once the checking is correct, tou conect the next block to test, disconnect all the other below and then try it again with the draw arrow one.
-
The yellow output dot of the 'for each trade' block does not work as per those on the 'condition' blocks. If you read the block info you'll see it is used once the loop is completed. This means all those blocks connected there need to be connected to the orange output dot instead.
-
-
Ok l'andorrà, I'm sending you the loss strategy corrected, but this time for 2 buy variables and 2 sell variables. Let me know if you see something weird: https://fxdreema.com/shared/QPhsXYZtd.
I want to parameterize the configuration of this closing strategy with trailing stop in EURUSD so that it opens or starts to work with a positive profit and that when it starts, it places the Stop Loss only when it is greater than 0 profit. Can you help me with the corresponding variables? I put 2 alternatives, I don't quite understand the lagi
ca: https://fxdreema.com/shared/jPPkjXuCb -
@rodrigo-ortuzar Blocknumber 1 is making the same mistake I described on point 2 of my previous post. Yellow output dots on 'for each trade' blocks DO NOT work like that on a 'Condition' blocks. Please read the block info. You are separating buys and sells incorrectly that way.
-
Si, tienes razón, mi inglés es muy malo y en la estrategia de pérdida había entendido el bloque amarillo en lugar del punto amarillo, pero ahora sí: https://fxdreema.com/shared/32Txlye0d
Necesito ayuda para parametrizar la configuración de esta estrategia de cierre con trailing stop en EURUSD:
1.-Para que abra o empiece a funcionar con una ganancia positiva y que cuando arranque y coloque el Stop Loss solo cuando sea mayor a 0 ganancia.
¿Me pueden ayudar con las variables correspondientes? Pongo 2 alternativas, no entiendo bien la logica: https://fxdreema.com/shared/jPPkjXuCb -
@rodrigo-ortuzar No acabo de entender lo que necesitas exactamente. A primera vista, no es buena idea usar esos bloques de 'trailing stop' deonde están ahora, ya que son bucles que buscaran todas las ioperaciones abiertas, y no sólo als que tu necesitas. Puedes usar un ejemplo numérico para que sea más fácil de entender, por favor?
-
Hola perdona por la demora, te mando la información:
1.- Un TS para la suma de todas las posiciones abiertas y un TS para cada posición abierta.
Ejemplo:
1 pip = 0,05 diferencia del precio y el T_Step = 1 pip

Pero una vez alcanzado el T_Start (1,6500) y coloque el T_Stop SL (1,5500) este se mueva solo para arriba o se cierra la posición. Esto es lo que necesito indicarle al TS y no se si esta bien !
https://fxdreema.com/shared/T6vnbi7gc -
@rodrigo-ortuzar ¿Pero se trata entones de dos precios separados? SI lo entiendo bien, el TS para todas las posiciones abiertas sería un mismo nivel de precio de SL para todas ellas. ¿Correcto? Entonces no entiendo por qué necesitas otro nivel de SL distinto para cada una por separado si se supone que el anterior es conjunto para las mismas.
-
Por que 1ero si no se alcanza el T_Start para todas las posiciones, en 2do lugar si se puede alcanzar para algunas posiciones individuales y es to va sumando beneficios. También puede ser así !
https://fxdreema.com/shared/XtlKldE9c
Mi pregunta es cual es la orden en el Trailing Stop grupal y individual cuando el comercio va en contra para que el SL no se mueva. -
@rodrigo-ortuzar Me temo que lo que pides no es posible. Le estás exigiendo al EA que considere dos stops por operación. Uno grupal y otro individual por operación. Eso no es posible. Una operación sólo puede tener uno.
-
Entonces así estaría bien para un SL y que no se mueva hacia abajo, sea grupal o individual ?
https://fxdreema.com/shared/1Pcf5eLGb -
@rodrigo-ortuzar El problema sigue siendo el mismo. No le puedes pedir a una misma operación que tengo dos valores de stop loss. Sólo tendrá uno, siempre. Otra cosa distinta es que dicho stop loss puede moverse en dos escenarios distintos. Eso sí que seróa posible, pero entonces volvemos al problema del SL grupal. Si todas las operaciones van a tener siempre el mismo SL, luego no podrán tener un SL diferente sin que entren en conflico. Deberás escoger entre una de las dos opciones únicamente.
-
Clarísimo, gracias
-
@rodrigo-ortuzar De nada.