Files
RustAst/examples/data_stream_pipe_series.myc
T
Brummel 9013f262ce Add egui_extras dependency
Adds `egui_extras` to Cargo.toml and Cargo.lock to enable enhanced table
widgets.
Also introduces a new `StateTab` enum and integrates the
`egui_extras::TableBuilder` to display global variables in a structured
table within the application's state panel. This enhances the debugging
and introspection capabilities of the compiler UI by providing a clear
view of the environment's global state.
2026-03-30 15:41:25 +02:00

19 lines
504 B
Plaintext

;; Skip: data output to stdout
(do
(def EURUSD (create-m1-stream "EURUSD" (date "2020-01-03 09:30:00") (date "2020-01-03 10:00:00")))
(def GER40 (create-m1-stream "GER40" (date "2020-01-03 09:30:00") (date "2020-01-03 10:00:00")))
(def cnt 1)
(pipe-series 2 [EURUSD GER40]
(fn [eu ge]
(do
(def dax (.close (ge 0)))
(def eur (- dax (.close (ge 1))))
(print cnt ": dax=" eur " (" (/ eur (.close (eu 0))) "$)" )
(assign cnt (+ cnt 1))
)
)
)
)