Home Forums Tickstory Lite General Discussion How can I launch MT4 in command line?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • 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.

    imported_tickstory
    Participant
    Post count: 1479

    Hi Jarl,

    Thanks for your suggestion. At the moment Tickstory doesn’t allow launching directly from the command-line. We are considering this as a future feature.

    The suggestion you made regarding copying the FXT file is a good one. Obviously it only applies to those users who have access to the EA code. Perhaps you can let us know how you go with this?

    Thanks!

    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?

    imported_tickstory
    Participant
    Post count: 1479

    Hi Jarl,

    Have you managed to get 99.9% back-tests by following the ‘normal’ process? If so, it may be that replacing the FXT file in the Init() function doesn’t work.

    Thanks.

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

You must be logged in to reply to this topic.