9013f262ce
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.
19 lines
504 B
Plaintext
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))
|
|
)
|
|
)
|
|
)
|
|
)
|