fxDreema

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

    Indicator average value & Ichimoku

    Questions & Answers
    2
    5
    2817
    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.
    • M
      malfy last edited by

      Hi there!
      I've just began my adventure with fxdreema and i'm trying to build my first EA. I saw there's a lot of youtube videos and examples and it seems easy to do it but there are a pair of things that i can't figure out.

      I'm planning to analyze the range of the last closed candle and tell the EA to do something if High-Low is <= a specific value. This value comes from the average value of the ATR over a certain period x. So... i need to extract the value [ATR(x) Max + ATR(x) Min]/2. How can i do this?

      Another thing that is not clear is about the Ichimoku indicator and the position of the shifted lines. I mean... if i want to tell the EA to evaluate if the forwarded Kumo is bullish or bearish i can simply check if Senkou Span A > Senkou Span B but what candle ID i have to use? Can i use negative values to look forward?

      Thanks for the help!
      Daniele

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by miro1360

        values save into variables you can do like this:
        0_1488906358385_upload-55ce6fca-989e-484d-800e-055b9d23da4a

        but you need something specific which I can do only using custom code, like this for your atr:

        https://fxdreema.com/shared/RZ0wzsNne

        0_1488910341537_upload-52507f0b-9538-405f-8376-fa4516dd2f34

        there is other way how to look back and you gave me idea for new tutorial 😄 maybe I do it in few days ...

        and for this ichimoku yes, you need negative ID for some values, its ID depends on period, but not sure how 😄 test it ...

        Between trading and gambling is a very small gap, be careful.

        1 Reply Last reply Reply Quote 0
        • M
          miro1360 last edited by

          here fast tutorial how to do it with blocks (only how to find min max atr):

          https://fxdreema.com/forum/topic/4510/tutorial-loop-advanced-find-specific-value-from-indicator-history

          Between trading and gambling is a very small gap, be careful.

          1 Reply Last reply Reply Quote 1
          • M
            malfy last edited by

            Thanks so much Miro!
            I'm going to study your answers deeply.

            I suppose that this lookback function can also be usefull to find price maximum and minimum to identify a trend or support and resistence levels.
            It's interesting because there's a profitable strategy that we are discussing in an italian forex group, that is based on a breakout after a sequence of Higher High and Higher Lows and viceversa.

            About the Ichimoku, usually kumo lines are shifted forward 26 periods, so if 1 is the last closed candle and 0 is the current, probably the correct value to check the kumo created by the last closed candle is -24. I will test it 🙂

            1 Reply Last reply Reply Quote 0
            • M
              miro1360 last edited by

              test it with ichimoku, sure there is minus in ID but you need test it to find which value ...
              ...
              and if you need find highest or lowest value from candle price, there is function in block for it (but only for candles, not indicator, indicator try with my tip using loop) ...

              this is integrated in fxdreema blocks (for candle prices):
              0_1488931596613_upload-24d6040d-3caa-4c07-841a-a0fc717121b5

              Between trading and gambling is a very small gap, be careful.

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

              Online Users

              M
              M

              10
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors