fxDreema

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

    Market properties highest price not working on backtest

    Questions & Answers
    2
    19
    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.
    • T
      Tulefi last edited by

      I have a EA that work son M1 chart for USDJPY. One of the conditions uses Market properties Highest price Candles period to get the highest price for candles 2 to 5. Yet the ea is doing the calculation using candles 3 to 6.
      I suspect this is a backtesting issue but keen to know for certain before sending it live.
      One option is to use Delay for 1 second but this feature doesn't allow backtesting to work.
      Any ideas / suggestions?

      1 Reply Last reply Reply Quote 0
      • A
        ambrogio last edited by

        strange, can you show your condition block?

        1 Reply Last reply Reply Quote 0
        • T
          Tulefi last edited by

          Screen Shot 2023-05-08 at 14.44.05 pm.png

          1 Reply Last reply Reply Quote 0
          • T
            Tulefi last edited by

            I understand of course that current candle = 0

            1 Reply Last reply Reply Quote 0
            • A
              ambrogio last edited by

              looks good

              1 Reply Last reply Reply Quote 0
              • A
                ambrogio last edited by

                can you share your project, i''l test it too

                1 Reply Last reply Reply Quote 0
                • T
                  Tulefi last edited by

                  USDJPY sell-2.mq4
                  USDJPY sell-2.mq4

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tulefi last edited by

                    It's block 26. I am getting too many trades and compared to my analysis data the EA is often not calcualting this block as it should be.

                    1 Reply Last reply Reply Quote 0
                    • T
                      Tulefi last edited by

                      Thank you for looking at it!!

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        ambrogio @Tulefi last edited by

                        @Tulefi the file doesn't work and cannot load also. Please share the link to your project as below
                        click on the link and copy/past the page of project

                        Cattura2.JPG

                        1 Reply Last reply Reply Quote 0
                        • T
                          Tulefi last edited by

                          Sorry on it now.

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tulefi last edited by

                            shared/t7rwJJBfb

                            1 Reply Last reply Reply Quote 0
                            • A
                              ambrogio last edited by

                              Remove "once per bar" from the top and place it just above "sell now"
                              Check what happens and come back

                              1 Reply Last reply Reply Quote 0
                              • A
                                ambrogio last edited by

                                also the spread filter

                                1 Reply Last reply Reply Quote 0
                                • A
                                  ambrogio last edited by

                                  in any case you should test on M5 or M15 , since you are looking for values like + 19 pips on M1 (M1 candle on usdjpy is worth 3 or 4 pips, very small)

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    Tulefi last edited by

                                    Trading USDJPY. Problem is still happening. Do you know if it is possible to force the EA to wait to do the calcs when say a min of one tick has happened in the current period? That way I can have confidence the EA will use the right data when live.

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      ambrogio @Tulefi last edited by

                                      @Tulefi said in Market properties highest price not working on backtest:

                                      Trading USDJPY. Problem is still happening. Do you know if it is possible to force the EA to wait to do the calcs when say a min of one tick has happened in the current period? That way I can have confidence the EA will use the right data when live.

                                      I don't know, and I don't see the use of it. However your project works fine I don't know where is the problem. This is a test on M15. It's working

                                      Cattura2.JPG

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        Tulefi last edited by

                                        Yes I think this is down to the backtesting. Thanks for your help, very generous and appreciated.

                                        A 1 Reply Last reply Reply Quote 0
                                        • A
                                          ambrogio @Tulefi last edited by

                                          @Tulefi 👍

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

                                          Online Users

                                          K
                                          M
                                          B
                                          A
                                          C
                                          A

                                          14
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors