Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1036495 // mergeEveryNCandles - convert candles to lower granularity

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (10890L/60K).

1  
static L<TradingCandle> mergeEveryNCandles(int n, L<TradingCandle> candles) {
2  
  ret map(chunks(n, candles), chunk -> new TradingRun(chunk).asCandle());
3  
}

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: 166 / 214
Referenced in: [show references]