Stop all Trading for the day
-
I need an EA that stops all trading on chart till the next day when the daily profit gets to a certain amount...
-
check profit (period of time) < value above buy/sell, check profit (period of time) > value above close block (or without if you want the trade to run until profit)
-
@jstap I don't really get please can I get an explanation using actual blocks... And also this EA is just going to be an EA that ensure all other EA's on the charts close at a profit of a certain number of profit and ensure they do not open any that day till the next...
-
@Ben-Romewel Do you mean an EA closing other EAs on different charts? You will need custom code for that.
-
@Ben-Romewel Create your project, add a shared link saying what's not working.
-
I use Turn off/on block for this.
-
@jstap https://fxdreema.com/shared/8A1TtTNMd
This is what i did but seams like it doesn't work -
You can use flags, you can turn blocks on/off, or you can put check blocks above buy/sell. But you need to make sure block IDs match with what you are doing:

-
@jstap

changed the the block id...what can i do next???? -
Test and see what's working, add a shared link to look at and explain any problems.
-
I used a global variable to track trades and checked it before allowing new ones. Then I reset it at midnight with a time filter and a variable set block.