Gunthy

GUNBOT: The automatic profit generator => Technical Support & Development => Topic started by: Hampden on June 05, 2020, 02:05:18 AM

Title: TradingView add on question: How to cancel a limit order?
Post by: Hampden on June 05, 2020, 02:05:18 AM
From the wiki page (https://wiki.gunthy.org/setup-and-general-settings/preferences/tradingview-add-on (https://wiki.gunthy.org/setup-and-general-settings/preferences/tradingview-add-on)), I understand that a limit buy order can be placed using the syntax:

BUY_EXCHANGE_USDT-BTC_amount_rate

I assume that would be a maker order on the exchange's books that would fill only when the price drops to the specified rate.

Is it possible for TradingView to issue an alert that cancels that limit order so a new limit buy order can be placed with a different rate?
Title: Re: TradingView add on question: How to cancel a limit order?
Post by: Aitor on June 16, 2020, 10:54:10 PM
From the wiki page (https://wiki.gunthy.org/setup-and-general-settings/preferences/tradingview-add-on (https://wiki.gunthy.org/setup-and-general-settings/preferences/tradingview-add-on)), I understand that a limit buy order can be placed using the syntax:

BUY_EXCHANGE_USDT-BTC_amount_rate

I assume that would be a maker order on the exchange's books that would fill only when the price drops to the specified rate.

Is it possible for TradingView to issue an alert that cancels that limit order so a new limit buy order can be placed with a different rate?

You can't post a new order that makes the old open order to be cancelled. There are ways to cancel open orders, maybe you can get something similar to what you are looking for:

https://wiki.gunthy.org/setup-and-general-settings/preferences/bot-settings#cancel-orders-enabled