fxDreema

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

    Strange Timeframe Problem*

    Questions & Answers
    4
    11
    702
    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.
    • Morpheus_0
      Morpheus_0 last edited by Morpheus_0

      Hi All,

      My EA doesn't open trades on the 15min chart. But if I switch to a 5min or 1hr chart, it opens the trade....!

      Any ideas...?

      S 1 Reply Last reply Reply Quote 0
      • roar
        roar last edited by

        Do you use a timeframe selection in some block?

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

          Hi Roar,

          No. I generally only use the 'Current' timeframe setting....

          I've isolated the problem to the MA Cross...I have the cross width set to 40. So the problem is here somewhere...*

          The crossover happens within Candles 1-40 so I'm not sure what I'm missing...?

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

            I'm not sure the cross width can be used like that...

            Need small help? Tag me in your post
            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

            Morpheus_0 1 Reply Last reply Reply Quote 0
            • Morpheus_0
              Morpheus_0 @roar last edited by

              @roar said in Strange Timeframe Problem*:

              I'm not sure the cross width can be used like that...

              What do you mean....?

              If I'm looking for the MA cross within the last 40 candles, how would I set that up...?

              Regards*

              roar fxDreema 2 Replies Last reply Reply Quote 0
              • roar
                roar @Morpheus_0 last edited by

                @Morpheus_0 I think "cross width" means that ID 0 must be "above" and exactly ID 40 must be "below", or whatever operator you use.

                To get "some candle within 40" you need a loop that goes through IDs 1-40

                Need small help? Tag me in your post
                Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                fxDreema 1 Reply Last reply Reply Quote 0
                • fxDreema
                  fxDreema @roar last edited by

                  @roar Yes, this option changes the id of the previous candle.

                  By default the crossover compares 4 values - 2 values from the current candle (or the one you choose) and 2 values from its previous candle. If the current candle is 0, the previous one is 1, and the difference (cross width) is 1.

                  This functionality is one that I regred adding, and I never found a reason to use it. The problem is that if you are using 40 candles difference, anything could happen inside them. Other crossovers and what not.

                  1 Reply Last reply Reply Quote 1
                  • fxDreema
                    fxDreema @Morpheus_0 last edited by

                    @Morpheus_0 said in Strange Timeframe Problem*:

                    If I'm looking for the MA cross within the last 40 candles, how would I set that up...?

                    There is one fancy block with stupid name "Indicator moves within limits". It's like multiple Condition blocks in one. While the Condition compares 2 values (or 4 when crossover is used), this block checks 2 values... and then 2 from the previous candle... and then 2 from the previous candle... as many candles as you choose.

                    So you can check for example whether for X candles the MA value was always above Candle Close, or not. But better try it.

                    Morpheus_0 1 Reply Last reply Reply Quote 0
                    • Morpheus_0
                      Morpheus_0 @fxDreema last edited by Morpheus_0

                      @fxDreema @roar Thankyou for the help.

                      I still can't seem to work out how to see if a MA cross occurred within the last 40 candles using the "moves within limits" block because it only shows 1 indicator, not 2 like normal condition block*
                      condition1.JPG
                      EDIT - I think it's because I need to use 'Dynamic Value' instead of 'Fixed Value'...?

                      1 Reply Last reply Reply Quote 0
                      • S
                        sktsec @Morpheus_0 last edited by

                        @Morpheus_0
                        It happened to me a lot until I found that there were errors like array out of range in the journal or EA output terminal window. The reason that your EA not working in some tf or some instrument may simply because there is corruption in history data or not enough data. Have you try re download all historical data and mostly importantly, set a large number in the chat setting so to display enough bars?

                        Morpheus_0 1 Reply Last reply Reply Quote 0
                        • Morpheus_0
                          Morpheus_0 @sktsec last edited by Morpheus_0

                          @sktsec - Thanks for the suggestions. The issue is actually trying to find an MA Crossover in the last 40 candles, but I will have a look*

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

                          Online Users

                          V
                          O
                          J
                          B

                          13
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors