Forex Tester Forum (Professional Training Software for Traders) Forum Index Forex Tester Forum (Professional Training Software for Traders)

Back to main site   Risk disclosure
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to export trade with magic number and comment

 
Post new topic   Reply to topic    Forex Tester Forum (Professional Training Software for Traders) Forum Index -> General Questions about FT
View previous topic :: View next topic  
Author Message
Phil_Trade



Joined: 31 Jan 2012
Posts: 74

PostPosted: Tue Apr 10, 2012 6:08 pm    Post subject: how to export trade with magic number and comment Reply with quote

Hi

I want to analyse my trade but can't find a way to export magin number and comment for analyse purpose.

Philippe

_________________
Philippe
Back to top
View user's profile Send private message
FT Support



Joined: 11 Jul 2009
Posts: 902

PostPosted: Tue Apr 10, 2012 7:26 pm    Post subject: Reply with quote

Hello Philippe,

Sorry but this is not possible in the current version of the software. We'll add this feature later.

_________________
Check our other products here:
www.fx-metropolis.com
www.forexcopier.com
Back to top
View user's profile Send private message Visit poster's website
Phil_Trade



Joined: 31 Jan 2012
Posts: 74

PostPosted: Wed Apr 11, 2012 8:26 am    Post subject: Reply with quote

FT Support wrote:
Hello Philippe,

Sorry but this is not possible in the current version of the software. We'll add this feature later.


aie ! Is there a file ( ascii or other) that i can read to import these fields in my database ? ( i am a developper )

when will you provide the next version ?

_________________
Philippe
Back to top
View user's profile Send private message
FT Support



Joined: 11 Jul 2009
Posts: 902

PostPosted: Wed Apr 11, 2012 9:27 pm    Post subject: Reply with quote

Hello Phil,

Oh, great, in this case I'd recommend creating an automatic strategy and exporting data about orders from this strategy. Orders data are stored in RAM and are saved in file only when you stop the test.

_________________
Check our other products here:
www.fx-metropolis.com
www.forexcopier.com
Back to top
View user's profile Send private message Visit poster's website
Phil_Trade



Joined: 31 Jan 2012
Posts: 74

PostPosted: Sat Apr 14, 2012 10:18 am    Post subject: Reply with quote

FT Support wrote:
Hello Phil,

Oh, great, in this case I'd recommend creating an automatic strategy and exporting data about orders from this strategy. Orders data are stored in RAM and are saved in file only when you stop the test.


so simple...i forget i can write it Smile

example procedure call from GetTick one time a day

Code:
Procedure WriteTrade ; stdcall;
var
   fTradeDataFile: TextFile;
   MonFichier : string ;
   i :integer;
begin
if HistoryTotal > 1 then      // N°1 = balance origine
begin
//Print('Ecriture Fichier Trades');
MonFichier := 'C:\ForexTester2\Temp\Trade.txt';

  AssignFile(fTradeDataFile, MonFichier);

      {$I-}
      Rewrite (fTradeDataFile);
      {$I+}
      If  not(IOResult = 0) then Print ('file rewrite error');


for i:=0 to HistoryTotal - 1 do
begin
  if OrderSelect(i, SELECT_BY_POS, MODE_HISTORY) then
  begin
   if (OrderType = tp_buy) or (OrderType = tp_sell) then
   begin
   WriteLn(fTradeDataFile, IntTostr(OrderTicket),';',OrderSymbol,';',TypeToString,';',MavaleurToStr(OrderLots,2)+';'+DateTimeToStr(OrderOpenTime)+';'+MavaleurToStr(OrderOpenPrice,5)+';'+MavaleurToStr(OrderStopLoss,5)+';'+MavaleurToStr(OrderTakeProfit,5)+';'+DateTimeToStr(OrderCloseTime)+';'+MavaleurToStr(OrderClosePrice,5)+';'+MavaleurToStr(OrderProfitPips,0)+';'+MavaleurToStr(OrderProfit,0)+';'+IntToStr(OrderMagicNumber)+';'+OrderComment );
   end;
  end;
end;

  CloseFile (fTradeDataFile);
end;
end;

_________________
Philippe
Back to top
View user's profile Send private message
FT Support



Joined: 11 Jul 2009
Posts: 902

PostPosted: Sat Apr 14, 2012 7:12 pm    Post subject: Reply with quote

Philippe, thank you for sharing this!
_________________
Check our other products here:
www.fx-metropolis.com
www.forexcopier.com
Back to top
View user's profile Send private message Visit poster's website
Phil_Trade



Joined: 31 Jan 2012
Posts: 74

PostPosted: Fri Apr 20, 2012 6:13 am    Post subject: Reply with quote

FT Support wrote:
Philippe, thank you for sharing this!


I have not found how to read swap information ?

Is there a solution to complete export trade ?

_________________
Philippe
Back to top
View user's profile Send private message
FT Support



Joined: 11 Jul 2009
Posts: 902

PostPosted: Sat Apr 21, 2012 6:32 pm    Post subject: Reply with quote

Sorry but it is not possible to export swap values of the orders. We'll probably add this feature later.
_________________
Check our other products here:
www.fx-metropolis.com
www.forexcopier.com
Back to top
View user's profile Send private message Visit poster's website
Makai



Joined: 11 May 2012
Posts: 18

PostPosted: Fri May 11, 2012 11:08 am    Post subject: Reply with quote

When I exported a trade history, I think there was the word "swap" in the csv. Am I wrong?
Back to top
View user's profile Send private message
FT Support



Joined: 11 Jul 2009
Posts: 902

PostPosted: Fri May 11, 2012 12:22 pm    Post subject: Reply with quote

Yes, there is swap in the exported data but you cannot get swap from the code of the EA
_________________
Check our other products here:
www.fx-metropolis.com
www.forexcopier.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Forex Tester Forum (Professional Training Software for Traders) Forum Index -> General Questions about FT All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group