# Cancel GTC order via Seetu?

**URL:** <https://forums.collective2.com/t/cancel-gtc-order-via-seetu/11159>\
**Category:** Seetu\
**Created:** [November 29, 2017, 6:26pm UTC](https://forums.collective2.com/t/cancel-gtc-order-via-seetu/11159 "2017-11-29T18:26:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jTrader](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/jtrader/32/13320_2.png) [@jTrader](https://forums.collective2.com/u/jTrader)\
**Post date:** [November 29, 2017, 6:26pm UTC](https://forums.collective2.com/t/cancel-gtc-order-via-seetu/11159/1 "2017-11-29T18:26:09Z")

</div>

Let’s say you use a limit BTO order via a Seetu strategy that has a TIF of GTC… is there a way to cancel it via the Seetu strategy the following bar if it doesn’t fill?

---

<div class="post-metadata">

**Author:** ![BobSvan2](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/bobsvan2/32/21391_2.png) [@BobSvan2](https://forums.collective2.com/u/BobSvan2)\
**Post date:** [November 29, 2017, 7:43pm UTC](https://forums.collective2.com/t/cancel-gtc-order-via-seetu/11159/2 "2017-11-29T19:43:48Z")

</div>

There is no CancelSignal there.

Perhaps this helps you:  
The `C2TradingSignal` command has parameters `CancelsAt` and `CancelsAtRelative`

**CancelsAt** can be used this way to cancel your signals (for example) at 13:30:00:

```
//Cancel at 13:30:00 on the Collective2 side
cancel = DateTimeConvert( 2, DateNum(), 133000 ); 
// C2TradingSignal(sigBTC, sigFilter=Cover,CancelsAt=cancel); // sigFilter just for debugging!
C2TradingSignal(sigBTC, CancelsAt=cancel); // no sigFilter for RunIt!

```

This is a result:

 ![inline-2062169289](https://canada1.discourse-cdn.com/flex028/uploads/collective2/original/2X/4/498d05f92a425bb9934e7a6dd8ac8ef61c6d7a2c.png)

**CancelsAtRelative** is a number of seconds.  
It cancels your signal at the time it was sent plus the number of seconds.  
This column is not visible in the Trading signals grid, but it works.

Both params can be used also for conditional signals in the `C2TradingSignalCond` command.

So you can cancel your signals on the Collective2 side at the particular time.

---

<div class="post-metadata">

**Author:** ![jTrader](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/jtrader/32/13320_2.png) [@jTrader](https://forums.collective2.com/u/jTrader)\
**Post date:** [November 29, 2017, 7:44pm UTC](https://forums.collective2.com/t/cancel-gtc-order-via-seetu/11159/3 "2017-11-29T19:44:59Z")

</div>

That’s it. Perfect. Thank you.

---

<div class="post-metadata">

**Author:** ![jTrader](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/jtrader/32/13320_2.png) [@jTrader](https://forums.collective2.com/u/jTrader)\
**Post date:** [November 29, 2017, 8:07pm UTC](https://forums.collective2.com/t/cancel-gtc-order-via-seetu/11159/4 "2017-11-29T20:07:07Z")

</div>

> [@BobSvan2](#):
>
> // C2TradingSignal(sigBTC, sigFilter=Cover,CancelsAt=cancel); // sigFilter just for debugging!

Okay, one thing I can’t figure out in the Seetu interface… how do you get the signals on the Signals tab? I can get results for all the other tabs: Scan, Explore, Statistics, Trades, Equity. I have C2TradingSignal with the sigFilter in my code. Still nothing.

---

<div class="post-metadata">

**Author:** ![BobSvan2](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/bobsvan2/32/21391_2.png) [@BobSvan2](https://forums.collective2.com/u/BobSvan2)\
**Post date:** [November 30, 2017, 5:55pm UTC](https://forums.collective2.com/t/cancel-gtc-order-via-seetu/11159/5 "2017-11-30T17:55:32Z")

</div>

To see your signals in the grid, use filters like this:

C2TradingSignal(sigBTO, sigFilter=Buy, [your other params here] );  
C2TradingSignal(sigSTC, sigFilter=Sell, [your other params here] );  
C2TradingSignal(sigSTO, sigFilter=Short, [your other params here] );  
C2TradingSignal(sigBTC, sigFilter=Cover, [your other params here] );

You shoud stop RunIt while you are playing with that.  
If your strategy will run in the background while you have filters like above, then all generated signals will be sent to your strategy.

---

<div class="post-metadata">

**Author:** ![jTrader](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/jtrader/32/13320_2.png) [@jTrader](https://forums.collective2.com/u/jTrader)\
**Post date:** [November 30, 2017, 8:46pm UTC](https://forums.collective2.com/t/cancel-gtc-order-via-seetu/11159/6 "2017-11-30T20:46:02Z")

</div>

> [@BobSvan2](#):
>
> CancelsAtRelative is a number of seconds.

Hey Bob,

I was testing CancelsAtRelative. Got an email notification of a trading signal at 2:32pm central. I checked the Seetu Run It logs and confirmed the CancelsAtRelative was set to ‘50’. It was a limit order, and I watched the order sit in the “working” state in my system until 2:38 (and did several refreshes to ensure it hadn’t gone through), at which point I manually cancelled it. So I don’t think CancelsAtRelative is working.
