Button that makes SL move closer to price
-
How do I make a button that makes the SL move a certain amount of pips closer to price?
-
create button on init - on tick button pressed (condition block, button state == 1) - select trade with a pink for each trade block - move stops with a pink modify stopes block - re-draw button
-
Thanks. Also is it possible to make an ea that doesn’t let trades exceed a certain amount of loss? Even a very small amount if any?
-
Yes but how do you mean?
-
@jstap
The orders don’t loose more than a specific dollar amount. -
Also what’s the maximum I can set my orders to not lose?
-
Set a SL, or set a close trades when loss is too much
-
@jstap
How to do the close trades when loss is a certain amount? -
various ways, condition block, profit < x.xx - close block
This will check the combined total profit and close all
-
@jstap
What’s the minimum loss I can possibly say for the trade to close? -
It is your choice, doing it that way should account for the total profit, but you have a chance that things like slippage will cause a loss
-
@jstap
Wow that’s cool. So if I wanted I could say the max loss is 0? -
If you set it to 0 it would try to close at breakeven, will likely cause a small loss though
-
@jstap
Even though it’s 0 it could still close at a loss? -
Yes because at breakeven price the close signal is sent, but by the time things close price may have moved into a slight loss
-
@jstap
Oh that makes sense, thanks. -
@BrianaM1
It could move into a slight win, but on average a loss is more likely