Libraryless. Click here for Pure Java version (31195L/198K).
sclass G22CandleBasedStrategyWithTrailingStop extends G22CandleBasedStrategy { !include #1036461 // JuiceStrategy Include !include #1036562 // TrailingStopJuicer maker include void price(double price) { juiceStrategy_price(price); super.price(price); } LS status() { ret listCombine( "Stop loss: " + stopLoss + ", trailing stop: " + trailStart + "/" + callbackRate, super.status() ); } }
Began life as a copy of #1036462
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1036561 |
| Snippet name: | G22CandleBasedStrategyWithTrailingStop (can also do simple take profit) |
| Eternal ID of this version: | #1036561/5 |
| Text MD5: | a49e6abf8e5caa9a027b35e0d5d1fbc6 |
| Transpilation MD5: | 07e4041d65f01badecc89cb88fea46f7 |
| Author: | stefan |
| Category: | javax / trading |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2023-04-01 11:02:06 |
| Source code size: | 448 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 719 / 875 |
| Version history: | 4 change(s) |
| Referenced in: | #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167) |