fxDreema

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

    Just When You Thought You Had It

    Questions & Answers
    2
    5
    1346
    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.
    • ndt113
      ndt113 last edited by

      If you're familiar with my last forum, I'm sure you noticed the pain and struggles I went through to figure out that problem; nonetheless, no problem is unsolvable. Hours upon hours, I finally figured out what was wrong and I got the EA to work. However, it was time now to figure out in that EA to get the EA to buy whenever a buy signal shows up (which I got that part) and to close when a sell signal from the indicator appears. On this problem alone I probably spent a good 3 hours and I was still stumped.

      http://puu.sh/rVN0Q/8a0cf21b6a.png

      So far, this is as close as I got, DESIGN WISE; when I throw this design on the EA, IT GOES HORRIBLY WRONG, like literally, HORRIBLE.

      http://puu.sh/rVN9O/98732e6021.jpg

      So, as you can see, what I'm trying to do here is have the EA buy when the buy signal APPEARS, and close the trade when a sell signal APPEARS while opening a sell order and closing when a buy signal APPEARS and visa verse over and over and over again.

      https://www.mql5.com/en/code/8173

      by the way guys, the indicator that I'm referencing to is located in that url up top. Knock yourselves out and download it and us it. I personally think it's a pretty good indicator when modified properly, and it can make a lot of bread when mixed with other good strategies.

      If anyone any place the blocks in the right order to show me what I'm trying to achieve I would really appreciate the help. Thanks so much and looking forward to help anyone else who has any questions.

      Just another day, Noor

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

        Make sure you understand some basics:
        About the way blocks run: https://fxdreema.com/demo/mt4-wrong-closing-rule
        About pink blocks (use Close Trades instead close😞 https://fxdreema.com/demo/mt4-loop-how-it-works

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

          http://puu.sh/rX42u/6493661a0d.png

          Alright, I just wanted to fill you in that I have figured it out and that was what I came up with and it was able to work. However, I am still having a few problems that I'm sure I can figure out in time, such as, well for one it keeps on opening multiple trades at random times when a condition is met and closing them right away. For that issue I think ima have to add an ONE TRADER PER BAR block or something, however, I can't exceed the 10 step since I'm not a SUBSCRIBER to fxdreema,..... YET lol. There was one more problem that I was having and that was during some trades which the condition is met, it wouldn't open any trades and at times it would. Weird.

          Nonetheless, when I have some more free time and I finish up my homework for my college class I'll be spending a lot more time playing around with these blocks.

          Thank you so much fxdreema for the lovely and hard work you are putting into this. Your work will not go unnoticed. 😄

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

            Ok, so here's the next problem that I am having at the moment.

            http://puu.sh/rXKV8/e002c9152e.jpg

            What's happening here is that the EA is taking more trades than it is suppose to during the same bar, even while I have the ONE TRADE PER BAR block attached.

            http://puu.sh/rXL2A/38af7797c3.png http://puu.sh/rXL8Y/c248dda934.png

            http://puu.sh/rXLil/61075c6082.jpg
            while in some cases, the indicator will appear a trade signal, it'll take the trade and close it right away for some reason, meanwhile, other times it won't do that.

            http://puu.sh/rXLoe/d22efa3a37.jpg
            and other cases, no trade signal and it will take the trade. Not good.

            http://puu.sh/rXLvS/5a6766ad0b.png

            However, if I use this trading strategy, I get good results. Why, I can't figure it out. http://puu.sh/rXLzD/b562e674e6.png

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

              I see 2 paths for "Sell now" - the first one is after block 7 and the second one is via block 16. Yes, "Sell now" will run 2 times in this configuration if the candle is new for "Once per bar".

              I think I told you few times about that immediate close. I don't know what else to say 🙂 Here is that flip-flop example from which you can get some ideas: https://fxdreema.com/demo/mt4-buy-sell- ... conditions

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

              Online Users

              T
              S
              F
              C

              11
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors