// pullback levels for different profits before leverage settableWithVar double profitLevel1; settableWithVar double callback1; settableWithVar double profitLevel2; settableWithVar double callback2; settableWithVar double profitLevel3; settableWithVar double callback3; settableWithVar double profitLevel4; settableWithVar double callback4; swappable MultiCallbackJuicer makeJuicer() { new MultiCallbackJuicer j; for (int i = 1; i <= 4; i++) { double profitLevel = toDouble(get(this, "profitLevel" + i)); double callback = toDouble(get(this, "callback" + i)); if (profitLevel != 0 || callback != 0) j.addLevel(profitLevel, callback); } ret j; }
Began life as a copy of #1036390
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036535 |
Snippet name: | MultiCallbackJuicer maker include |
Eternal ID of this version: | #1036535/6 |
Text MD5: | 420cf43ea65edf31f1b3a18106ebb216 |
Author: | stefan |
Category: | javax / gazelle 22 |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-01-24 18:08:20 |
Source code size: | 692 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 168 / 191 |
Version history: | 5 change(s) |
Referenced in: | [show references] |