Closed Trades Table

Moderator: Moderator

Closed Trades Table

Postby jjb8942 » Tue Feb 12, 2013 7:48 am

Good morning!

I am looking to access my closed trades and am having trouble understand the syntax. This seems to be the one sample that is missing from the ForexConnect sample pack. Does anyone have any code for accessing the closed trades table in the same way that the samples access the open positions?

Thanks for the help
jjb8942
 
Posts: 3
Joined: Tue Feb 12, 2013 7:41 am

Re: Closed Trades Table

Postby sunshine » Tue Feb 12, 2013 8:53 am

Please check the PrintTable sample located in the folder SimpleSamples\TableManagerSamples\PrintTable\ within the folder where FXConnect is installed.
Please note that the Closed Trades table is cleared at the beginning of the trading day.
sunshine
 

Re: Closed Trades Table

Postby jjb8942 » Tue Feb 12, 2013 3:59 pm

My apology, I failed to mention that I am referring to VBA as I would like to use this data in excel. I don't see the print trades in the sample folder for VBA. But I also do not have that file in the SimpleSamples VB folder...
jjb8942
 
Posts: 3
Joined: Tue Feb 12, 2013 7:41 am

Re: Closed Trades Table

Postby Ekaterina » Wed Feb 13, 2013 5:09 pm

Hi jjb8942,

Do you prefer to work with tables through TableManager or through Readers?
Ekaterina
 

Re: Closed Trades Table

Postby jjb8942 » Sat Feb 16, 2013 6:07 am

I have only worked with the TableManager.
jjb8942
 
Posts: 3
Joined: Tue Feb 12, 2013 7:41 am

Re: Closed Trades Table

Postby Ekaterina » Sun Feb 17, 2013 5:48 pm

Hi jjb8942,

I have only worked with the TableManager.


Please see the following sample, that has a similar functionality with the PrintTable sample:

Code: Select all
 Do While offers.getNextRow(iter, offer)
            If offer.SubscriptionStatus <> "D" then
                sOffers = sOffers & offer.Instrument & " Bid:" & CSTR(offer.Bid) & ", Ask:" & CSTR(offer.Ask) & CHR(10) & CHR(13)
            End If
        Loop


This sample is located in the ForexConenct folder: %:\ProgramFiles\Candleworks\ForexConnectAPI\samples\com\VBS\offers_TableManager.vbs

Best regards,
Ekaterina
Ekaterina
 

Re: Closed Trades Table

Postby compac » Mon Dec 15, 2014 2:30 pm

Enter the email address you want to send the emails to by default. This address will be used as a default value of the email parameters in the strategies.
adil
compac
 
Posts: 1
Joined: Mon Dec 15, 2014 2:25 pm


Return to ForexConnect API

Who is online

Users browsing this forum: No registered users and 4 guests