The streaming indicator works with lists of values. For example, let's write an indicator that takes two lists and displays one list with average values:
usingSystem.Collections.Generic;usingTSLab.Script.Handlers;namespaceMyLib{ [HandlerCategory("MyLib")] [HandlerName("HandlerStream")] [InputsCount(2)] [Input(0,TemplateTypes.DOUBLE,false,"list1")] [Input(1,TemplateTypes.DOUBLE,false,"list2")] [OutputsCount(1)] [OutputType(TemplateTypes.DOUBLE)]publicclassHandlerStream:IStreamHandler {publicIList<double> Execute(IList<double> list1,IList<double> list2) {var result =newdouble[list1.Count];for (int i =0; i <list1.Count; i++) {result[i] = (list1[i] +list2[i]) /2; }return result; } }}