Trade Not Executed in ICICI Direct Spring

Hi



I started an algo which runs perfectly in backtest. When I am going for Live it say only by One Click they will allow to execute the trade and the algo I need to start every Day. I have Few Clarifications


  1. Why it should be one click.
  2. Where i will get the alert
  3. Please check the Log it says alert sent, but i did not see any alert in alert section.



    Am i missing something



    here is the log

     
[PLATFORM]
Start-processing:Blueshift version 2.1.0. 
Your algo execution will start shortly. Please note the details below for future reference

Execution name (hash): Nifty Bearish (546159e6-7f09-4f4c-a61c-8cc5c15ca617) 
Strategy name (hash): Nifty (fdd47405-45fd-4655-8991-06c279c3eefd) 
Starting capital: ₹10,000 
Mode: live 
Order confirmation: oneclick 
Launch-time: 28 September 2023 
End date: 28 September 2023 

Once the algo is initialized, performance and other details will be updated in the dashboard.
Creating necessary resources for the algo execution ...
 
[PLATFORM]
Showing maximum last 2000 entries. For full logs, click  here  to download.
 
[USER]
Reticulating spline, setting up algorithm environment...
 
[USER]
Done.
 
[USER]
Integrating volatility over z-axis...
 
[USER]
Done.
 
[USER]
Configuring lunchtime ...
 
[USER]
Done.
 
[USER]
Tokenizing gravity...
 
[USER]
Done.
 
[USER]
Evaluating gene expression...
 
[USER]
Connecting to broker proxy, this may take some time...
 
[USER]
Done
 
[WARNING]
Blueshift Alert(546159e6-7f09-4f4c-a61c-8cc5c15ca617)[2023-09-28 03:22:55.867501](WARNING): All market orders will automatically be converted to limit orders at 70% of the prescribed market price protection limit.
 
[USER]
Broker connection is now ready.
 
[LOG]
Accelarating particles...
 
[USER]
setting up callbacks for events.
 
[PLATFORM]
starting LIVE
 
[PLATFORM]
starting LIVE with algo:Nifty.py, engine:3.0.0, broker:isec-live, timezone:Asia/Calcutta
 
[USER]
Algorithm setup complete. Executing initialze routines.
 
[PLATFORM]
Blueshift Alert(546159e6-7f09-4f4c-a61c-8cc5c15ca617)[2023-09-28 08:52:56.654429+05:30](PLATFORM): Algorithm setup complete. Executing initialze routines.
 
[PLATFORM]
Blueshift Alert(546159e6-7f09-4f4c-a61c-8cc5c15ca617)[2023-09-28 08:52:56.667621+05:30](PLATFORM): successfully read saved blotter data at 2023-09-28 08:52:56.649928+05:30.
 
[PLATFORM]
Blueshift Alert(546159e6-7f09-4f4c-a61c-8cc5c15ca617)[2023-09-28 08:52:56.677328+05:30](PLATFORM): restarting algo with last saved context, if available.
 
[PLATFORM]
Blueshift Alert(546159e6-7f09-4f4c-a61c-8cc5c15ca617)[2023-09-28 08:52:56.751471+05:30](PLATFORM): successfully read saved blotter data at 2023-09-28 08:52:56.649928+05:30.
 
[USER]
Executing before trading start routines.
 
[PLATFORM]
Blueshift Alert(546159e6-7f09-4f4c-a61c-8cc5c15ca617)[2023-09-28 08:53:56.657060+05:30](PLATFORM): Executing before trading start routines.
 
[PLATFORM]
Blueshift Alert(546159e6-7f09-4f4c-a61c-8cc5c15ca617)[2023-09-28 10:10:56.974829+05:30](PLATFORM): sending notification:{'oid': '4a072070571948cbb095ad33553aebb0', 'hashed_oid': 834125069, 'broker_order_id': None, 'exchange_order_id': None, 'parent_order_id': '546159e6-7f09-4f4c-a61c-8cc5c15ca617', 'asset': 'NIFTY20230928PE19700', 'user': 'blueshift', 'placed_by': '', 'product_type': 'DELIVERY', 'order_flag': 'NORMAL', 'order_type': 'MARKET', 'order_validity': 'DAY', 'quantity': 50.0, 'filled': 0.0, 'pending': 50.0, 'disclosed': 0.0, 'price': 0.0, 'average_price': 0.0, 'trigger_price': 0.0, 'stoploss_price': 0.0, 'side': 'BUY', 'status': 'OPEN', 'status_message': None, 'exchange_timestamp': 'None', 'timestamp': '2023-09-28 10:10:56.969003+05:30', 'tag': '546159e6-7f09-4f4c-a61c-8cc5c15ca617', 'fractional': False, 'price_at_entry': 30.8, 'create_latency': 6.3, 'exec_latency': 0.0}
 

Hi please see below.


  1. the oneclick option is present for strategies that are not pre-approved for automation. For pre-approved strategies, orders are sent automatically for execution. For the rest, orders are confirmed by the user before it is sent for execution.


  2. The alerts should appear in the algo dashboard (opens when you start the execution, or click the bot from the home page or bots page) -> in the alerts tab. Note: only active alerts maybe displayed. Alerts that are expired may be discarded once you navigate away from the alerts page (hence you can see nothing in the alert tab). Unread alerts are also displayed on the home page where the particular bot is displayed (in the bell icon area of the bot).


  3. In your case, it appears the alerts were expired before you checked the alerts page - and hence were discared (not displayed). The alerts expires after a pre-defined time period.



    If the alert expiry time is too short, it may disappear before you can notice or act on it. On the other hand if it is too long, the signal may become stale. You can set the time period from within your strategy using the set_oneclick_timeout API method, as per the strategy requirement. If you do not, a default expiry time is assingned.



    Please feel free to give a shout in case anything is not clear.

Thanks for your response.


  1. What is Pre Approve and Who approves it? how to go for approval.
  2. This strategy in not for public. For personal use only, Still need pre approve.
  3. In ICICI direct Spring if kept idle session is expired I need to refresh. May be i would have missed the alert because of this?



    Finaly what is point of having algo if I have to monitor this, I can very well do the trade on my own, If I have time to watch algo all day.



     

For point #3, you may miss the alerts only if the alerts themselves expire in the meantime. For alerts still active, you will see them even after the refresh. For your other questions - details on approval requirements and possible better ways of receiving alerts, I suggest you reach out to the icicidirect spring team  (spring at the rate of icicisecurities.com)