It depends on how the script trades. For Z8, stock splits are no problem since it trades position based and thus always knows the right number of shares to sell. But normal scripts do not care of stock splits. Non-NFA brokers will close the whole position with exitLong(), NFA brokers will close only half the position. So the script itself must take care of stock splits and adjust the position and exit limits accordingly.