Libraryless. Click here for Pure Java version (10890L/60K).
static L<TradingCandle> mergeEveryNCandles(int n, L<TradingCandle> candles) { ret map(chunks(n, candles), chunk -> new TradingRun(chunk).asCandle()); }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1036495 |
| Snippet name: | mergeEveryNCandles - convert candles to lower granularity |
| Eternal ID of this version: | #1036495/1 |
| Text MD5: | 8da89dc3597cdce6aa8e50585e5852b5 |
| Transpilation MD5: | 81d0e1e862126cae20cf32abdec944ba |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-12-27 18:25:48 |
| Source code size: | 155 bytes / 3 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 464 / 573 |
| Referenced in: | [show references] |