Getting Swap value from API

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

Getting Swap value from API

#1 Postby dackjaniels » Fri Aug 05, 2011 4:32 pm

Hi,

After selecting an order using OrderSelect() it's possible to get many details of an order from the order history but I can't see an option to get the swap value (as listed in account history). Is this possible?

I would calculate it using something like

Code: Select all

swapvalue := OrderProfit - (OrderProfitPips * OrderLots * PipValue);


but of course PipValue is not available either :-/

I would really like to see these functions available in the API.

Regards,
Steve

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

#2 Postby FT Support » Sat Aug 06, 2011 11:25 am

Yes, for now there is no function to get Swap yet, we'll add it later.
Check our other product here:
http://www.forexcopier.com

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

#3 Postby dackjaniels » Sat Aug 06, 2011 1:23 pm

Please do, thanks :)

charvo
Posts: 52
Joined: Tue Dec 04, 2012 1:15 pm

#4 Postby charvo » Wed Feb 06, 2013 1:24 pm

this "OrderSwap" function is still not available in FT2.9, is it?

FT Support wrote:Yes, for now there is no function to get Swap yet, we'll add it later.

User avatar
Terranin
Site Admin
Posts: 833
Joined: Sat Oct 21, 2006 4:39 pm

#5 Postby Terranin » Mon Feb 11, 2013 1:56 pm

Uploaded new version here: http://www.forextester.com/files/temp/ForexTesterSetupEng29.exe . Added new function OrderSwap to the API, please check it.
Hasta la vista
Mike


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 11 guests