This script is called once per day for each trade record in its instrument file, before the entry and exit orders are placed into the market. It runs for all instruments and has instrument and IPV and Indicator access.

 

Use instrument.tradesOnTradeBar property when you need to know if the instrument has a trade record for this date.