Transpiled version (52L) is out of date.
interface PriceCells { bool isCellLimit(double price); // next-higher cell limit or NaN if no more cells double nextCellLimit(double price); // next-lower cell limit or NaN if no more cells double previousCellLimit(double price); // go n steps down double nCellLimitsDown(double price, int n); // go n steps up double nCellLimitsUp(double price, int n); // convert to "cell space" (0=first cell limit, 1=next cell limit, -1=previous cell limit etc) double priceToCellNumber aka toCellNumber(double price); double cellNumberToPrice aka fromCellNumber(double cellNumber); default double basePrice() { ret cellNumberToPrice(0); } }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036205 |
Snippet name: | PriceCells - defines fixed price levels (finitely or infinitely many) |
Eternal ID of this version: | #1036205/7 |
Text MD5: | b882e620069466a7abbbefd85697c44f |
Author: | stefan |
Category: | javax / trading |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-11-19 11:54:46 |
Source code size: | 696 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 133 / 201 |
Version history: | 6 change(s) |
Referenced in: | [show references] |