Pip value

How to create strategies and indicators
Message
Author
dackjaniels
Posts: 151
Joined: Tue Feb 24, 2009 1:03 pm

Pip value

#1 Postby dackjaniels » Mon Aug 01, 2011 10:54 am

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

FT Support
Posts: 905
Joined: Sat Jul 11, 2009 10:54 am

#2 Postby FT Support » Tue Aug 02, 2011 6:33 am

Check our other product here:
http://www.forexcopier.com

dackjaniels
Posts: 151
Joined: Tue Feb 24, 2009 1:03 pm

#3 Postby dackjaniels » Tue Aug 02, 2011 9:58 am

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

FT Support
Posts: 905
Joined: Sat Jul 11, 2009 10:54 am

#4 Postby FT Support » Tue Aug 02, 2011 10:47 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.
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

dackjaniels
Posts: 151
Joined: Tue Feb 24, 2009 1:03 pm

#5 Postby dackjaniels » Tue Aug 02, 2011 10:53 am

Great explanation, thank you!

Will look at doing this soon.

Steve

dackjaniels
Posts: 151
Joined: Tue Feb 24, 2009 1:03 pm

#6 Postby dackjaniels » Fri Aug 05, 2011 4:21 pm

FTSupport,

Just to clarify your reply above, where does st_InvertedUSD come in?

Should your reply have been?

- return st_Normal if currency name starts from 'USD'
- return st_InvertedUSD if currency name ends with 'USD'
- return st_Other in other cases.

Thanks,
Steve

FT Support
Posts: 905
Joined: Sat Jul 11, 2009 10:54 am

#7 Postby FT Support » Sat Aug 06, 2011 11:20 am

Oops, you're right, i've corrected my post. Sorry
Check our other product here:
http://www.forexcopier.com

dackjaniels
Posts: 151
Joined: Tue Feb 24, 2009 1:03 pm

#8 Postby dackjaniels » Sat Aug 06, 2011 1:22 pm

Thanks


Return to “FT API”

Who is online

Users browsing this forum: Google [Bot] and 27 guests