Tick By Tick Algo for Option Chain with OI Buildup and Covering

Hi Everone,

I am building Open Souce Algo for

  1. Tick By tick options chain
  2. Excel/Google Sheets as a user interface.
  3. Including OI Buildup
  4. Open Source Project

I would love to hear your suggestions for features and ideas :bulb:

9 Likes

@Tradehull_Imran Sir we are very glad to hear that

1.Deployment of Python algorithmic strategies to servers (like AWS to automate the entire system).

  1. Project specific virtual environment creation with .bat file
  1. Although less important still I am mentioning that
    as you mentioned it is an open source project then we can maintain git version also.
  1. As you already created tutorial to find out uptrend or downtrend stocks. So we can highlight those stocks green/red background color (or we can create separate excel for bullish or bearish stocks).

6.In excel we can dynamically show available balance, margin, position, profit/loss, target, stoploss and trailing stop-loss.

  1. In excel Highlight ( or print only 6 highest open interest)
    3 Highest Call Open interest and 3 Highest Put Open interest
    along with their changes

**8. if possible then please include ask - bid price ( with their volume ) also for point number 7

  1. Please include commodity market also

Thanks in advance :smiling_face: :pray:t2: :smiling_face:

2 Likes

@Tradehull_Imran Sir for point no. 2
I have tried below code

@echo off
REM Set the environment variable to allow the Python launcher to use winget
set PYLAUNCHER_ALLOW_INSTALL=1

REM Set the PYTHONPATH environment variable
REM PYTHONPATH is used to specify additional directories where Python should look for modules and packages.
REM This path should be dynamic based on your Python installation location.
set PYTHONPATH=C:\Users\Subhajit Panja\AppData\Local\Programs\Python\Python38\Lib

REM Set the PATH environment variable
REM PATH is used to specify directories where executable programs are located.
REM This path should also be dynamic based on your Python installation location.
REM Multiple paths are included to ensure that both the main Python executable and the Scripts directory are accessible.
REM The %PATH% at the end ensures that the existing PATH environment variable is preserved and appended.
set PATH=C:\Users\Subhajit Panja\AppData\Local\Programs\Python\Python38;C:\Users\Subhajit Panja\AppData\Local\Programs\Python\Python38\Scripts;%PATH%

REM List all Python versions installed
py --list

REM Create the virtual environment with the specified Python version using the full path
"C:\Users\Subhajit Panja\AppData\Local\Programs\Python\Python310\python.exe" -m venv .venv

REM Check if the virtual environment was created successfully
if exist ".venv\Scripts\activate" (
    echo Virtual environment created successfully.

    REM Activate the virtual environment
    call .venv\Scripts\activate

    REM Check the Python version to confirm the correct environment is active
    python --version

    REM Upgrade pip
    python -m pip install --upgrade pip

    REM Install packages from requirements.txt
    if exist requirements.txt (
        pip install -r requirements.txt
    ) else (
        echo requirements.txt not found.
    )
) else (
    echo Failed to create virtual environment.
    echo Please ensure Python 3.8.0 is installed and accessible.
)

REM Explanation of the pause command:
REM The pause command is used to keep the Command Prompt window open after the batch file has finished executing.
REM This way, you can see the output and any messages displayed, rather than the window closing immediately.
REM When pause is encountered, it displays the message "Press any key to continue . . ." and waits for you to press a key before proceeding, ensuring you can review the script’s output.
pause

REM This script is specifically for Python 3.8.0
1 Like

@Subhajitpanja
Added +

1 Like

Good to hear that.

Can it be possible to place indicator over indicator example i want 20 EMA over OI indicator

1 Like

@Tradehull_Imran Can you create tsl.get_option_chain(symbol, exchange)
this function for getting all data of option chain

1 Like