Open ravikanthvishnubhotla opened 3 months ago
Position Exit in case of Price SL Jumping
In this case price jumped even below SL is placed..for such cases i remember you coded hard exit.
[2024-06-24 09:20:02,993] INFO: {'symbol': 'BFO:BANKEX24JUN58700PE', 'side': 'B', 'quantity': 30, 'price': 480.0, 'trigger_price': 479.95, 'order_type': 'SL', 'product': 'N', 'remarks': 'AllIn1Group'}] [2024-06-24 09:20:02,993] INFO: entry args: {'symbol': 'BFO:BANKEX24JUN58700PE', 'side': 'B', 'quantity': 30, 'price': 480.0, 'trigger_price': 479.95, 'order_type': 'SL', 'product': 'N', 'remarks': 'AllIn1Group'}] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=433.0 False and intended_stop=401.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=464.0 False and intended_stop=433.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=496.0 False and intended_stop=464.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=527.0 False and intended_stop=496.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=558.0 False and intended_stop=527.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=590.0 False and intended_stop=558.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=621.0 False and intended_stop=590.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=653.0 False and intended_stop=621.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=684.0 False and intended_stop=653.0>trigger=370.0True] [2024-06-24 09:23:19,723] INFO: entry for BFO:BANKEX24JUN58700PE is complete] [2024-06-24 09:23:48,456] INFO: stop args: {'symbol': 'BFO:BANKEX24JUN58700PE', 'side': 'S', 'quantity': 30, 'price': 448.95, 'trigger_price': 449.0, 'order_type': 'SL', 'product': 'N', 'remarks': 'AllIn1Group'}]
cannot understand what is happening over here.
entry order is placed but it is not yet complete. then why i am going into trailing. then only i am placing stop.
will check and revert.
Position Exit in case of Price SL Jumping
In this case price jumped even below SL is placed..for such cases i remember you coded hard exit.
[2024-06-24 09:20:02,993] INFO: {'symbol': 'BFO:BANKEX24JUN58700PE', 'side': 'B', 'quantity': 30, 'price': 480.0, 'trigger_price': 479.95, 'order_type': 'SL', 'product': 'N', 'remarks': 'AllIn1Group'}] [2024-06-24 09:20:02,993] INFO: entry args: {'symbol': 'BFO:BANKEX24JUN58700PE', 'side': 'B', 'quantity': 30, 'price': 480.0, 'trigger_price': 479.95, 'order_type': 'SL', 'product': 'N', 'remarks': 'AllIn1Group'}] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=433.0 False and intended_stop=401.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=464.0 False and intended_stop=433.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=496.0 False and intended_stop=464.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=527.0 False and intended_stop=496.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=558.0 False and intended_stop=527.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=590.0 False and intended_stop=558.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=621.0 False and intended_stop=590.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=653.0 False and intended_stop=621.0>trigger=370.0True] [2024-06-24 09:20:12,884] INFO: ltp=374.0>=v=684.0 False and intended_stop=653.0>trigger=370.0True] [2024-06-24 09:23:19,723] INFO: entry for BFO:BANKEX24JUN58700PE is complete] [2024-06-24 09:23:48,456] INFO: stop args: {'symbol': 'BFO:BANKEX24JUN58700PE', 'side': 'S', 'quantity': 30, 'price': 448.95, 'trigger_price': 449.0, 'order_type': 'SL', 'product': 'N', 'remarks': 'AllIn1Group'}]