NexusFi: Find Your Edge


Home Menu

 





Using TWS, What is the easiest way to close a forex position


Discussion in Platforms and Indicators

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




 
Search this Thread

Using TWS, What is the easiest way to close a forex position

  #1 (permalink)
 arjfca 
Montreal, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: Interactive Broker
Trading: Forex
Posts: 263 since Sep 2010
Thanks Given: 440
Thanks Received: 91

Hello

This morning, for whatever reason, I had an unwanted Forex position in my account.

What is the easiest way to close it out? I did the reverse of the position, but it took me 3 times because the TWS was reversing my order. Instead of selling my long position, I was buying more and more

Actually, My initial orders are send from API, then I manage them directly on TWS. Nice but I will need to built an interface to cancel them. Until I done it, I need to easely cancel position

I did chat with IB and they send me a 2 hours webminar that does not show any image on my PC

Any help appreciated

Martin

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
cusp
Bundeburg
 
Posts: 48 since Mar 2012
Thanks Given: 27
Thanks Received: 49

Martin,

Given that there are a lot of ways to set TWS up when trading it might help if you posted a picture of the way you set up looks. White out your account details if they show in the picture.

Reply With Quote
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


Actually, I always have some FOREX positions on my TWS. My account is in EURO and the profits and losses from futures trading show up in USD. So my account has a USD balance, and I do not set that to zero every day.

To close the balance from time to time, select "Account" and open the menu, then go down to "Market Value - Real FX Balance". The balance shows your foreign currency positions.

Now right-click on the balance that you want to close and there will be a popup menu reading "Close Currency Balance". If you follow the instructions your balance will be closed and not leave an open position with TWS.

After this there may be a leftover of a few cents of that balance, this is just to annoy those traders who are accountants in the first place.

Reply With Quote
  #4 (permalink)
 arjfca 
Montreal, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: Interactive Broker
Trading: Forex
Posts: 263 since Sep 2010
Thanks Given: 440
Thanks Received: 91

Thanks FatTail, CUSP

I did found yesterday how to resolve that

- In TWS, select the portfolio tab

- Right click on your selected position

- Select Trade / Close all positions

This should create a market order that reverse tha actual position with the same amount of units

Did not had to test it yet.


As my actual Excel Sheet can send my orders to IB, Il will work later to provide a panick button to close a position. For the moment, at last, I got a solution


Martin

Attached Thumbnails
Click image for larger version

Name:	Closing all positions.gif
Views:	280
Size:	44.1 KB
ID:	70689  
Started this thread Reply With Quote




Last Updated on April 20, 2012


© 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