How can i create max daily profit and trailing stop loss
-
Hey
Hope you all fine,
I want some help regarding Max daily profit and loss, and trailing stop loss of max daily profit.
Examples:
EA close all trades and stop trading if profit is 5k$ for that day, same with loss
Example for trailing stop loss of max daily profit:
If account is in profit of 2k$ on that day trailing stop loss activate and close all trades and stop trading if account will come at breakeven
@jstap reply if possible -
@talalkhan There is a block called check profit (period of time) or take your balance daily and save in variable, add day win and save in variable, subtract day loss and save in variable, use condition block to check if equity = either variable, close all and stop trading by something like a flag.
As for start trail use a condition block with the number used to start trail, in the on tick tab use a purple trade closed block and stop trading when conditions match.
Reset all in the next day.
-
@jstap Like This ? But how can i change - into plus for loss value?
https://fxdreema.com/shared/HwF2YevQd
Trying to solve problem number one firstAnd for problem number 2 (Trailing equity stoploss) i am still clueless what should i do
-
@talalkhan This looks like it should work, put stop trade into a comment so you can visually see if it;s working, if not you can see what process isn't working.
-
@jstap thank alot
What should 1 do for equity trail stop loss? -
@talalkhan You need to decide the equity level that and use this to start the trail, tou could record the balance as trade activates then check equity to start trail, use a bool condition and put the settings in the trail block that suites.
-
@jstap I want to trail as percentage like if 200k account is in maximal profit of 2k trail activate and stop loss should be 1% of total equity,
Can you give me live example on my project: https://fxdreema.com/shared/9O74KvfMc -
@talalkhan Starting trail is easy, when equity = your amount start tail, as for using % of equity I do not know, I have only use set pips to trail.
-
@jstap sir which block will start trail for equity?
-
@talalkhan A standard condition block if equity => set amount start trail block.
-
@jstap
which block used for trail ?

-
@talalkhan On mt4 I would use trailing stop (each trade).
-
@jstap sorry but trailing equity stop loss is not working
i want for equity not for trades, this block is showing pips not equity -
@roar , @timmyhanke
Can you guys help me regarding this? -
Someone please hep me?

i want a setup like this

-
There are few Trailing stop blocks for different purposes. The one that is mostly used is the "(each trade)" one that works on each trade separatedly. I think you don't need this one.
Try the others. But if you don't like them as well, then it can only be something with multiple pink blocks. Here are few examples with them, but they require some understanding of how they work: https://fxdreema.com/examples#Loop-(For%20each...)
Or, if you want to get some values from multiple trades (for example the total profit), take a look at the "Bucket" blocks: https://fxdreema.com/examples#Bucket-of...