Skip to content

Commit

Permalink
Improved parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
xCryptoTools committed Apr 24, 2023
1 parent 3dc8a07 commit c4ea78c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
$bybit['derivate_symbol_to_buy'] = 'DOGEUSDT'; // Symbol to buy
$bybit['quantity_to_buy'] = 1000;

// Set to false to only buy if there is no active trade on the symbol yet. Can prevent double trades
$bybit['only_buy_if_not_active'] = true;
// Set to true to only buy if there is no active trade on the symbol yet. Can prevent double trades
$bybit['only_buy_if_no_position'] = true;

// Stop loss and Take profit. Percentages are the move of the underlying ticker (excluding leverage!)
$bybit['stop_loss_percentage'] = 5; // Example: '5'. Can be set to false to disable stop loss.
Expand Down
2 changes: 1 addition & 1 deletion doge-twitter-php-bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

// Place ByBit trade if needed
if ($tweet_contains_keyword === true && $bybit['enable'] === true) {
if ($bybit['only_buy_if_not_active'] === false || bybit_has_open_position($bybit) === false) {
if ($bybit['only_buy_if_no_position'] === false || bybit_has_open_position($bybit) === false) {
bybit_order($bybit);
}
}
Expand Down

0 comments on commit c4ea78c

Please sign in to comment.