Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • jarl
    Participant
    Post count: 5
    in reply to: Tick saver to CSV #19459

    Thanks,
    My problem would be solved by knowing how to obtain {AskVolume} and {BidVolume} in MQL4.

    In MQL4:
    {Timestamp:yyyyMMdd HH:mm:ss} is TimeToStr(TimeCurrent() – GMToffset *3600,TIME_DATE|TIME_SECONDS)
    {BidPrice} is Bid
    {AskPrice} is Ask
    {BidVolume} is ?
    {AskVolume} is ?

    jarl
    Participant
    Post count: 5

    I’m trying it, but it still fails.
    The file is copied fine, but I get no results at 99.99%.

    There is something else I should do, any clue?

    jarl
    Participant
    Post count: 5

    I’d found this:

    You can save fxt with a diferent name (i.e.: xEURUSD1_0.fxt). Then, in init function you can rewrite the fxt files generated by tester.

    #import “kernel32.dll”
    int CopyFileA(string strExistingFile, string strCopyOfFile, int OverwriteIfCopyAlreadyExists);
    #import

    int init() {
    //## FXT FILE PATCH
    int time=Period();
    string symbol=Symbol();
    string strCurrentFile = TerminalPath() + “\tester\history\x”+symbol+time+”_0.fxt”;
    string strNewName = TerminalPath() + “\tester\history\”+symbol+time+”_0.fxt”;
    int copy=CopyFileA(strCurrentFile, strNewName, 0);
    Print(“FXT file copied”);
    return(0);
    }

    I’ll try it.

Viewing 3 posts - 1 through 3 (of 3 total)