fxDreema

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

    Custom MQL code for saving a template

    Questions & Answers
    2
    3
    955
    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.
    • R
      robertk last edited by

      At the moment i am creating a robot to automate a bunch of pre-work (setting up charts for me to analyze). Part of this includes the automated saving of the current chart template when a button is pressed.

      I found the following code:

      bool ChartSaveTemplate(
      long chart_id, // Chart ID
      const string filename // Filename to save the template
      );

      When putting the above within a custom MQL block and defining ID and name i get the following errors:

      'ChartSaveTemplate' - function declarations are allowed on global, namespace or class scope only

      Can anyone tell me the correct way of doing this? Thanks

      R 1 Reply Last reply Reply Quote 0
      • R
        robertk @robertk last edited by

        Ok, apparently it had to do with me using using the code in the wrong way. Apparently its used this way:

        //--- Save the result in a template
        ChartSaveTemplate(0,"EURUSDTEST");

        Not able to remove this topic due to permissions, but perhaps anyone else finds this helpfull..

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

          @robertk 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.

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

          Online Users

          E
          M
          F
          E
          T
          S
          A
          M
          M
          E
          C
          M
          L
          F
          F

          35
          Online

          146.6k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors