第2点 请参阅python api 教程第6节: https://gitee.com/dolphindb/api_python3/blob/master/README_CN.md#6-%E8%BF%BD%E5%8A%A0%E6%95%B0%E6%8D%AE%E5%88%B0dolphindb%E6%95%B0%E6%8D%AE%E8%A1%A8
第3点 请参阅k线计算教程https://gitee.com/dolphindb/Tutorials_CN/blob/master/OHLC.md
计算过程写在GUI内,调试完成后可写入startup.dos,详见:启动脚本教程https://gitee.com/dolphindb/Tutorials_CN/blob/master/Startup.md 和节点启动时的流计算自动订阅教程
https://gitee.com/dolphindb/Tutorials_CN/blob/master/streaming_auto_sub.md
4. 在python api中启动订阅,请参阅 python api 教程第10节 Python Streaming API部分