How to EA- turn off Auto Trading disable after profit got hit
-
Hello, I need help I wanted to create an Bot/EA that turns off "AUTO TRADING" after an specific Profit target got hot. I need the tunr AUTO TRADING off and not the DELETE BOT than, please lemme know if you can help me.
-
I really don't think it's possible to change a terminal properties like Trade permission, why not store profit target in a variable then use it in a condition block?
-
You are better off to just stop, but if you need to control another bots actions you can follow this: https://fxdreema.com/forum/topic/19004/help-custom-mql-code?_=1729240204895
-
@go-funded Why not just blocking the bot to stop opening more trades instead of turning off auto trading? That would be far easier to do.
-
@l-andorrà my bot is written in 2 bots running on 2 charts at the same time, i want when an specific amount of Money in $ got hit that the bot is turning off (both of them) and close all floating trades
-
@padletut dont know what you mean Bro, can you explain me pls
-
You can do this with terminal variables, anything saved on the same terminal can be read and used, so between charts. In most standard blocks you can change the symbol used
-
you got an code for this?
-
I found on mql4 how to remove an EA, but it works only for the EA that the code is programmed inside, but i dont want to edit my 2 bots i just want 1 extern bot that can close 2 extern bots, you know what I mean?
-
If you add a shared link exactly what you want can be seen. to turn off other bots the only thing I can think of is in the above link to stop automatic trading.
-
What link you mean thats above?
-
-
yeah saw this link but isnt working like i want
-
Add a shared link to show exactly what you are trying to do.
-
its closing only the trades but isnt deleting the bots or anything else, and only if a specific DD/max Daily loss got it
and afterwards the EAs trading along, i tryedwhat link should i share? like there isnt anything thats working what i want, i see several people with the same prblme like me
-
Im trying to explain more precise
I got an EA written in 2 EAs running on 2 Charts at the same Time
Running from Asia to London Session
But I want !IF! a specific Profit got hit like 50$ every night that the 2 EAs running on the 2 different Charts are turning Off/stop trading, and all Floating Profit/loss is getting closed
-
@l-andorrà How do i blcok theese 2 bots?
-
It's not that simple, if these bots are FX bots amend them, if not you will have to turn auto trading off.
-
but isnt it possible with another bot or smth? that everythoing works automatically?
-
Not without turning auto trading off.