instrument Bank Nifty but provision for user input for instrument
Rules pl help me in creating following strategy. Ther shoud be user
Provision of user input for instument session time for defining high and low and target and stop loss in points.
Rules are as follows.
Buy Signal:
- If the current 5-minute close is above the highest high between 9:30 PM to 11.30 PM IST:
- Buy 2 lots.
- Set an initial stop loss of 200 poi⁷nts for both lots.
Targets and Trailing Stop Loss for Buy:
- Target 1 for the first lot is set to 200 points above the buy price.
- Move the trailing stop loss for the remaining 1 lot to the buy price.
- Target 2 for the remaining lot is set to 400 points above the buy price.
- Allow the user to input trailing stop loss points (e.g., 50, 100, 150, 200).
Sell Signal:
- If the current 5-minute close is below the lowest low between 9:30 PM to 11:30 PM IST:
- Implement a sell strategy (details not specified, but similar logic to buy).
Sir pl help me and provide the code
How to set alert and integrate in broker account