fxDreema

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

    Buttons don't work during backtesting

    Questions & Answers
    3
    4
    271
    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.
    • B
      bagheria last edited by

      Hi all,

      I have a problem. I have created an EA with 2 buttons. The first to draw lines automatically and the second to delete them. In live all works. But not during backtests. How can I do to allow my buttons to work during backtests? Thanks a lot for your help!

      1 Reply Last reply Reply Quote 0
      • B
        bagheria last edited by

        Look at my code to understand. If someone can help me... Thanks guys!

        https://fxdreema.com/shared/ENHMcr9ld

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

          Firstly, you can remove those 'pass' block. They are unnecessary. On the backtest problem, I think they cannot work there because of the way the backtest is executed on the platform. Sorry for not being very helpful.

          (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
          • willramsey
            willramsey @bagheria last edited by

            @bagheria For backtests, there is a "If Testing" block. Unfortunately with the backtester, OnChart doesn't work with buttons, but OnTick does. So if you want to backtest with it, you need to have an If Testing block, connected to the rest of your logic OnTick.

            i.e. This is a old example with just a simple buy button, which works in the backtester.
            https://fxdreema.com/shared/jvHegkKHc

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

            Online Users

            R
            F
            S
            D

            13
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors