# LONG+SHORT

### ***Equity***

| **Signal Action**  | BUY                 | SELL                                               | SHORT                | COVER                                               |
| ------------------ | ------------------- | -------------------------------------------------- | -------------------- | --------------------------------------------------- |
| **Signal Type**    | Long Position Entry | Long Position Exit                                 | Short Position Entry | Short Position Exit                                 |
| **Order Action**   | BUY                 | SELL                                               | SELL                 | BUY                                                 |
| **Order Type**     | Entry Order         | Exit Order                                         | Entry Order          | Exit Order                                          |
| **Position Check** | No                  | Yes(Long)                                          | No                   | Yes(Short)                                          |
| **Sqr-Off Qty**    | Not Available       | If No Open Long Positions, No Order will be Placed | Not Available        | If No Open Short Positions, No Order will be Placed |

Example :&#x20;

{% embed url="<https://youtu.be/helnif3HrXM>" %}

**Buy :**&#x20;

<figure><img src="/files/D63dMCFdPxeIaiK2MJcS" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays the instrument symbol and indicates that one share of long Equity position has been bought.

<figure><img src="/files/rdQgQkx2MNgDbDdeBfIn" alt=""><figcaption><p>Positions</p></figcaption></figure>

The Positions tab indicates that we hold a long Equity position of one share in Tata chemical.

**Second Buy :**&#x20;

<figure><img src="/files/a16wlMJpXGP1LYvcUhJL" alt=""><figcaption><p>Orders</p></figcaption></figure>

&#x20;The Orders tab shows a sell order, and this sell order will exit the existing long Equity position.

<figure><img src="/files/1ddGFEwzmFvBuIQLN0FO" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that the long Tata Chemical equity position has been squared off.

**Sell :**&#x20;

<figure><img src="/files/lLImqyU116uWZAkLaDcn" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab shows a sell order, and this sell order will exit the existing long Equity position.

<figure><img src="/files/bup2OHvnHHUUuuRnimqu" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that the long Tata Chemical equity position has been squared off.

**Short :**&#x20;

<figure><img src="/files/JIM6HsyemOQ1or5AdtIB" alt=""><figcaption><p>Orders</p></figcaption></figure>

This will create a sell order for one share of Tata Chemical equity in the Orders tab.

<figure><img src="/files/LP5swdULWsRC4EjaYZHR" alt=""><figcaption><p>Positions</p></figcaption></figure>

In the Positions tab, you’ll see a short share of Tata Chemical equity.

**Cover :**&#x20;

<figure><img src="/files/5QC8f5YbybZk8HkxCswt" alt=""><figcaption><p>Orders</p></figcaption></figure>

This will create a buy order for Tata Chemical equity in the Orders tab according to the Long + Short strategy.

<figure><img src="/files/wjxsS3JVqfQMiXGjn29b" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that the short Tata Chemical equity position has been squared off.

### *Futures*

| **Signal Action**  | BUY                 | SELL                                               | SHORT                | COVER                                               |
| ------------------ | ------------------- | -------------------------------------------------- | -------------------- | --------------------------------------------------- |
| **Signal Type**    | Long Position Entry | Long Position Exit                                 | Short Position Entry | Short Position Exit                                 |
| **Order Action**   | BUY                 | SELL                                               | SELL                 | BUY                                                 |
| **Order Type**     | Entry Order         | Exit Order                                         | Entry Order          | Exit Order                                          |
| **Position Check** | No                  | Yes(Long)                                          | No                   | Yes(Short)                                          |
| **Sqr-Off Qty**    | Not Available       | If No Open Long Positions, No Order will be Placed | Not Available        | If No Open Short Positions, No Order will be Placed |

Example :&#x20;

{% embed url="<https://youtu.be/RMKTDkLTyl8>" %}

**Buy :**&#x20;

<figure><img src="/files/mvheYyXouFdw0ZvBJiTb" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays the instrument symbol and indicates that one lot of long future position has been bought.

<figure><img src="/files/c4h8N1SkxXW2dtsFSz1i" alt=""><figcaption><p>Positions</p></figcaption></figure>

The Positions tab indicates that we hold a long Futures position of one lot in ITC.

**Second Buy :**&#x20;

<figure><img src="/files/DgjJCHPwePSnMi0dsJW9" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Order tab Updates with a second buy order.

<figure><img src="/files/zVP2ofXLqxHM9WflWp8i" alt=""><figcaption><p>Positions</p></figcaption></figure>

The Positions tab shows a total of two long lots of ITC Futures.

**Sell :**&#x20;

<figure><img src="/files/AYcufvg7YQfXUgg9ereQ" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab shows a sell order, and this sell order will exit the existing long futures position.

<figure><img src="/files/8a0OUPLGcHQoyp5V5Jti" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that the long ITC Futures position has been squared off.

**Short :**&#x20;

<figure><img src="/files/QDnIyPucAuP1vDEb2kqQ" alt=""><figcaption><p>Orders</p></figcaption></figure>

This will create a sell order for one lot of ITC futures in the Orders tab.

<figure><img src="/files/j5w8MEogvIbbjEv5TUk6" alt=""><figcaption><p>Positions</p></figcaption></figure>

In the Positions tab, you’ll see a short lot of ITC futures.

**Cover :**&#x20;

<figure><img src="/files/Sv5nFCmaNqlzK0Y5UjoY" alt=""><figcaption><p>Orders</p></figcaption></figure>

This will create a buy order ITC futures in the Orders tab according to the Long + Short strategy.

<figure><img src="/files/aIdEGBkiTRt65JwSzPT9" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that the short ITC Futures position has been squared off.

### *Options*

| **Signal Action**  | BUY                 | SELL                                               | SHORT                | COVER                                               |
| ------------------ | ------------------- | -------------------------------------------------- | -------------------- | --------------------------------------------------- |
| **Signal Type**    | Long Position Entry | Long Position Exit                                 | Short Position Entry | Short Position Exit                                 |
| **Order Action**   | BUY                 | SELL                                               | SELL                 | BUY                                                 |
| **Order Type**     | Entry Order         | Exit Order                                         | Entry Order          | Exit Order                                          |
| **Position Check** | No                  | Yes(Long)                                          | No                   | Yes(Short)                                          |
| **Sqr-Off Qty**    | Not Available       | If No Open Long Positions, No Order will be Placed | Not Available        | If No Open Short Positions, No Order will be Placed |

Example :&#x20;

{% embed url="<https://youtu.be/iipjpUg78gA>" %}

**Buy :**&#x20;

<figure><img src="/files/Nugfavnc1qjJaamXS1YJ" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays the instrument symbol and indicates that a call option has been bought.

<figure><img src="/files/2N7yG9pA6JxHX59IsTYA" alt=""><figcaption><p>Positions</p></figcaption></figure>

The Positions tab indicates that we hold a long position of 1 lot in BankNifty call options.

**Second Buy :**&#x20;

<figure><img src="/files/zS4mZZldMj4wgNOX5ndj" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Order tab Updates with a second buy order.

<figure><img src="/files/iRCf4p0UjvSMtgxVZbnX" alt=""><figcaption><p>Positions</p></figcaption></figure>

The Positions tab shows a total of two long lots of BankNifty call option.

**Sell :**&#x20;

<figure><img src="/files/hQYLVfb9aofLe2YjMqmX" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab shows a sell order, and this sell order will exit the existing long call position.

<figure><img src="/files/4ZT4piYZiSrkUdZm2pMn" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that the BankNifty long call position has been squared off.

**Short :**&#x20;

<figure><img src="/files/3ul4RGaUl23hy47vul6Z" alt=""><figcaption><p>Orders</p></figcaption></figure>

This will create a sell order for one lot of BankNifty call options in the Orders tab.

<figure><img src="/files/yrPVToWCbmMZUX8Ozs24" alt=""><figcaption><p>Positions</p></figcaption></figure>

In the Positions tab, it updates with one short lot of BankNifty call options.

**Cover :**&#x20;

<figure><img src="/files/aim82Hyb0gL2sLgDXz72" alt=""><figcaption><p>Orders</p></figcaption></figure>

This will create a buy order for one lot of BankNifty call options in the Orders tab according to the \
Long + Short strategy.

<figure><img src="/files/QSUuRouGTq5EN7SMILuo" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that the BankNifty short call position has been squared off.&#x20;

### *Options Dynamic*

***Buying***

<table data-header-hidden><thead><tr><th></th><th width="157"></th><th></th><th width="147"></th><th></th></tr></thead><tbody><tr><td><strong>Signal Action</strong></td><td>BUY</td><td>SELL</td><td>SHORT</td><td>COVER</td></tr><tr><td><strong>Signal Type</strong></td><td>Call Position Entry</td><td>Call Position Exit</td><td>Put Position Entry</td><td>Put Position Exit</td></tr><tr><td><strong>Order Action</strong></td><td>BUY</td><td>SELL</td><td>BUY</td><td>SELL</td></tr><tr><td><strong>Order Type</strong></td><td>Entry CE Order</td><td>Exit CE Order</td><td>Entry PE Order</td><td>Exit PE Order</td></tr><tr><td><strong>Position Check</strong></td><td>No</td><td>Yes(CE)</td><td>No</td><td>Yes(PE)</td></tr><tr><td><strong>Sqr-Off Qty</strong></td><td>Not Available</td><td>If No Open CE Positions, No Order will be Placed</td><td>Not Available</td><td>If No Open PE Positions, No Order will be Placed</td></tr></tbody></table>

Example :&#x20;

{% embed url="<https://youtu.be/aVmEFfohGfQ>" %}

**Buy :**&#x20;

<figure><img src="/files/hIVrlyOLp9d4quAUjkzm" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays the instrument symbol and indicates that a call option has been bought.

<figure><img src="/files/u448dzwuTmnaeq3j842H" alt=""><figcaption><p>Positions</p></figcaption></figure>

The Positions tab shows that we have a long position of 1 lot of Nifty call options.

**Second Buy :**&#x20;

<figure><img src="/files/McmFRMRaGE8Zd8xS4x4d" alt=""><figcaption><p>Order</p></figcaption></figure>

This will update the Orders tab with a second buy order.

<figure><img src="/files/ieeWdjCKS6rltwjvG8cT" alt=""><figcaption><p>Positions</p></figcaption></figure>

This will update the Positions tab to show a total of two lots of nifty call option.

**Sell :**&#x20;

<figure><img src="/files/yFOzkbqcYoV1HMKkAfXh" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays a sell order, the sell order exits the existing call position.

<figure><img src="/files/XlfPqiMECkYWxFRT1W3g" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that the Nifty call position has been squared off.

**Short :**&#x20;

<figure><img src="/files/ACvwXhZJz9ZWmqg7xA3j" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays a buy order for a long nifty put position.

<figure><img src="/files/60Um4C02rX1kqOLnAQBz" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that a long Nifty put position has been established.

**Cover :**&#x20;

<figure><img src="/files/iAVxD7j3yi0yUevAlKlp" alt=""><figcaption><p>Orders</p></figcaption></figure>

the Orders tab displays a sell order for the existing long nifty put position to square off.

<figure><img src="/files/8u6kVKe0Ik5KyFIZZGsg" alt=""><figcaption><p>Positions </p></figcaption></figure>

Under the Positions tab, you will see that a long Nifty put position has been squared off along with a previously squared-off call position.

***Selling***

<table data-header-hidden><thead><tr><th width="115"></th><th width="168"></th><th width="166"></th><th width="174"></th><th width="161"></th></tr></thead><tbody><tr><td><strong>Signal Action</strong></td><td>BUY</td><td>SELL</td><td>SHORT</td><td>COVER</td></tr><tr><td><strong>Signal Type</strong></td><td>Put Position Entry</td><td>Put Position Exit</td><td>Call Position Entry</td><td>Call Position Exit</td></tr><tr><td><strong>Order Action</strong></td><td>SELL</td><td>BUY </td><td>SELL</td><td>BUY </td></tr><tr><td><strong>Order Type</strong></td><td>Entry PE Order</td><td>Exit PE Order</td><td>Entry CE Order</td><td>Exit CE Order</td></tr><tr><td><strong>Position Check</strong></td><td>No</td><td>Yes(PE)</td><td>No</td><td>Yes(CE)</td></tr><tr><td><strong>Sqr-Off Qty</strong></td><td>Not Available</td><td>If No Open PE Positions, No Order will be Placed</td><td>Not Available</td><td>If No Open CE Positions, No Order will be Placed</td></tr></tbody></table>

Example :&#x20;

{% embed url="<https://youtu.be/QLmN56tvf6k>" %}

**Buy :**&#x20;

<figure><img src="/files/M2XAZI1NMMJZzLt2ZXlU" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays the instrument symbol and indicates that a put option has been sold.

<figure><img src="/files/erDqAjKLmcxF1xNCK9Wz" alt=""><figcaption><p>Positions</p></figcaption></figure>

The Positions tab shows that we have a short position of 1 lot of Nifty put options.

**Second Buy :**&#x20;

<figure><img src="/files/YL4r4fQHBLhmoyIaYUfC" alt=""><figcaption><p>Orders</p></figcaption></figure>

This will update the Orders tab with a second buy order.

<figure><img src="/files/vXtX5kS74BG57UcTY9Su" alt=""><figcaption><p>Positions</p></figcaption></figure>

This will update he Positions tab to show a total of two lots of nifty put option.

**Sell :**&#x20;

<figure><img src="/files/GUFeF8zM8w8LjRJoyNfo" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays a buy order, the buy order exits the existing call position.

<figure><img src="/files/dbkPqeDhCOOX5hRXWDr7" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that the Nifty call position has been squared off.

**Short :**&#x20;

<figure><img src="/files/jYswP6PcTl8vuqZXiUmL" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays a sell order for a short nifty call position.

<figure><img src="/files/ZIKUksob3hKBb5fmX9Vl" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that a short Nifty call position has been established.

**Cover :**&#x20;

<figure><img src="/files/ueNtFdKahOwUbUc21EEV" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays a buy order for the existing short nifty call position to square off.

<figure><img src="/files/Ol2OJri0hk7tMIXf6Vss" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that a short Nifty call position has been squared off along with a previously squared-off put position.

### ***Option Hedge***

***Buying***

<table data-header-hidden><thead><tr><th></th><th width="157"></th><th></th><th width="147"></th><th></th></tr></thead><tbody><tr><td><strong>Signal Action</strong></td><td>BUY</td><td>SELL</td><td>SHORT</td><td>COVER</td></tr><tr><td><strong>Signal Type</strong></td><td>Put Position Entry</td><td>Put Position Exit</td><td>Call Position Entry</td><td>Call Position Exit</td></tr><tr><td><strong>Order Action</strong></td><td>BUY</td><td>SELL</td><td>BUY</td><td>SELL</td></tr><tr><td><strong>Order Type</strong></td><td>Entry PE Order</td><td>Exit PE Order</td><td>Entry CE Order</td><td>Exit CE Order</td></tr><tr><td><strong>Position Check</strong></td><td>No</td><td>Yes(PE)</td><td>No</td><td>Yes(CE)</td></tr><tr><td><strong>Sqr-Off Qty</strong></td><td>Not Available</td><td>If No Open PE Positions, No Order will be Placed</td><td>Not Available</td><td>If No Open CE Positions, No Order will be Placed</td></tr></tbody></table>

Example :&#x20;

{% embed url="<https://youtu.be/nEfVOMuDA20>" %}

**Buy :**&#x20;

<figure><img src="/files/Bs0ZGpRLxfVp8x1VWRkA" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays the instrument symbol and indicates that a put option has been bought.

<figure><img src="/files/i28CC3knyGHiybl5r4ZE" alt=""><figcaption><p>Positions</p></figcaption></figure>

The Positions tab shows that we have a long position of 1 lot of Nifty put options.

**Second Buy :**&#x20;

<figure><img src="/files/oECzhUMRPGFyxT45aI0F" alt=""><figcaption><p>Orders</p></figcaption></figure>

This will update the Orders tab with a second buy order.

<figure><img src="/files/0pI2730AJ6guATiWw85N" alt=""><figcaption><p>Position</p></figcaption></figure>

This will update the Positions tab to show a total of two lots of nifty put option.

**Sell :**&#x20;

<figure><img src="/files/io2U67H9ZKAFqczaNvYs" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays a sell order, the sell order exits the existing put position.

<figure><img src="/files/BXfzljp5emQCgPsg7yr7" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that the Nifty put position has been squared off.

**Short :**&#x20;

<figure><img src="/files/oaTmd0wQy7EkN7iyzkF6" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays a buy order for a long nifty call position.

<figure><img src="/files/dcgqy7Lt1exwOLRUXeDx" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that a long Nifty call position has been established.

**Cover :**&#x20;

<figure><img src="/files/Ntnov1o5QN74eAebL9wP" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays a sell order for the existing long nifty call position to square off.

<figure><img src="/files/TbF6j7lSrLWuvUQB7gux" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that a long Nifty call position has been squared off along with a previously squared-off put position.

***Selling***

<table data-header-hidden><thead><tr><th></th><th width="157"></th><th></th><th width="147"></th><th></th></tr></thead><tbody><tr><td><strong>Signal Action</strong></td><td>BUY</td><td>SELL</td><td>SHORT</td><td>COVER</td></tr><tr><td><strong>Signal Type</strong></td><td>Call Position Entry</td><td>Call Position Exit</td><td>Put Position Entry</td><td>Put Position Exit</td></tr><tr><td><strong>Order Action</strong></td><td>SELL</td><td>BUY </td><td>SELL</td><td>BUY </td></tr><tr><td><strong>Order Type</strong></td><td>Entry CE Order</td><td>Exit CE Order</td><td>Entry PE Order</td><td>Exit PE Order</td></tr><tr><td><strong>Position Check</strong></td><td>No</td><td>Yes(CE)</td><td>No</td><td>Yes(PE)</td></tr><tr><td><strong>Sqr-Off Qty</strong></td><td>Not Available</td><td>If No Open CE Positions, No Order will be Placed</td><td>Not Available</td><td>If No Open PE Positions, No Order will be Placed</td></tr></tbody></table>

Example :&#x20;

{% embed url="<https://youtu.be/cjKLis1sDSc>" %}

**Buy :**&#x20;

<figure><img src="/files/gKL38pANvm6wcnmgkn6O" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays the instrument symbol and indicates that a call option has been sold.

<figure><img src="/files/jIGSeUw2M7hZzoBJXaln" alt=""><figcaption><p>Positions</p></figcaption></figure>

The Positions tab shows that we have a short position of 1 lot of Nifty call options.

**Second Buy :**&#x20;

<figure><img src="/files/ROwR35K8JqF8q0GG8eph" alt=""><figcaption><p>Orders</p></figcaption></figure>

This will update the Orders tab with a second sell order.

<figure><img src="/files/WoKZOi5gRSUyPoPxekJA" alt=""><figcaption><p>Positions</p></figcaption></figure>

This will update the Positions tab to show a total of two lots of short nifty call option.

**Sell :**&#x20;

<figure><img src="/files/tDq4OAck28qC7GiLybmz" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays a buy order, the buy order exits the existing short call position.

<figure><img src="/files/FBoHRwjFjVnR7FWFhC0Z" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that the Nifty call position has been squared off.

**Short :**&#x20;

<figure><img src="/files/YdvhT27cPFGxsopfGd99" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays a sell order for a short nifty put position.

<figure><img src="/files/59NdQbtUXrZnlc9O7qAZ" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that a short Nifty put position has been established.

**Cover :**&#x20;

<figure><img src="/files/RusbqzpehJt9fQh7YD0w" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Orders tab displays a buy order for the existing short nifty put position to square off.

<figure><img src="/files/0FGgpqNx3pFB78ewFa0k" alt=""><figcaption><p>Positions</p></figcaption></figure>

Under the Positions tab, you will see that a short Nifty put position has been squared off along with a previously squared-off call position.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.algomojo.com/algomojo/strategy-rule/long+short-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
