fxDreema

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

    Close all current trades and orders at next daily candle open

    Questions & Answers
    3
    4
    403
    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.
    • K
      krunal20 last edited by

      Hello,

      I'm trying to get my EA to close all live trades and orders at the next daily candle open. Currently i'm using the time filter block to specify a GMT time to estimate what time the next daily candle will open. However, due to daylight saving time changes, this causes some trades/orders to close too early or late depending on the month we are in.

      So is there an easy way to just specify for my trades/orders to close at the next daily candle open? This way, all of the daylight saving time changes are taken care of. Any help or direction would be much appreciated. Thanks, KP.

      This is my current setup:

      0_1629540564276_Screenshot 2021-08-21 at 20.09.10.png

      TipsyWisdom l'andorrà 2 Replies Last reply Reply Quote 0
      • TipsyWisdom
        TipsyWisdom @krunal20 last edited by

        @krunal20 0_1629542798961_9056af6b-91d0-4a20-8dd3-0c1e7d5ec496-image.png

        backtests dont account for time outside of server time.

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

          @krunal20 This will close all open trades at the open price of every daily candle, no matter what time is it:

          0_1629544141667_01.png

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

            @TipsyWisdom Thanks for the response! However, the time filter works in backtesting when i set it to 19:58 in some cases but I think you're right, I have seen cases where it hasn't worked as expected when I change the time to be something else.

            @l-andorrà Thanks for that. I have tried that before but can't seem to get it to work. It doesn't close any trades at all, just waits until they hit the s/l or t/p.

            Just having a look at the chart behaviour and what I actually want is for the trades to be closed at the close of the current daily candle rather than the open of the next (even in cases where the trade has just been executed a minute before the close).

            Appreciate the replies guys. Please let me know if i'm not being clear on what i'm trying to achieve.

            Cheers, KP.

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

            Online Users

            C
            A
            X
            J

            13
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors