READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

[Question] Stop trading if you lose a trade.

1 replies

Jairo Bernal

Subscriber, bbp_participant, sq-ultimate, 7 replies.

Visit profile

3 years 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

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

3 years 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 1 replies (of 1 total)