Gunthy

GUNBOT: The automatic profit generator => Technical Support & Development => Topic started by: Hampden on August 28, 2020, 04:55:17 PM

Title: TradingView add on: Can limit sell orders be placed with a rate?
Post by: Hampden on August 28, 2020, 04:55:17 PM
On the wiki, the BUY command allows for setting a rate:

BUY_EXCHANGE_USDT-BTC_amount_rate

Is there a reason why there is not a corresponding command format for sell limit orders such as (SELL_EXCHANGE_USDT-BTC_amount_rate)?
Title: Re: TradingView add on: Can limit sell orders be placed with a rate?
Post by: Aitor on August 28, 2020, 06:23:43 PM
As you said, there isn't amount rate for selling. Anyway, once the selling conditions are met, the most logical move is to sell ALL. Personally that's what I do, and, tbh, if the selling conditions are met, I don't see the point on selling just a %, it just slows down the bot and would make things worse IMO.
Title: Re: TradingView add on: Can limit sell orders be placed with a rate?
Post by: Hampden on August 29, 2020, 05:50:02 AM
Thanks for the reply.  My interest is more in making a limit sell order at a specified rate rather than selling some fraction of a lot I own.

For currencies with low volume on an exchange, a market sell order could drive down the price.  The market orders also have higher commissions.  If I could place a limit sell order, that could allow time for the small market to sync up with the global price.

If this can't be done with the existing command set, I would like to request this feature be added to future versions.

Thanks !
Title: Re: TradingView add on: Can limit sell orders be placed with a rate?
Post by: Aitor on August 29, 2020, 03:37:35 PM
By default, orders are sent as market orders. When you want to send limit orders instead, disable "Use market orders" parameter. Buy orders are then sent at a limit price of the best bid order in the order book, sell orders are placed at the rate of the best ask price.
Title: Re: TradingView add on: Can limit sell orders be placed with a rate?
Post by: Hampden on August 29, 2020, 08:47:17 PM
Thanks Aitor.  This is what I've been doing with the market orders turned off.

If the market is moving down quickly, a sell limit may never fill.

I can see a use case where someone would want to set a sell limit price at say 99.8% of the last offer price.  This way at least some of the order would fill if the market is crashing.  This is important on smaller exchanges where a large market order may consume a large fraction of the order book.