Input: 50 % booking will be at 390 Rest target open

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "358",
"stop_loss": 327,
"target": 390,
"quantity": "50%"
}
Input: SL on cost

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "358",
"stop_loss": 358,
"target": 390,
"quantity": "50%"
}
Input: Exited on cost

Output:
json
{
"action": "null",
"instrument": "BankNifty 52200 PE",
"entry_price": "358",
"stop_loss": 358,
"target": 390,
"quantity": "50%"
}
Input: BUY 52200 Pe above 347 SL 324 QTY 50%

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "348",
"stop_loss": 324,
"target": 390,
"quantity": "50%"
}
Input: Entered

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "348",
"stop_loss": 324,
"target": 390,
"quantity": "50%"
}
Input: Exited at 324 But we will re-enter in same

Output:
json
{
"action": "null",
"instrument": "BankNifty 52200 PE",
"entry_price": "348",
"stop_loss": 324,
"target": 390,
"quantity": "50%"
}
Input: BUY again @ 318 SL 299

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "318",
"stop_loss": 299,
"target": null,
"quantity": null
}
Input: Revised buy @ 325 SL 310 QTY 75%

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "325",
"stop_loss": 310,
"target": null,
"quantity": "75%"
}
Input: BUY @ 330

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "330",
"stop_loss": 310,
"target": null,
"quantity": "75%"
}
Input: "Entered TP 360 for 50 % booking , rest open"

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "330",
"stop_loss": 310,
"target": 360,
"quantity": "75%"
}
Input: 340 🚀

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "330",
"stop_loss": 310,
"target": 360,
"quantity": "75%"
}
Input: **TSL 315**

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "330",
"stop_loss": 315,
"target": 360,
"quantity": "75%"
}
Input: 345 🚀 last trade loss recovered here

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "330",
"stop_loss": 315,
"target": 360,
"quantity": "75%"
}
Input: TSL 326

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "330",
"stop_loss": 326,
"target": 360,
"quantity": "75%"
}
Input: sL ON COST

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 PE",
"entry_price": "330",
"stop_loss": 330,
"target": 360,
"quantity": "75%"
}
Input: EXITED ON COST

Output:
json
{
"action": "null",
"instrument": "BankNifty 52200 PE",
"entry_price": "330",
"stop_loss": 330,
"target": 360,
"quantity": "75%"
}
Input: BUY 52200 ce @ 315 SL 296 Qty 75%

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 CE",
"entry_price": "315",
"stop_loss": 296,
"target": null,
"quantity": "75%"
}
Input: Entered TP 355/ 390 /430

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 CE",
"entry_price": "315",
"stop_loss": 296,
"target": [
355,
390,
430
],
"quantity": "75%"
}
Input: Enter again with 295 as sl

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 CE",
"entry_price": "315",
"stop_loss": 295,
"target": [
355,
390,
430
],
"quantity": "75%"
}
Input: entered at 303

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 CE",
"entry_price": "303",
"stop_loss": 295,
"target": [
355,
390,
430
],
"quantity": "75%"
}
Input: 322 🚀 Last CE trade loss recovered here

Output:
json
{
"action": "buy",
"instrument": "BankNifty 52200 CE",
"entry_price": "303",
"stop_loss": 295,
"target": [
355,
390,
430
],
"quantity": "75%"
}