fxDreema

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

    how to buy sell in a specific time zone ?

    Questions & Answers
    2
    7
    3753
    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.
    • P
      pawels last edited by pawels

      Hello everyone, I'm new here and I have a quick question if someone could help me. I made an easy robot based on parabolic SAR, that works only at London timezone, but it doesn't close a position at the end of the session but keeps it until the next day.

      How to fix that problem? I want a robot that will buy and sell only in a London time zone, and don't open and keep the position until the next day?0_1541757725194_Screen Shot 2018-11-09 at 17.51.41.png

      1 Reply Last reply Reply Quote 0
      • isp00rt
        isp00rt last edited by

        Could you please show your parameters in 'Time filter' and 'Close trades' blocks?

        1 Reply Last reply Reply Quote 0
        • P
          pawels last edited by

          I did the same as in the example from the page, just added a time filter. Close trades same like in a sample.
          1_1541762362867_Screen Shot 2018-11-09 at 19.13.03.png 0_1541762362866_Screen Shot 2018-11-09 at 19.12.49.png

          1 Reply Last reply Reply Quote 0
          • isp00rt
            isp00rt last edited by

            Your time filter block is correct for launching orders. The problem here is that you need to specify a new (different) time filter block aboce the 'close order' block. What I mean is that you have to separate the launch time filter and the closing order one.

            P 1 Reply Last reply Reply Quote 0
            • P
              pawels @isp00rt last edited by

              @isp00rt what do you mean different time filter? I tried just with the same settings (first time filter )but in the result, EA didn't by any short positions.
              I know probably thinking in a completely wrong direction as you said.
              0_1541929761002_Screen Shot 2018-11-11 at 17.42.45.png

              1 Reply Last reply Reply Quote 0
              • isp00rt
                isp00rt last edited by

                Sorry, I didn't explain myself. What I mean is that you must separate both time filters so that each actos on different time periods: one for opening trades and the other one for closing them in an independent way. Just like this:

                0_1541938544023_00.png

                By the way, I recommend to use server time and not local time. Using the broker's server is always better.

                P 1 Reply Last reply Reply Quote 0
                • P
                  pawels @isp00rt last edited by

                  @isp00rt thanks a lot! Now it's working 0_1541995949016_Screen Shot 2018-11-12 at 12.08.21.png

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

                  Online Users

                  E
                  J
                  S
                  W
                  A
                  H
                  H

                  19
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors