File tree 3 files changed +5
-2
lines changed
java/com/mtheory7/wyatt/mind
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
<groupId >com.mtheory7</groupId >
7
7
<artifactId >wyatt</artifactId >
8
- <version >7.3.3 </version >
8
+ <version >7.4.0 </version >
9
9
<packaging >jar</packaging >
10
10
11
11
<name >wyatt</name >
Original file line number Diff line number Diff line change @@ -54,8 +54,10 @@ public class Wyatt {
54
54
55
55
@ Value ("${initialInvestment}" )
56
56
private Double INITIAL_INVESTMENT ;
57
+
57
58
@ Value ("${versionValue}" )
58
59
private String VERSION ;
60
+
59
61
@ Value ("${developmentMode}" )
60
62
public void setDevelopmentMode (boolean mode ) {
61
63
DEVELOPMENT_MODE = mode ;
@@ -361,7 +363,8 @@ public void predictAndTrade() {
361
363
CalcUtils .roundTo ((currentPrice - Double .valueOf (openOrder .getPrice ())), 2 );
362
364
logger .trace (
363
365
"Current buy back: " + currentMarginPercent + "% ($" + buyBackDifference + ")" );
364
- if (currentMarginPercent > 10.0 ) {
366
+ if (currentMarginPercent > 10.0
367
+ || (System .currentTimeMillis () - openOrder .getTime ()) > 432000000 ) {
365
368
logger .trace ("Deciding to submit a market buy back at $" + currentPrice );
366
369
if (!DEVELOPMENT_MODE ) {
367
370
executeMarketBuyBack ();
You can’t perform that action at this time.
0 commit comments