How to close Nifty Option when opposite signal generates

Asked by Sejpalsinh Jadeja ·
0 replies 219 views Reply
Sejpalsinh Jadeja Original Post
AlgoDelta Team

I am using a Indicator which is generating Buy and Sell signals, I am using this indicator on Nifty chart, when a buy signal generates then I want to Buy a CE ATM of Nifty, when sell signal generates then I want to close CE and buy PE, but when I am selecting exit when opposite signal generates then it is not closing current opened position but it is opening opposite position. I.e if a CE is bought after buy signal, before TP if sell signal generates then it is not closing CE but buying PE. How to close PE before buying CE and closing CE before buying PE?

Posted Sep 3
Reply

    0 Replies

    No replies yet. Know the fix? Share it below — even a partial answer helps.
    Markdown supported · ```json for code blocks · paste or drop screenshots

    Be specific and kind. Never share API keys, passwords or personal account details.

    Welcome to the community

    Log in or create your account in under a minute.

    1. 1Mobile
    2. 2E-mail
    3. 3Password
    +91

    Have a password?

    By continuing you agree to the community guidelines. We’ll send a one-time code by SMS.