How to close all trades in a day if you reached an amount loss or amount profit and close all trades till next day.
-
-
@acen-0 ?
-
@acen-0 This is the general structure for you to do that:
-
this is not want I want. Imagine I loss in day (sum of loss and profit trades) 400€, then do not trade till next day, the same thing for a profit day.
Thanks -
define 2 variable and 1 constant
variable = daybalstart
variable = balplustarget
constant = daytargetOnTick
2 Blocks
once per bar(daily)
modify 2 variables
-(daybalstart) choose Account Balance
-(balplustarget) choose Account Balance then adjust it by just typing +daytarget4 Blocks
once per bar (1m)
condition (account balance >= value of balplustarget)
close positions
turn off trade blocks2 Blocks
once per bar (daily)
turn on trade blockssomething like that.
-
How do I join your channel..
Thanks -
@acen-0 Sorry. Substitute block 6 by a 'check profit (unrealized)' block instead.