NexusFi: Find Your Edge


Home Menu

 





How to download margin values from Intaractive Brokers website


Discussion in NinjaTrader

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




 
Search this Thread

How to download margin values from Intaractive Brokers website

  #1 (permalink)
 asfax 
Prague, Czech Republic
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: NQ
Posts: 57 since Sep 2009
Thanks Given: 34
Thanks Received: 79

Some time ago I needed to find out the current futures margin values for my broker Interactive Brokers (for some position size and risk management purpose).

If someone is interested how to use NinjaTrader to read information from a web page, look at the attached indicator.

The indicator downloads the current margin values and prints them into the output window. Everything is commented, so you can simply change the code for your own purposes and insert the code as a part of your indicator. I hope it will be useful to someone (at least part of the code) and save him some time .

Attached Files
Elite Membership required to download: DownloadMarginsFromInteractiveBrokersWeb.zip
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
About a successful futures trader who didnt know anythin …
Psychology and Money Management
 
  #3 (permalink)
 emun 
prague, czech republic
 
Experience: Advanced
Platform: NinjaTrader
Trading: NQ
Posts: 165 since May 2012
Thanks Given: 49
Thanks Received: 74



asfax View Post
Some time ago I needed to find out the current futures margin values for my broker Interactive Brokers (for some position size and risk management purpose).

If someone is interested how to use NinjaTrader to read information from a web page, look at the attached indicator.

The indicator downloads the current margin values and prints them into the output window. Everything is commented, so you can simply change the code for your own purposes and insert the code as a part of your indicator. I hope it will be useful to someone (at least part of the code) and save him some time .


Ahoj asfaxi,

tohle je přesně ten indikátor, který jsem hledal. Díky moc za sdílení. Jen by mě zajímalo, zda ho nemáš i ve verzi pro NT8. Díky moc

...and now in the English version...

Hello asfax,

this is exactly the indicator I was looking for. Thanks so much for sharing. I was just wondering if you have it in the NT8 version as well. Thanks a lot

Alternatively, if someone has already converted it, would you mind sharing.

Reply With Quote
  #4 (permalink)
 asfax 
Prague, Czech Republic
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: NQ
Posts: 57 since Sep 2009
Thanks Given: 34
Thanks Received: 79

Hi Emun,
here is the required version for NT8. I have changed the IB website address with margins and one small adjustment, because searched symbol is now also found at the bottom of the web page in the "Futures - Intraday Margin Requirements" section.
Good luck

Attached Files
Elite Membership required to download: MarginsFromWebInteractiveBrokersNT8.zip
Started this thread Reply With Quote
Thanked by:




Last Updated on March 29, 2023


© 2024 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 - Privacy Policy - Downloads - Top
no new posts