From f1621ed1ac72fd653e2944c9e64341ba0183ee29 Mon Sep 17 00:00:00 2001 From: Brummel Date: Mon, 30 Mar 2026 10:54:48 +0200 Subject: [PATCH] Update data_stream_print.myc --- examples/data_stream_print.myc | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/examples/data_stream_print.myc b/examples/data_stream_print.myc index 079f8c3..9e4bfe7 100644 --- a/examples/data_stream_print.myc +++ b/examples/data_stream_print.myc @@ -1,7 +1,7 @@ ;; Skip: data output to stdout (do - (def EURUSD (create-m1-stream "EURUSD" (date "2020-01-03 09:30:00") (date "2020-01-03 17:30:00"))) - (def GER40 (create-m1-stream "GER40" (date "2020-01-03 09:30:00") (date "2020-01-03 17:30:00"))) + (def EURUSD (create-m1-stream "EURUSD" (date "2020-01-03 09:30:00") (date "2020-01-03 13:30:00"))) + (def GER40 (create-m1-stream "GER40" (date "2020-01-03 09:30:00") (date "2020-01-03 13:30:00"))) ;; Sink: print returns void, so nothing is propagated downstream @@ -19,19 +19,4 @@ ) ) ) - - ; TODO: IDEE - pipe mit automatischer Value-Akkumulation: pipe - - (pipe 2 [EURUSD GER40] - (fn [eu ge] - (do - ; eu und ge werden hier zu Serien mit lookback 2 - (def dax (.close (ge 0))) - (push gs dax) - (def eur (- dax (ge 1))) - (print cnt ": dax=" eur " (" (/ eur (.close (eu 0))) "$)" ) - (assign cnt (+ cnt 1)) - ) - ) - ) )