TWS-Link "GET_EXCHANGE_RATE" function not working??

Discuss, post your questions about TWSLink here.

Users who just registered, please write an email to
forum@trade-commander.de
with your username mentioned.
So we can distinguish you from bots.
Thank you
Post Reply
Rocket130713
Posts: 21
Joined: Sat Mar 03, 2018 9:23 am

TWS-Link "GET_EXCHANGE_RATE" function not working??

Post by Rocket130713 »

Hello,

In TradeStation 9.1 Easy-Language script I'm calling TWS-Link function as follows: Cbl = GET_EXCHANGE_RATE("GBP","USD"); but it does not work and always returns a zero (0.00) number. Our master and sub-accounts are in Australian dollars i.e AUDUSD, if this matters?. Could you please tell me what I am doing wrong regarding how to code this? Should I be calling some other TWS-Link function in the line of code immediately above the GET_EXCHANGE_RATE function to get it to work and return a value equal to the GBPUSD exchange rate e.g. 1.40306?

Many thanks in advance. Kind regards, Rod

board_admin
Site Admin
Posts: 244
Joined: Mon Apr 24, 2017 3:24 pm

Re: TWS-Link "GET_EXCHANGE_RATE" function not working??

Post by board_admin »

The exchange rates are part of account information when you have cash positions in non base currencies.
So you get only exchange rates among currencies which are listed in your account .

Also, in order receive exchange rates at all, you need full account value subscriptions. So not off and not summary.

Post Reply