fxDreema

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

    [SOLVED] Get stats in a .CSV / Write to file block

    Questions & Answers
    3
    7
    1601
    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.
    • jerkha
      jerkha last edited by jerkha

      Hello everyone,

      I have included a "write to file" block to get specific statistics on my backtests.

      However my issue is to link it with the results from the backtest itself.

      It would be easy if there was a way to write in the CSV file the "pass number" of the backtest.
      I guess another way would be to get the results from the backtest in the CSV file on deinit but I do not know how to.

      Thank you for your help.
      Jérémy

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

        @jerkha Not sure if that is possible with fxDreema. But I'm also interested on any solution for this.

        (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
        • jerkha
          jerkha last edited by

          I found a way that I have to dig into : https://www.mql5.com/en/docs/constant_indices

          0_1630973151919_1dab584a-ebb5-45d4-af7c-c036d52d5e19-image.png

          I now have to create a custom block to be able to call these constants. Don't know how to (yet) so if anybody has mql5 capacities to help it would be awesome.

          1 Reply Last reply Reply Quote 1
          • jerkha
            jerkha last edited by jerkha

            I just can't believe how easy it was actually...

            Here is the shared project : https://fxdreema.com/shared/vauFi9zNd

            0_1631056701496_6326132d-5800-4fcc-aeb4-f02ffe6362b0-image.png

            You just have to call the "TesterStatistics(STAT_whatever needed)" and store in a variable then put it in your write to file.

            This is a big game changer for me and I hope it would help others !

            I put the topic on solved.

            BONUS : If like me you think that 10 columns in write file isn't enough, use a custom block to put all your constants & variables in a string separated with a comma (like this)
            0_1631057372252_94d882fa-0050-4b53-8544-35dbae8561b7-image.png
            Then in Excel use the "convert" option :

            Highlight the column that contains your list.
            Go to Data > Text to Columns.
            Choose Delimited. Click Next.
            Choose Comma. Click Next.
            Choose General or Text, whichever you prefer.
            Leave Destination as is, or choose another column. Click Finish.

            Source : https://www.adinstruments.com/support/knowledge-base/how-can-comma-separated-list-be-converted-cells-column-lt

            l'andorrà 1 Reply Last reply Reply Quote 2
            • l'andorrà
              l'andorrà @jerkha last edited by

              @jerkha Great! Thank you very much 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
              • U
                UnicornMadness last edited by

                Would one be able to use this during a single backtest to store data of indicators NOT used in a strategy?

                So, while running a backtest of a certain strategy, I'd like to collect values of e.g. BollingerBand to analyze in Excel whether losing periods were during certain BB values... And use the evidence to add a BB indicator (filter) to the strategy or not...

                jerkha 1 Reply Last reply Reply Quote 0
                • jerkha
                  jerkha @UnicornMadness last edited by jerkha

                  @unicornmadness I don't see how you could get BB bands value without it included in the EA. Including it doesn't mean it has to interfere with your entry or exit signals.
                  However you can get BB bands values (or calculations) when a trade is closed and store it in a CSV file. Use a boolean variable to check if trade was profitable and store it in the file as well.

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

                  Online Users

                  A
                  B
                  S
                  E
                  W
                  M
                  M
                  A

                  22
                  Online

                  146.6k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors