BULLMANIA
Sign in
Sign in
BullScript™ reference / strategy / strategy.opentrades
Docs / BullScript™ reference / strategy / strategy.opentrades

strategy.opentrades

strategy.opentrades

strategy.opentrades is a BullScript™ variable 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.opentrades

The script enters long on bar 0 and leaves that position open. On a 20-bar daily book, bar 0 logged 0 and bar 19 logged 1.

Previousstrategy.openprofit_percentNextstrategy.opentrades.capital_held