| View previous topic :: View next topic |
| Author |
Message |
Phil_Trade
Joined: 31 Jan 2012 Posts: 74
|
Posted: Tue Apr 10, 2012 6:08 pm Post subject: how to export trade with magic number and comment |
|
|
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 |
|
 |
FT Support
Joined: 11 Jul 2009 Posts: 901
|
Posted: Tue Apr 10, 2012 7:26 pm Post subject: |
|
|
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 |
|
 |
Phil_Trade
Joined: 31 Jan 2012 Posts: 74
|
Posted: Wed Apr 11, 2012 8:26 am Post subject: |
|
|
| 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 |
|
 |
FT Support
Joined: 11 Jul 2009 Posts: 901
|
Posted: Wed Apr 11, 2012 9:27 pm Post subject: |
|
|
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 |
|
 |
Phil_Trade
Joined: 31 Jan 2012 Posts: 74
|
Posted: Sat Apr 14, 2012 10:18 am Post subject: |
|
|
| 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
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 |
|
 |
FT Support
Joined: 11 Jul 2009 Posts: 901
|
|
| Back to top |
|
 |
Phil_Trade
Joined: 31 Jan 2012 Posts: 74
|
Posted: Fri Apr 20, 2012 6:13 am Post subject: |
|
|
| 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 |
|
 |
FT Support
Joined: 11 Jul 2009 Posts: 901
|
Posted: Sat Apr 21, 2012 6:32 pm Post subject: |
|
|
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 |
|
 |
Makai

Joined: 11 May 2012 Posts: 18
|
Posted: Fri May 11, 2012 11:08 am Post subject: |
|
|
| When I exported a trade history, I think there was the word "swap" in the csv. Am I wrong? |
|
| Back to top |
|
 |
FT Support
Joined: 11 Jul 2009 Posts: 901
|
Posted: Fri May 11, 2012 12:22 pm Post subject: |
|
|
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 |
|
 |
|