Transpiled version (9648L) is out of date.
static Color directionToCandleColor(double direction, Color zeroColor default Color.white) { ret direction < 0 ? colorFromHex("f1493f") : direction > 0 ? colorFromHex("1da2b4") : zeroColor; }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1036272 |
| Snippet name: | directionToCandleColor |
| Eternal ID of this version: | #1036272/2 |
| Text MD5: | 4ba471f2012495c2e791fe327219be02 |
| Author: | stefan |
| Category: | javax / gazelle 22 |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2023-03-13 19:31:40 |
| Source code size: | 205 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 404 / 510 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1036393 - candleColorOnWhite - black as zero-profit |