NexusFi: Find Your Edge


Home Menu

 





My own scanner (java) + CSV file


Discussion in Platforms and Indicators

Updated
    1. trending_up 1,980 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
Dirkfio
Antwerp Belgium
 
Posts: 1 since Jul 2017
Thanks Given: 0
Thanks Received: 0

Hi All,

Can I write my own scanner (in java or C++ or ...) that does the following:
Get open/close/high/low/volume from x previous bars and write these data to a csv file.
This should be done for a list (array) of stocks.

Is this possible in TWS? Or do I need other tools?
Any example codes and how to use the code in TWS?

Thanks.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
S&P 500 Holds the Line: No Fast Track for SpaceX, Op …
Stocks and ETFs
April Jobs Beat Flips Fed Hike Odds Past 52% for First T …
Traders Hideout
Warsh Opens Today, Hormuz June 19 -- WTI Below $80, Fran …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 2,947 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,855


Dirkfio View Post
Hi All,

Can I write my own scanner (in java or C++ or ...) that does the following:
Get open/close/high/low/volume from x previous bars and write these data to a csv file.
This should be done for a list (array) of stocks.

Is this possible in TWS? Or do I need other tools?
Any example codes and how to use the code in TWS?

Thanks.

This is possible.
You may want to take a look at the TWS API (make sure to enable to API in your TWS before making a call).

Look at the following links :

https://www.interactivebrokers.com/en/index.php?f=11698

Interactive Brokers TWS API Tutorials ? Arranged by API Topic | Holowczak.com

https://github.com/krs43/ib-csharp

good luck !


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 691




That repository is quite old, and redundant now that IB has their own C# API. See here (and the links on the page): https://www.interactivebrokers.com/en/index.php?f=5041


Reply With Quote
Thanked by:




Last Updated on July 14, 2017


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts