formula distance
-
Can you calculate the distance between each trade with the "formula" block?
-
Do you mean distance in pips? An then between what? Open price? TP? SL?
-
@l-andorrà between each open trade.
for example if I use the "add volume" block and an trade is opened at 70 pips away and another at 50 pips away. (always changes according to the candle close)or maybe how to know the total distance from the first trade.
I need a code or formula to automatically calculate the distance.

-
So, If I understand correctly, you will have an initial trade (trade 0) already active and you want to know the distance in pips for several later trades (trade 1, trade 2, etc.), from opening price to opening price. Correct?
How many trades after trade 0 will need to be calculated?
-
@l-andorrà Yes, or calculate the last open trade. (whatever it is will serve me, I'm doing testing)
Or if it is possible to calculate the distance between the last open trade and the current take profit.what happens is that I need to do a calculation to get a take profit from several open trades.
Every time a new trade opens, the take profit is approaching.Also what I would like to try is to add the main take profit to the break even.
from break even + add Take profit (I do not speak much English, Speak spanish) -
No es trivial eso que pides. Yo creo que lo que deberías haver es capturar en una variable cada uno de los precios de entrada que deseas comparar, para luego hacer los cálculos de distancias entre ellos. El problema es que veo que aun no tienes decidido qué combinaciones de cálculos quieres, y eso puede hacer que varíe, y mucho, la estructura de cálculo que necesites. ¿Tienes ya algún proyecto en marcha que puedas mostrar para echarle un primer vistazo?
-
pls answer this. -
@kestra Well, it was me who was asking for information. I don't think I can answer what I didn't know.
Is what you need related to this thread? If so, can you be more specific, please? -
OK, i think its exactly, let say i already have a open trade and i want to open several trades 100 points away from the current opened trade . say trade 0 is opened at 1.2345, then trade 1 will be opened exactly when price reaches +100 points and trade 2 will be +100 points from 1.
-
I ALSO HAVE ANOTHER QUESTION! THOUGH HAVE POSTED IT FEW MINUTES AGO, ITS!;;;;;;;;;;;;;;;;;;; HOW TO ADJUST THE STOP LOSS OF A TRADE, LETS SAY A BUY TRADE, TO ADJUST THE STOP LOSS TO 30% OF THE CANDLE ID 2 BODY SIZE LOWER THAN THE CANDLE ID 2 OPEN.
-
You can do this for a buy trade and add as many 'buy pending order' blocks below it at different distances.

-
IS IT POSSIBLE NOT TO MAKE IT A PENDING ORDER, BUT WOULD JUST BE INSTANT AS SOON AS PRICE REACHES THAT LEVEL ? SO PENDING ORDERS WONT FILL THE SCREEN.
-
Yes, but then you will have to create as many variables as 'new prices' you will need, as well as calculating each new proce level, of course.
-
pls sir share me an example
-
PLS ANSWER THIS ;;;;;;;;;;;;;;;; I ALSO HAVE ANOTHER QUESTION! THOUGH HAVE POSTED IT FEW MINUTES AGO, ITS!;;;;;;;;;;;;;;;;;;; HOW TO ADJUST THE STOP LOSS OF A TRADE, LETS SAY A BUY TRADE, TO ADJUST THE STOP LOSS TO 30% OF THE CANDLE ID 2 BODY SIZE LOWER THAN THE CANDLE ID 2 OPEN.
-
You need to create two trade groups. Group 1 is for the first open trade and group 2 for all the future open trades. I created this for buys only:
https://fxdreema.com/shared/PZmZg67rd
Please notice that I didn't include the 'buy now' block creating the Group 1 trade. I assume you already have in your project.