...
This commit is contained in:
@@ -63,13 +63,12 @@ object ConfigTable : Table("app_config") {
|
||||
val grade_2_allocationrate = double("grade_2_allocationrate").default(0.4)
|
||||
val grade_1_allocationrate = double("grade_1_allocationrate").default(0.3)
|
||||
|
||||
val take_profit = bool("take_profit").default(false)
|
||||
val stop_Loss = bool("stop_Loss").default(false)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
val loss_minrate = double("loss_minrate").default(3.5)
|
||||
val loss_maxrate = double("loss_maxrate").default(10.0)
|
||||
val loss_max_money = double("loss_max_money").default(10000.0)
|
||||
|
||||
|
||||
|
||||
@@ -284,6 +283,11 @@ object DatabaseFactory {
|
||||
GRADE_3_ALLOCATIONRATE = it[ConfigTable.grade_3_allocationrate],
|
||||
GRADE_4_ALLOCATIONRATE = it[ConfigTable.grade_4_allocationrate],
|
||||
GRADE_5_ALLOCATIONRATE = it[ConfigTable.grade_5_allocationrate],
|
||||
stop_Loss = it[ConfigTable.stop_Loss],
|
||||
take_profit = it[ConfigTable.take_profit],
|
||||
loss_min = it[ConfigTable.loss_minrate],
|
||||
loss_max = it[ConfigTable.loss_maxrate],
|
||||
loss_money = it[ConfigTable.loss_max_money],
|
||||
MAX_COUNT = it[ConfigTable.max_count],
|
||||
)
|
||||
}
|
||||
@@ -329,7 +333,11 @@ object DatabaseFactory {
|
||||
it[grade_3_allocationrate] = config.GRADE_3_ALLOCATIONRATE
|
||||
it[grade_2_allocationrate] = config.GRADE_2_ALLOCATIONRATE
|
||||
it[grade_1_allocationrate] = config.GRADE_1_ALLOCATIONRATE
|
||||
|
||||
it[stop_Loss] = config.stop_Loss
|
||||
it[take_profit] = config.take_profit
|
||||
it[loss_maxrate] = config.loss_max
|
||||
it[loss_minrate] = config.loss_min
|
||||
it[loss_max_money] = config.loss_money
|
||||
it[max_count] = config.MAX_COUNT
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user