Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
tkowalczyk committed Sep 2, 2020
1 parent 744dde8 commit 5aaf301
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions SolBo/SolBo.Agent/solbo.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"exchange": {
"name": "Binance",
"apikey": "",
"apisecret": ""
"apikey": "kSVkSTk5vGjyPfetIFu4TyeMTGB5t6xXWAZ7Tbb9CrdgiIfEzBNPPhA7uLUqsT1J",
"apisecret": "Trr5ErUENlE2A6pCzdni8ObyEmjYoBfo4KyVwA5tyFTPKlQsv1xKsGnSohfRJxbw"
},
"strategy": {
"activeid": 1,
Expand All @@ -14,12 +14,12 @@
"average": 5,
"averagetype": 0,
"selltype": 0,
"commissiontype": 1,
"buydown": 1,
"sellup": 1,
"stoplossdown": 1.5,
"commissiontype": 0,
"buydown": 0.00000200,
"sellup": 0.00000300,
"stoplossdown": 0.00000400,
"stoplosspausecycles": 0,
"fundpercentage": 50,
"fundpercentage": 100,
"clearonstartup": false
}
]
Expand Down
2 changes: 1 addition & 1 deletion SolBo/SolBo.Shared/Rules/Mode/ModeProductionRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public IRuleResult RuleExecuted(Solbot solbot)
{
_rules.Add(new AccountExchangeRule(binanceClient));

if (solbot.Strategy.AvailableStrategy.IsStopLossOn)
if (solbot.Strategy.AvailableStrategy.IsStopLossOn && solbot.Actions.BoughtBefore)
{
_rules.Add(new StopLossStepMarketRule(_marketService));
_rules.Add(new StopLossPriceMarketRule());
Expand Down

0 comments on commit 5aaf301

Please sign in to comment.