Added some stuff.

This commit is contained in:
2017-01-20 17:03:50 +01:00
parent 563e902613
commit ba557179c7
5 changed files with 100 additions and 39 deletions

View File

@ -46,7 +46,7 @@ public class RandomTrader extends AutoTrader {
sesim.Exchange.Account a = se.getAccount(account_id);
long rc = this.doTrade();
return rc / 3;
return rc / 600;
}
@ -66,7 +66,7 @@ public class RandomTrader extends AutoTrader {
public long timerTask() {
sesim.Exchange.Account a = se.getAccount(account_id);
long rc = this.doTrade();
return rc / 33;
return rc / 28;
// return this.event();
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, tobias
* Copyright (c) 2017, 7u83
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -31,18 +31,18 @@ import sesim.Exchange;
/**
*
* @author tobias
* @author 7u83
*/
public class RandomTraderConfig extends AutoTraderConfig {
public float[] sell_volume = {100, 100};
public float[] sell_limit = {-1f, 1f};
public int[] sell_order_wait = {1000, 5000};
public float[] sell_limit = {-3, 3};
public int[] sell_order_wait = {500, 1500};
public int[] wait_after_sell = {10, 30};
public float[] buy_volume = {100, 100};
public float[] buy_limit = {-1, 1f};
public int[] buy_order_wait = {1000, 5000};
public float[] buy_limit = {-1, 3};
public int[] buy_order_wait = {500, 1500};
public int[] wait_after_buy = {10, 30};
@Override