fxDreema

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

    Help With using variables (I think)

    Questions & Answers
    3
    7
    620
    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.
    • J
      johnkscott4781 last edited by

      https://fxdreema.com/shared/0kx4JMcie

      First off. Brilliant site here! Love it!

      Sharing my project. I have gotten it to work well in testing up until I wanted to add a condition to each side of the main algo area. I looped in blocks 36,38,39&40. What I am trying to do is allow a buy or a sell only if the distance between the current price and a moving average is less than the ATR14 value. What I did is set up two variables. BLDistBuy and BLDistSell. I am using blocks 36 & 39 to populate the variables so I can use them in the calculations in blocks 38 & 40. Trouble is, when I test it it appears not to work. If I take out my variable loops (blocks 36,38,39 & 40) the EA runs just fine. When I keep the variable loop in - no trades trigger. I am SURE I am doing something wrong 🙂 and have looked through a crapload of posts to try to figure this out. I would really appreciate if someone could let me know what I am missing here.

      Thanks in advance!

      X 1 Reply Last reply Reply Quote 0
      • X
        Xfire @johnkscott4781 last edited by Xfire

        @johnkscott4781 Hi. i changed your blocks. but you used Buy variable (BLDistBuy) for sell blocks

        im not sure that working perfectly
        i think you have some issue as well
        just try now
        https://fxdreema.com/shared/0kx4JMcie

        IN GOD WE TRUST

        1 Reply Last reply Reply Quote 0
        • J
          johnkscott4781 last edited by

          Thank you Xfire! I really appreciate it.

          Simple stuff gets missed hahaha! I based on what you posted I revised my project. I did indeed have wires crossed on the buy and sell variable. Copy and pasted and didn't revise. Oops! I made corrections and I still can't seem to get it to work the way I envisioned. It will not initiate and buys or sells. I must have something conflicting. Like I said above, if I take that variable loops out it executes just fine. So I've got something wrong here.

          Updated project link https://fxdreema.com/shared/EJHgQxqOc

          Thanks again!

          1 Reply Last reply Reply Quote 0
          • l'andorrĂ 
            l'andorrĂ  last edited by

            Is this the whole project or just a part of it?

            (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
            • J
              johnkscott4781 last edited by

              Hi. This is the whole project. So far. I have a couple more components to add (this variable question being part one of them). I have been building one component at a time and back testing as I go to see what helps and what doesn't. I would say this is 80% complete to what I am envisioning.

              Eventually I will likely substitute different components in and out to find a combination that works "best". But the guts of the logic won't change. Just the actual indicators that make up the conditions. 🙂

              1 Reply Last reply Reply Quote 0
              • l'andorrĂ 
                l'andorrĂ  last edited by

                The only thing I can recomend you now is dividing up the project into smaller parts and then test them separatedly. Maybe you will find the issue that way.

                (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
                • J
                  johnkscott4781 last edited by

                  Hi. Thanks for your help. I just sorted the issue. I found a beautiful little block called Check Distance which I had not previously seen. Works brilliantly for this!

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

                  Online Users

                  L
                  S
                  A
                  F

                  11
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors