strategy.position_entry_name

strategy.position_entry_name

strategy.position_entry_name 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.position_entry_name

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