Libraryless. Click here for Pure Java version (31195L/198K).
1 | sclass G22CandleBasedStrategyWithTrailingStop extends G22CandleBasedStrategy {
|
2 | !include #1036461 // JuiceStrategy Include |
3 | !include #1036562 // TrailingStopJuicer maker include |
4 | |
5 | void price(double price) {
|
6 | juiceStrategy_price(price); |
7 | super.price(price); |
8 | } |
9 | |
10 | LS status() {
|
11 | ret listCombine( |
12 | "Stop loss: " + stopLoss + ", trailing stop: " + trailStart + "/" + callbackRate, |
13 | super.status() |
14 | ); |
15 | } |
16 | } |
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: | 720 / 877 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |