Reply

[Question] Stop trading if you lose a trade.

1 replies

Jairo Bernal

Subscriber, bbp_participant, 6 replies.

Visit profile

1 week ago #280964

I would like to know how I can stop that day’s trading in case of a losing trade, and resume trading the next day.

How can I make this configuration in algowizard?

0

tomas262

Administrator, sq-ultimate, 1 replies.

Visit profile

1 week ago #280972

Hi,

it is simply done in AlgoWizard using a variable. Add a new condition that checks using the function Closed P/L (magic) …. IF StopTradingToday = 0 AND Closed PnL < 0 then set variable StopTradingToday = 1.

Setup another condition tab that says IF Day[1] <> Day[2] to detect midnight and use action to set the variable value StopTradingToday = 0

Modify the entry signal so the it fires only if StopTradingToday = 0 and entry condition is matched

1

Viewing 2 posts - 1 through 2 (of 2 total)