intruduced start
This commit is contained in:
parent
2818a32f06
commit
4973868db5
@ -94,6 +94,8 @@ public class RandomTrader extends AutoTrader {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double start = 0.1;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start() {
|
public void start() {
|
||||||
@ -173,7 +175,7 @@ public class RandomTrader extends AutoTrader {
|
|||||||
double money = getRandomAmmount(ad.money, myconfig.buy_volume);
|
double money = getRandomAmmount(ad.money, myconfig.buy_volume);
|
||||||
|
|
||||||
Quote q = se.getCurrentPrice();
|
Quote q = se.getCurrentPrice();
|
||||||
double lp = q == null ? 1.0 : q.price;
|
double lp = q == null ? start : q.price;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -210,7 +212,7 @@ public class RandomTrader extends AutoTrader {
|
|||||||
// double lp = 100.0; //se.getBestLimit(type);
|
// double lp = 100.0; //se.getBestLimit(type);
|
||||||
|
|
||||||
Quote q = se.getCurrentPrice();
|
Quote q = se.getCurrentPrice();
|
||||||
double lp = q == null ? 1.0 : q.price;
|
double lp = q == null ? start : q.price;
|
||||||
|
|
||||||
|
|
||||||
double limit;
|
double limit;
|
||||||
|
Loading…
Reference in New Issue
Block a user