pannet1 / telegram-trades

get calls from telegram and place traders
0 stars 2 forks source link

Position Exit in case of Price SL Jumping #28

Open ravikanthvishnubhotla opened 3 months ago

ravikanthvishnubhotla commented 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'}]

image

pannet1 commented 3 months ago

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.