Trade management functions run at every tick and are bound to their trade, which implies some restrictions. Data series can not be created in a TMF, and indicators creating data series can not be called. A TMF should only handle its own trade: it must not contain trade enumeration loops or access other trades, but it can open new trades with enterLong/Short (Zorro 1.16 and above). The current candle is incomplete, so its range and height is normally smaller than the other candles; the last full candle has the index 1. The price functions can be called, but their open, high, or low prices do not reflect a full candle, but are in relation to the bar begin. Use TradePriceOpen or TradePriceClose for getting the current price of the asset.