struct TestHistory in fxt - page 2

 
ah ok - "importing tick data to history center"

but how do we edit these fxt files?

Here is free download:
http://www.programmersheaven.com/zone16/cat862/21568.htm
-Stan


thank you for this link. i downloaded this snazzy program and can now look into the fxt files of the different symbols. but i can't find any of these or anything that resembles 'spread'.

how do we find those?
 

thank you for this link. i downloaded this snazzy program and can now look into the fxt files of the different symbols. but i can't find any of these or anything that resembles 'spread'.

how do we find those?



000000 92 01 00 00 28 43 29 6F 70 79 72 69 66 68 74 20 ....(C)opyright
000010 32 30 30 35 2C 20 4D 65 74 61 51 75 6F 74 65 73 2005, MetaOuotes
000020 20 53 6F 66 74 77 61 72 65 20 43 6F 72 70 2E 00 Software Corp..
000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000040 00 00 00 00 43 48 46 4A 50 59 00 00 00 00 00 00 ....CHFJPY......
000050 01 00 00 00 02 00 00 00 BC 40 00 00 DC DA 14 43 .........@.....C
000060 84 1D 2A 43 00 00 00 00 00 00 00 00 00 00 00 00 ..*C............
000070 43 48 46 00 00 00 00 00 00 00 00 00 05 00 00 00 CHF.............
000080 02 00 00 00 00 00 00 00 7B 14 AE 47 E1 7A 84 3F ........{..G.z.?


Set the bold byte to spread value.
 
Hallelujah - it finally works! Thank you, Irtron.

Were you able to manipulate swap fees as well (e.g. to simulate mini account from standard account, because mini account backtesting does not seem to work)?

There are swap fees on my InterbankFX symbol screen (from Strategy Tester), but I can't see any being taken off in the Results tab.

Does anybody know if they really are included?
 
Hallelujah - it finally works! Thank you, Irtron.

Were you able to manipulate swap fees as well (e.g. to simulate mini account from standard account, because mini account backtesting does not seem to work)?


How did you simulate mini account from standard one?
I have noticed same problem.
-Stan
 
I guess one could at least replace the standard swap fees with the the min swap fees, same way as exchanging the zero for spread as explained above.

I haven't checked where this may be in the file - maybe Irtron would know?
 
Sorry guys, swaps are double. Binary representation of double values is not that obvious.
The swaps must be two eight bytes sequences at address 0000d0 (if my calculations are correct):

0000d0 66 66 66 66 66 66 c6 3f 66 66 66 66 66 66 de bf ffffff.?ffffff..


It would be easier to use a script:
double swapLong = 0.175;
double swapShort = -0.475;

int handle = FileOpen("USDJPY1_2.fxt", FILE_BIN | FILE_READ | FILE_WRITE);
FileSeek(handle, 16 * 13 /* d0 */ , SEEK_SET);
FileWriteDouble(handle, swapLong);
FileWriteDouble(handle, swapShort);
FileClose(handle);



The file should be in expert\files directory.

btw, the latest builds seem to set the spread and swaps correctly for back testing.

 
Thank you, Irtron - a script is very elegant for processing all these files!

Do you know what the FileSeek expresion would be to change the spread via a script?
I can see the list of variables from "importing tick data to history center" but not sure what to put into into FileSeek Line of your nice little script.

p.s. Are the swap fees listed as separate fees in the results? I don't seem to see any. Or are they taken off when closing positions?
Reason: