Lowest low since open
-
I would like to be able to move the SL to the lowest low since a trade was opened after it is x pips in profit. Is this possible?
I can see how to get the lowest low for the past x candles but how do I get it from when the trade was opened? And then use this level as a stop level?
-
try working with on Trade section
-
@miro1360 I can see there are different blocks available when using the On Trade section. I can't see how these will give me the information I need?
Are you able to point me in the direction of what blocks I should be looking to use?
-
when trade Buy was opened, save lowest low price from past 10 candles into variable for further use:

based on that you can do much more things and much complicated
you can working together in all "sections" ... -
@miro1360 Thanks. That gives me an idea of how to try this.
I’m not looking for the lowest low prior to the trade being placed but the lowest low after the trade has been placed. I.e. the trade goes into drawdown say 20 pips, then goes into unrealized profit of 30 pips, I want to move the stop loss to the point where the trade was in open loss of 20 pips.
-
aha, you need something another ....
...
forget for on Trade section
...
in on Tick just monitor trade with few blocks and one switch ...
https://fxdreema.com/shared/6PWieuFpb
(some of blocks order are important) ....
-
Thanks again for your help @miro1360
I assume your example was just to give me some idea as to how to build what I'm looking for as I can't see that the modify stops is to the lowest low but simply to 30 pips from open price.
I have made something that seems to work but is probably a lot more convoluted that how you would have made it https://fxdreema.com/shared/SSrMBlBsc. Without your example I wouldn't have know to use the Modify Variables blocks.
-
I have made the following that appear to do what I want it to do. https://fxdreema.com/shared/cdNR1HvTb
- trail stop by 1 pip every 1 pip in profit.
- if trade is >= 15 pips in profit then move SL to lowest price (for buy trade) since trade was opened (rounded up to nearest 5 pips).
This works well in test and most of the time in live.
Sometimes in live it only trails the stop but doesn't move to lowest price when 15 pips in profit. Some other times it moves SL to a point that is less than lowest price since trade opened.
Would @miro1360, @fxdreema have a look and see if they agree with the logic please?
Could it be that in a fast moving market the steps don't work?
I haven't been able to replicate the issues in test that I have in live trading.
-
-
-
your problem can have many factors, even live trading ... because some brokers dont allow scalp trading (they have antiscalp plugins which detects fast trading and reject some request) ...
or your problem have some logic base, I dont know because your project have a lot of blocks and I am not able to read it all and find error
you should add some "log" blocks between another blocks and in that way looking for error (where it stucks) ... or also you can look for some errors in terminal from broker ...