fxDreema

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

    Workaround or bug in fxdreema loop?

    Questions & Answers
    2
    4
    514
    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.
    • E
      edmundtan last edited by edmundtan

      Backtest in MT4 and I think there is a bug in my code. Can someone please take a look.

      After Stop Loss, EA suppose to count the loss money -46.95 and calculate the recovery lot size for next order. It is working fine when there is only 1 Stop Loss order.

      However, when there are 2 stop loss orders closed, the ea during backtest only calculate the loss for 1 order and use the lot size for next 2 orders.

      order #32 after SL -46.95 should open buy order 0.11/0.12 but instead it open order with lot size 0.04
      order #33 after SL -16.95 should open buy order 0.04 which is correct

      0_1601814038880_60589aed-c0fb-4754-8e71-2f30c17d9298-image.png

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

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

        @edmundtan You are using the same variable for buys and sells and I don't see when or where are theu reinitialized. Additionally, you are using a 'For each trade' block immediately below the block doing exactly the same: both take the most recent trade. You can remove the 'For each trade' block.

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

          Thanks. I have fixed it with your advice.

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

            @edmundtan You're welcome.

            (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

            D
            E
            M
            H
            C
            I
            I
            E

            25
            Online

            146.6k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors