Skip to main content

Scrip or Instrument Scanner App Diagram

|| श्री ||

 Scanner App Diagram


Long time back I have a plan to execute the scanner for finding the right stock utilizing OHLC information. I couldn't make sense of how I should process the information on various stocks as numerous stocks should sweep and discover a chance to exchange.
I attempted various methodologies however somehow it couldn't function. While executing application I was confronting issue to telling if any open door is found. On the off chance that any open door discovered, at that point, my scanner simply tells UI and proceeds with the pending checking. Past I couldn't make it approximately coupled things yet I just went over where they utilizing arbiter design which helps me to break tight coupling.







TradingDB- SQL database to store OHLC information.

Data Access Layer- This layer is going to operate on DB using Dapper Library. As we have multiple entities like OHLC, Instruments, Watcher List, etc. 

Data Services- Multiple classes to deal with data like historical information, daily OHLC information, Data Conversion to Multiple timeframes.

Historical Service- It deals with Historical API,  It works on multiple things Auto Sync database, Updated only selected stock data from UI.

Ticker Service -It deals with live data for stocks and updates into DB.

Scanner Service - It deals with scanning stock on the basis of OHLC and check moving average cross over, checks RIS, and MCAD. and notify UI if any opportunity.  Yet to be completed on the indicator part.


Mediator Service- This is the actual mediator between my UI and underlying service. UI send message to the mediator to start any activity and notify once completed. This helps to send and receive a notification.  



Please share your thoughts, suggestions in a comment if any.



Comments

  1. Thanks for coming up with this architecture. Major comment..

    Instead of scanner service, I would call it a analytics service.

    Minor comment:

    1. Few of the data paths are bidirectional.
    2. I would have a Live OHLC database, Historical OHLC database that are separate
    3. Interface to Auto trading mechanism is not clear. I think, that would require a separate block diagram.

    ReplyDelete
  2. Thanks sar nifty.
    I will consider you comments.

    ReplyDelete
  3. I want to make a scanner of open low on 15 min tf using live data

    ReplyDelete

Post a Comment

Popular posts from this blog

Getting Started with Zerodha API using C#

Getting Started with Zerodha API    In today's era, every thing is automated. now day's technology changing things rapidly. Many of us might have started imagination of automating the trades. This will be very interesting if you automate your trading action using your computer. If you planing to automate your trading, then here is some important information you may get.   Zerodha offering API for trading purpose, with the help of  API you can place order, cancel, modify. Zerodha Kite API V3 is very useful for automating trades. API is available in two forms one is Ticker which will give you tick data in market hours, another is historical API which will allow you to get old data.      To subscribe Kite API you must have Zerodha Dmat Account. Once you got your account with Zerodha login/Signup to  Kite Connect . You need to create app for API . Refer below image to create app. Fill the details. It will ask you to login your Kite Dmat account to link. So you can see this

How to generate the request_token for zerodha api using C#

Zerodha Kite Api How login Zerodha api using C# application? Hi Friends, recently i have started create application for zerodha api to make my own client for trading. Many of us have question how to login and trade using our custom C# application. I also face same problem i was looking solution for the same but  i was not able to fine exact way of doing it. I have gone through zerodha api document  According to them we need web view to make us to work this. Please follow be steps to get login token for API. Steps : 1) Creaet your login URL which is kite login + API key  eg.   var kiteURL="https://kite.trade/connect/login?v=3&api_key="    var apiKey="xpma3rmciorheitb"     2) Add web Browser to you web form set below properties             webBrowser1.AllowNavigation = true;             webBrowser1.ScriptErrorsSuppressed = true;             webBrowser1.Navigate(new Uri(kiteURL+apiKey)); 3) Now you need to register event "webBrowser1_

How to Fetch Data Tick from Kite Connect API (Nifty50)

Get Nifty50 data from Zerodha API In Last blog we discuss about how to generate request token and now we are going to look how to get data from Kite Connect. Here we will subscribe Nifty50. We will go step by step If you have code from zerodha official  git hub we can start further if not you get it from my previous blog "Getting Started with Zerodha " 1) We need list of Nifty50 stock which below Can verify this list on NSE India site. Below is json which you can use you code. if need we can key value pair using it. var stocks= [{"instrumenttoken" :3861249, "tradingsymbol" : "ADANIPORTS"}, {"instrumenttoken" :60417, "tradingsymbol" : "ASIANPAINT"}, {"instrumenttoken" :1510401, "tradingsymbol" : "AXISBANK"}, {"instrumenttoken" :4267265, "tradingsymbol" : "BAJAJ-AUTO"}, {"instrumenttoken" :4268801, "tradingsymbol" : "BAJA