fxDreema

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

    Testing Historical Trades with a new Strategy

    Questions & Answers
    4
    12
    1580
    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.
    • D
      DynamOut last edited by

      I have a client that is involved in exports, and has strategy that we have developed for the converting of their income funds from USD, EUR, GBP and CAD to ZAR.

      I am wanting to test out a strategy for improving on our current one, through back-testing these historical trades using this new strategy.

      I have a spreadsheet with the following data from the trades:

      1. Date/time stamp when these funds were received.
      2. Date/time stamp when these funds were traded.
      3. Size of the trade
      4. Price

      What I am wanting to do is to use the received date/time as a trade condition to initiate a buy. And then use the new strategy to execute the sell for each trade. And do this for each of the actual receipts. And then compare results to what was actually achieved

      From some research, it would seem the data could (for a start) be pasted in as an array in a custom mql4 block in FXdreema on initialisation. And then the trade conditions lookup can simply loop through this array in sequential order row by row (if my language is correct)?

      Once this works, then next level could be to import this from some library file on initialisation.

      Does this make sense? If so, can anyone help as to how to go about this?

      Thanks in advance
      James

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

        This is a questions for real programmers. Any hint for this gentleman?

        (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.

        T 1 Reply Last reply Reply Quote 0
        • T
          trader.philipps @l'andorrà last edited by

          @l-andorrà I have tried some approaches to open an order at a specific time (Unix Timestamp), but didn't find a solution, yet. If that is done, it looks almost like a no brainer.

          I like to share my knowledge, but expect the others to contribute as well.

          D roar 2 Replies Last reply Reply Quote 0
          • D
            DynamOut @trader.philipps last edited by

            @trader-philipps Yes, that would be the first step.
            Then next would be how best to loop through these trade by trade with an array in a custom block.
            Appreciate any assistance / direction.

            1 Reply Last reply Reply Quote 0
            • roar
              roar @trader.philipps last edited by

              @trader-philipps said in Testing Historical Trades with a new Strategy:

              @l-andorrà I have tried some approaches to open an order at a specific time (Unix Timestamp), but didn't find a solution, yet. If that is done, it looks almost like a no brainer.

              Couldn't you just use the time filter to create a small "window" for the order?

              Need small help? Tag me in your post
              Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

              T 1 Reply Last reply Reply Quote 0
              • T
                trader.philipps @roar last edited by

                @roar I was thinking of this as well on the timer tab. We would need a multi dimensional array (or 2 with the same length) that covers the trade time and the direction Buy/Sell (if that matters). Convert a Unix timestamp to MT4 date and a second one that adjusts it for a couple of seconds.
                @DynamOut will there be just 1 trade at a given time?

                I like to share my knowledge, but expect the others to contribute as well.

                1 Reply Last reply Reply Quote 1
                • D
                  DynamOut last edited by

                  @trader-philipps Yes, there would be just one trade at a time for each pair. These would all be buy entries

                  1 Reply Last reply Reply Quote 0
                  • D
                    DynamOut last edited by DynamOut

                    @l-andorrà @trader-philipps @roar
                    Could anyone assist in how to do this multidimensional array?

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

                      I'm afraid I'm not your man, sorry. I'm not a programmer. 😕

                      (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
                      • T
                        trader.philipps @DynamOut last edited by trader.philipps

                        @dynamout What I'm asking myself is that timing as also a clue to profitable trades. If your new strategy is compared to the same entries, so you just want to back-test the "new strategy" only for exits?

                        About how many trades are we talking here? In total and per pair/symbol?

                        I like to share my knowledge, but expect the others to contribute as well.

                        1 Reply Last reply Reply Quote 0
                        • D
                          DynamOut last edited by

                          @trader-philipps
                          Yes, to clarify, when the client receives notification of receipt of funds (say USD), he then needs to decide when he will sell those USD to ZAR. (we have the date/time stamp of receipt as well as his conversion date/time stamp & sell price)
                          We are looking to optimize the strategy for timing the selling of these USD funds to ZAR.
                          So what we want to do is initiate a USDZAR buy at this time/date stamp and then run our strategy on this trade until it executes a sell signal of this pair. And then compare with what he actually achieved on these trades.
                          Looking at around 234 trades the past year, mostly on USDZAR and EURZAR but also some GBPZAR and CADZAR, per below.
                          USD/ZAR 111
                          EUR/ZAR 96
                          GBP/ZAR 17
                          CAD/ZAR 10
                          Make sense?

                          1 Reply Last reply Reply Quote 0
                          • D
                            DynamOut last edited by

                            @trader-philipps
                            Just checking whether you saw this...?

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

                            Online Users

                            F
                            C
                            C
                            P
                            E

                            10
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors