API ReferenceNamespacesstrategyFunctionscloseAllOn this pageFunction: closeAll() closeAll(onBarClose?, comment?, alertMessage?, disableAlert?): void Market-close everything and cancel every pending order. Parameters onBarClose? bool = false comment? string = "" alertMessage? string = "" disableAlert? bool = false Returns void