# LONG+SHORT

### *Equity*

<table data-header-hidden data-full-width="false"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Signal Action</strong></td><td>BUY</td><td>SELL</td></tr><tr><td><strong>Signal Type</strong></td><td>Short Position Exit or <br>Long Position Entry</td><td>Long Position Exit or <br>Short Position Entry</td></tr><tr><td><strong>Order action</strong></td><td>BUY</td><td>SELL</td></tr><tr><td><strong>Order Type</strong></td><td>Exit or Entry Order</td><td>Exit or Entry Order</td></tr><tr><td><strong>Position check</strong></td><td>Yes(Short)</td><td>Yes(Long)</td></tr><tr><td><strong>Square-off Qty</strong></td><td>If No Open Short Positions, Entry Long Order will be Placed</td><td>If No Open Positions, No Order will be Placed</td></tr></tbody></table>

Example :&#x20;

{% embed url="<https://www.youtube.com/watch?v=8_Wfn7LyiCM>" %}

**Buy :**&#x20;

<figure><img src="/files/fy1PAxjFtiVnPHlRpeHr" 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/1xHMDA9dq1gt9V2E7kh8" alt=""><figcaption><p>Positions</p></figcaption></figure>

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

**Sell :**&#x20;

<figure><img src="/files/Nu8lbWfW8i4CCkcgpCGC" 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/EeJhqMicWVUnfk5NvRhG" 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.

**Second Sell :**&#x20;

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

The Orders tab shows a sell order, and this sell order creates a short position as per Long + Short strategy.

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

Under the positions tab, a short tata chemical equity position is updated.

**Second Buy :**&#x20;

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

The Orders tab shows a buy order, and this buy order exits the existing short tata chemical equity position.

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

Under the position tab you will notice that the short tata chemical equity position is squared off.

### *Futures*

<table data-header-hidden data-full-width="false"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Signal Action</strong></td><td>BUY</td><td>SELL</td></tr><tr><td><strong>Signal Type</strong></td><td>Short Position Exit or <br>Long Position Entry</td><td>Long Position Exit or <br>Short Position Entry</td></tr><tr><td><strong>Order action</strong></td><td>BUY</td><td>SELL</td></tr><tr><td><strong>Order Type</strong></td><td>Exit or Entry Order</td><td>Exit or Entry Order</td></tr><tr><td><strong>Position check</strong></td><td>Yes(Short)</td><td>Yes(Long)</td></tr><tr><td><strong>Square-off Qty</strong></td><td>If No Open Short Positions, Entry Long Order will be Placed</td><td>If No Open Positions, No Order will be Placed</td></tr></tbody></table>

Example :&#x20;

{% embed url="<https://youtu.be/wkc6ilS-YOU>" %}

**Buy :**&#x20;

<figure><img src="/files/9DCuGdTvQykxbBbrIN6O" 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/vQU1jvdmWFYxgaULdMaK" alt=""><figcaption><p>Positions</p></figcaption></figure>

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

**Sell :**&#x20;

<figure><img src="/files/xIbIMBrUCHDcDpdaHXxT" 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/CES2JqE2oPTtr9ouG4l2" alt=""><figcaption><p>Positions</p></figcaption></figure>

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

**Second Sell :**&#x20;

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

Orders tab shows a sell order, and this sell order creates a short position as per Long + Short strategy.

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

Under the positions tab, a short ITC futures position is updated.

**Second Buy :**&#x20;

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

The Orders tab shows a buy order, and this buy order exits the existing short ITC futures position.

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

Under the position tab you will notice that the short ITC futures position is squared off.

### *Options*

<table data-header-hidden data-full-width="false"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Signal Action</strong></td><td>BUY</td><td>SELL</td></tr><tr><td><strong>Signal Type</strong></td><td>Short Position Exit or <br>Long Position Entry</td><td>Long Position Exit or <br>Short Position Entry</td></tr><tr><td><strong>Order action</strong></td><td>BUY</td><td>SELL</td></tr><tr><td><strong>Order Type</strong></td><td>Exit or Entry Order</td><td>Exit or Entry Order</td></tr><tr><td><strong>Position check</strong></td><td>Yes(Short)</td><td>Yes(Long)</td></tr><tr><td><strong>Square-off Qty</strong></td><td>If No Open Short Positions, Entry Long Order will be Placed</td><td>If No Open Positions, No Order will be Placed</td></tr></tbody></table>

Example :&#x20;

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

**Buy :**&#x20;

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

The Orders tab displays the instrument symbol and indicates that a call option has been bought. here the instrument symbol depicts that we have placed a BANKNIFTY Order.

<figure><img src="/files/Xbs4UvlewJQQ5ZLw7uPA" 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/YE8scDEY9MvggvhVNXMy" alt=""><figcaption><p>Orders</p></figcaption></figure>

The Order tab Updates with a second buy order.

<figure><img src="/files/wLLCJ333W32FLy5vMhz5" 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/wYAQFqSg2Fz9yzqIE0kU" 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/ne8RTPtheIPhx1zWGzVk" alt=""><figcaption><p>Positions</p></figcaption></figure>

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

### *Options Dynamic*

***Buying***&#x20;

<table data-header-hidden data-full-width="false"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Signal Action</strong></td><td>BUY</td><td>SELL</td></tr><tr><td><strong>Signal Type</strong></td><td><p>Put Position Exit or </p><p>Call Position Entry</p></td><td><p>Call Position Exit or</p><p>Put Position Entry</p></td></tr><tr><td><strong>Order action</strong></td><td>SELL or BUY</td><td>SELL or BUY</td></tr><tr><td><strong>Order Type</strong></td><td>Exit PE or Entry CE Order</td><td>Exit PE or Entry CE Order</td></tr><tr><td><strong>Position check</strong></td><td>Yes(PE)</td><td>Yes(CE)</td></tr><tr><td><strong>Square-off Qty</strong></td><td>If No Open PE Positions, Entry CE Order will be Placed</td><td>If No Open CE Positions, Entry PE Order will be Placed</td></tr></tbody></table>

Example :&#x20;

{% embed url="<https://youtu.be/g-fOVoMuXRY>" %}

**Buy :**&#x20;

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

The Orders tab displays the instrument symbol and indicates that a call option has been bought. Since no put option is currently available, so no exit for a put option is seen.

<figure><img src="/files/Lt0irn0e48uKkOVEvc6g" 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/87MlbLDBwrFOaI8oQahC" alt=""><figcaption><p>Orders</p></figcaption></figure>

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

<figure><img src="/files/nSyMP9hqBuXYE5XTjSDw" 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/fPT509k7BcptKmftE1NP" 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/rwTWH7VlbhFf7irCZd6P" alt=""><figcaption><p>Positions </p></figcaption></figure>

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

**Second sell :**&#x20;

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

The Orders tab shows a buy order for a long Nifty put position based on the     long + short strategy rule, as there is no available call position to square off.

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

The Positions tab will show a long Nifty put position along with a previously squared-off Nifty call position.

***Selling***

<table data-header-hidden data-full-width="false"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Signal Action</strong></td><td>BUY</td><td>SELL</td></tr><tr><td><strong>Signal Type</strong></td><td>Call Position Exit or Put Position Entry</td><td>Put Position Exit or Call Position Entry</td></tr><tr><td><strong>Order action</strong></td><td>SELL or BUY</td><td>SELL or BUY</td></tr><tr><td><strong>Order Type</strong></td><td>Exit CE or Entry PE Order</td><td>Exit CE or Entry PE Order</td></tr><tr><td><strong>Position check</strong></td><td>Yes(PE)</td><td>Yes(CE)</td></tr><tr><td><strong>Square-off Qty</strong></td><td>If No Open CE Positions, Entry PE Order will be Placed</td><td>If No Open PE Positions, Entry CE Order will be Placed</td></tr></tbody></table>

Example :&#x20;

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

**Buy :**&#x20;

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

The Orders tab displays the instrument symbol and indicates that a put option has been bought. Since no call option is currently available, so no exit for a call option is seen.

<figure><img src="/files/E915AZGYV3heV3BmOHUg" 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/qvLIgYYjhTpRM1kp4Bb7" alt=""><figcaption><p>Orders</p></figcaption></figure>

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

<figure><img src="/files/Ag1PUGSBXTTDX7kdmbIG" alt=""><figcaption><p>Positions</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/49EzBMOpelkW6w1viyia" alt=""><figcaption><p>Orders</p></figcaption></figure>

You’ll see that the Orders tab displays a buy order, the buy order exits the existing put position.

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

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

**Second sell :**&#x20;

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

The Orders tab shows a sell order for a short Nifty call position based on the    long + short strategy rule, as there is no available put position to square off.

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

The Positions tab will show a short Nifty call position along with a previously squared-off Nifty put position.

### *Option Hedge*

***Buying***

<table data-header-hidden data-full-width="false"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Signal Action</strong></td><td>BUY</td><td>SELL</td></tr><tr><td><strong>Signal Type</strong></td><td>Call Position Exit or Put Position Entry</td><td>Put Position Exit or Call Position Entry</td></tr><tr><td><strong>Order action</strong></td><td>SELL or BUY</td><td>SELL or BUY</td></tr><tr><td><strong>Order Type</strong></td><td>Exit CE or Entry PE Order</td><td>Exit CE or Entry PE Order</td></tr><tr><td><strong>Position check</strong></td><td>Yes(CE)</td><td>Yes(PE)</td></tr><tr><td><strong>Square-off Qty</strong></td><td>If No Open CE Positions, Entry PE Order will be Placed</td><td>If No Open PE Positions, Entry CE Order will be Placed</td></tr></tbody></table>

Example :&#x20;

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

**Buy :**&#x20;

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

The Orders tab displays the instrument symbol and indicates that a put option has been bought. Since no call option is currently available, so no exit for a call option is seen.

<figure><img src="/files/y6o2IeXLMXWGGgjVdCeL" 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/PFt2hkkh3HtSOPN2ItKV" alt=""><figcaption><p>Orders</p></figcaption></figure>

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

<figure><img src="/files/2tQloeSL165WocaRFqCZ" alt=""><figcaption><p>Positions</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/GneXUe2OKKfCUv5RdtPn" 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/loRcN39DCavM7xYx3gQg" alt=""><figcaption><p>Positions</p></figcaption></figure>

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

Second sell :&#x20;

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

The Orders tab shows a buy order for a long Nifty call position based on the     long + short strategy rule, as there is no available put position to square off.

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

The Positions tab will show a long Nifty call position along with a previously squared-off Nifty put position.

***Selling***

<table data-header-hidden data-full-width="false"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Signal Action</strong></td><td>BUY</td><td>SELL</td></tr><tr><td><strong>Signal Type</strong></td><td><p>Put Position Exit or </p><p>Call Position Entry</p></td><td><p>Call Position Exit or</p><p>Put Position Entry</p></td></tr><tr><td><strong>Order action</strong></td><td>SELL or BUY</td><td>SELL or BUY</td></tr><tr><td><strong>Order Type</strong></td><td>Exit PE or Entry CE Order</td><td>Exit PE or Entry CE Order</td></tr><tr><td><strong>Position check</strong></td><td>Yes(PE)</td><td>Yes(CE)</td></tr><tr><td><strong>Square-off Qty</strong></td><td>If No Open PE Positions, Entry CE Order will be Placed</td><td>If No Open CE Positions, Entry PE Order will be Placed</td></tr></tbody></table>

Example :&#x20;

**Buy :** &#x20;

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

The Orders tab displays the instrument symbol and indicates that a short call option has been created. Since no position of put option is currently available, so no square-off for a put option is seen.

<figure><img src="/files/l2aJ83agY0bEy0sDFKWW" 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/wDo7jI8GXqvi1tWN90RZ" alt=""><figcaption><p>Orders</p></figcaption></figure>

This will update the Orders tab with a second sell orde&#x72;**.**

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

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

**Sell :**&#x20;

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

The Orders tab displays a buy order, the buy order squares-off the existing call position.

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

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

**Second Sell :**&#x20;

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

The Orders tab shows a sell order for a short Nifty put position based on the    long + short strategy rule, as there is no available call position to square off.

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

The Positions tab will show a short Nifty put position along with a previously squared-off Nifty 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.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.
