How to stop a strategy once day profit target is reached?
4件の返信
How to stop a strategy once day profit target is reached?
0
こんにちは、,
you need to setup a variable LastDayAccountEq and a new condition tab and store the AccountEquity end of day
Such as:
If Date[2] <> Date[1]
this catches the midnight moment when bar date switch to a new day. Add this under the new condition as “action”
Then AssignVariable (LastDayAccountEq) = AccountEquity
You can than use this value in a signal condition (Long/Short)
If (LastDayAccountEq – AccountEquity) < 100 …
As long as today’s PnL is less than 100 your signals will get fired
0
hi sir i try but error plz give me example
0
hi sir some problem in create variable
0
4件の返信を表示中 - 1 - 4件目 (全4件中)