I have find out how to calculate ENTRY of second trade. The problem now is , EA wrongly calculate lot size. It calculate as it is <0 value

This is the set up

and this is SELL PENDING ORDER

I have find out how to calculate ENTRY of second trade. The problem now is , EA wrongly calculate lot size. It calculate as it is <0 value

This is the set up

and this is SELL PENDING ORDER

or maybe something like this needs to be modified
https://fxdreema.com/shared/X93K2tjJ
I was wondering if "pips away from SL" might works here. When set up 200% from SL it would be my level of entry,but don't know how to take the value from that block and paste it into "open at price" tab.
Something like this
https://fxdreema.com/shared/liId9QWTd
I've worked on it and it looks like it's almost done.
What is completed in 2nd stage: I added pending orders , SL of second trade is at place where is TP of first trade (works correctly) . TP is calculated correctly (4:1) .
Just one thing is not working properly...ENTRY point of second trade.
In the tab for pending orders > "open at price price" - data to adjust Entry is taken correctly from TP of previous trade, however it can only be set by pips (PRICE OFFSET) , so the question now is how to adjust it in % value,or maybe there is other way to figured it out
https://fxdreema.com/shared/QR0C8fURc
heh "l'andorrĂ " looks like You place the comment when I was writing mine 
Heh no one ? Is it that complex ?
Yes , both trades open at the same time
Hey all.
Did few very basic EA's , but struggle with one thing which looks too advance for me and don't really know how to solve it.Please advice me.
Want to open 1 trade LONG/SHORT with SL based on previous candle low/top and TP 4:1 (400% of SL)
When Bullish candle - BUY with SL on candle low
When Bearish candle - SELL with SL on candle high
this part is easy however I struggle at this point
Want to open second trade which is going to be pending order in opposite direction than first trade (don't want to close first trade)
ENTRY at place where is 2:1 of first trade
with SL at place where is TP of first trade
TP for this trade also will be 4:1 (400% of SL)
Due to the fact SL and TP of first trade is set up by % ,would be nice to avoid other measurements like pips.
I'm at this point
https://fxdreema.com/shared/HCWEgSdbb
I have a feeling that "pips away from take profit" or "trailing" might be solution,however don't really know how they works.