strategy.risk.max_intraday_loss

strategy.risk.max_intraday_loss

strategy.risk.max_intraday_loss is a BullScript™ function you can use in a strategy. The editor offers it. If the name is not known, the script stops on that line.

Example#

bullscript
strategy.risk.max_intraday_loss(10, strategy.cash)

The script enters long on bar 0 and closes that entry on bar 3. strategy.risk.max_intraday_loss compiled, and the script ran to the end of a 20-bar daily book.