fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Automatically save template

    Questions & Answers
    2
    5
    114
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fxgump last edited by

      Hi all,

      I would like my EA to automatically save template every 1 minute. Is there a way to do that?

      1 Reply Last reply Reply Quote 0
      • F
        fxgump last edited by

        Problem solved: I asked Deepseek to write the custom MQL code for me and it works great!

        https://fxdreema.com/shared/3m3re13B

        The code is as follows:

        MqlDateTime dt;
        TimeToStruct(TimeCurrent(), dt); // Get the current time as a structure

        // Create template name "TEMPLATE-YY-MM-DD hh-mm-ss"
        string templateName = StringFormat("TEMPLATE-%02d-%02d-%02d %02d-%02d-%02d",
        dt.year % 100, // Get last two digits of the year
        dt.mon, // Month
        dt.day, // Day
        dt.hour, // Hour
        dt.min, // Minute
        dt.sec); // Second

        // Save the template
        if (ChartSaveTemplate(0, templateName))
        {
        Print("Template saved successfully: ", templateName);
        }
        else
        {
        Print("Failed to save template.");
        }

        1 Reply Last reply Reply Quote 0
        • F
          fxgump last edited by

          PS: Deepseek knows how fxdreema works. When asking Deepseek to write some code, it's important to specify in the prompt that it will be used in fxdreema.

          1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà last edited by

            Interesting. Thank you for sharing.

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            F 1 Reply Last reply Reply Quote 0
            • F
              fxgump @l'andorrà last edited by

              @l-andorrà My pleasure

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Online Users

              E
              N
              S
              K
              M
              L
              E

              13
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors