Hi,
Is it possible yet to get the pip value of a currency using the API assuming ticks are generated for the required pairs?
Thanks,
Steve
Pip value
-
- Posts: 905
- Joined: Sat Jul 11, 2009 10:54 am
-
- Posts: 151
- Joined: Tue Feb 24, 2009 1:03 pm
Thanks, but that doesn't answer my question, unless I take the implied answer which is: no, the API doesn't provide pip value.
If that's the case, how can the code in that thread be used when, as another poster pointed out, there seems to be no access from a strategy to:
GetSymbolType(Currency);
TSymbolType
Am I missing something obvious here?
It's surprising to me that this hasn't been added to the API as ForexTester already calculates pip cost internally. Can't be that hard to expose it in the API can it?
Thanks,
Steve
If that's the case, how can the code in that thread be used when, as another poster pointed out, there seems to be no access from a strategy to:
GetSymbolType(Currency);
TSymbolType
Am I missing something obvious here?
It's surprising to me that this hasn't been added to the API as ForexTester already calculates pip cost internally. Can't be that hard to expose it in the API can it?
Thanks,
Steve
-
- Posts: 905
- Joined: Sat Jul 11, 2009 10:54 am
Hello Steve,
Yes, there is no "GetPointValue" function in the current API version. We'll add it later but for now you can use this code.
TSymbolType is a simple enumeration which contains of 3 values: st_Normal, st_InvertedUSD and st_Other.
sorry i cannot find GetSymbolType function. but it is very simple and can be rewritten, you just need to check symbol name and
- return st_Normal if currency name starts from 'USD'
- return st_InvertedUSD if currency name ends with 'USD'
- return st_Other in other cases.
Yes, there is no "GetPointValue" function in the current API version. We'll add it later but for now you can use this code.
TSymbolType is a simple enumeration which contains of 3 values: st_Normal, st_InvertedUSD and st_Other.
sorry i cannot find GetSymbolType function. but it is very simple and can be rewritten, you just need to check symbol name and
- return st_Normal if currency name starts from 'USD'
- return st_InvertedUSD if currency name ends with 'USD'
- return st_Other in other cases.
Last edited by FT Support on Sat Aug 06, 2011 11:19 am, edited 1 time in total.
Check our other product here:
http://www.forexcopier.com
http://www.forexcopier.com
-
- Posts: 151
- Joined: Tue Feb 24, 2009 1:03 pm
-
- Posts: 151
- Joined: Tue Feb 24, 2009 1:03 pm
-
- Posts: 905
- Joined: Sat Jul 11, 2009 10:54 am
Who is online
Users browsing this forum: Google [Bot] and 27 guests