Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1036118 // TradingSignal

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (9824L) is out of date.

sclass TradingSignal {
  settable S coin;
  settable bool isLong;
  settable Timestamp timestamp;
  settable TradingRun afterRun;
  
  toString {
    S text = (isLong ? "Long" : "Short") + " signal for " + coin + " at "
      + timestamp;
    if (afterRun != null)
      text += " after " + formatDouble2X(afterRun.changePercent()) + "% run";
    ret text;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036118
Snippet name: TradingSignal
Eternal ID of this version: #1036118/6
Text MD5: 207ab6504c320a471b58c2e89300999d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-22 18:45:26
Source code size: 375 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 11 / 40
Version history: 5 change(s)
Referenced in: [show references]