fxDreema

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

    Help, EA Close all trades!

    Questions & Answers
    3
    11
    2341
    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
      master1793 last edited by

      I need help 😳 , I want to create an EA to close all trade when level2 (appear icon), already tried all possible ways (visible indicator, apper indicator, condition, etc) (Whith all buffer) Still doesn't work 😢 .

      (to orders I started manual way)

      Attached two versions of the same indicator.

      ......
      #4X 2010 Semafor.mq4
      3_Level_ZZ_Semafor.mq4

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

        Here the example i tried:

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

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

          Can you compile the indicator? Because I can't http://prntscr.com/7m3zz5

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

            I can copilate the 3_Level_ZZ_Semafor.mq4

            '3_Level_ZZ_Semafor.mq4' 3_Level_ZZ_Semafor.mq4 1 1
            not all control paths return a value 3_Level_ZZ_Semafor.mq4 248 2
            0 error(s), 1 warning(s) 1 2

            The indicator work well in Meta Trader, why don't work in the EA of fxdreema? The goal is only close all trades when get level 2, no matter if is down or up.

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

              If you are trying to close trades made manually, I think you need to change your magic start number to zero in the project settings.

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

                When you are not sure whether an indicator works or not, just put it in "Indicator tester" to see what it's buffers provide. If there are values different than 24XXXXXXXX, then it can be used. Otherwise you should try something else, for example changing Candle ID. Many indicators just work in some older candle and provide nothing for the current one.

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

                  Using "Indicator tester" with 3_Level_ZZ_Semafor, all bufer provide 0 value, the custon indicator have "SetIndexEmptyValue(1,0.0)" in your code, but ever the value is 0.

                  Can somebody help me to change the code? to bring a value when the indicator is in level 2 or 3? with this i can use the indicator on Fxdreema.

                  the code is here:
                  http://www.forexmt4.com/mt_yahoo/3_Level_ZZ_Semafor.mq4

                  https://lh4.googleusercontent.com/CkYBlETkrMXKeo9PT-9iIOcYcfY4vySfMSdg7UoFJTQjPf38R-2uScMfcn9Ag0V5B-XUjNIRO8dvQEI=w1834-h976-rw

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

                    I found that I have this indicator already and it produces normal values other than 0 for me, even for the current candle 😮 http://prntscr.com/7o5ymr

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

                      Ok, thank you, is possible work with this indicator on Fxdreema, but, not is so easy, i'm learning yet.

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

                        You can create a function to close all trades when the indicator bring up the arrow on the chart? I tried everything 😢

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

                          Condition (indicator > 0) => Close Trades
                          Indicator is visible => Close Trades

                          Any of these shoud work. But first make sure that you use the indicator with correct settings. "Indicator tester" can help. Normally you need to set Candle ID to 1 (or more) for arrow-based indicators

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

                          Online Users

                          H
                          S
                          E
                          J
                          H

                          11
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors