fxDreema

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

    Sorry, I can't find a thread I found some months ago

    General Discussions
    2
    21
    6858
    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.
    • isp00rt
      isp00rt last edited by

      I am going to create a new EA and I found how it could be done in thread I can't find right now (before the forum interface was changed). Any help would be appreciated. In that thread it was explained how the following could be done:

      1. For each chart in which the EA is running, conditions applying to timeframes above the current one were taken into account in it now.

      2. No matter how many charts the EA is running into simultaneously, once a specified number of pips is reached from the total trades open right now, all of them were closed.

      Thank you.

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

        I think I remember the answer to my first point was something like this:

        [https://fxdreema.com/shared/FLqLpaaIc](link url)

        Basically I want to open a trade when price is above/below a Moving Average on three timeframes simultaneously: daily, 4H and hourly. The EA has to check at the beginning of every 1H bar if conditions at superior timeframes are met.

        Is this the way to do it?

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

          this?

          0_1486761771027_upload-de4351b8-ac23-428f-8b22-dc1e1e373fb4

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

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

            Ok. Please let me check I understood your screenshot.

            1. The "once per bar" block is specified only to the timeframe that will be checked. In my example it was the "current" one, ie, 1H.
            2. The "once per bar" block is put at the top of the sequenced orders and not between the 4H and 1H condition blocks.
            3. All actions are specified on candle ID 1, is the last completed candle.

            Is that right?

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

              this are my words:
              Once per bar is first controlling block for next connected ... next connected blocks are running only when first block (in this case Once per bar) pass ... and pass once per new candle (then wait for next candle)
              when pass, first Condition is checked (if Close on yesterday daily is > as MA on current TF), when pass next condition and the same for last condition .. when all conditions are true, open buy ...

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

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

                I built it following your suggestions. Please take a look.

                https://fxdreema.com/shared/qQbfX3b3e

                I tested it on demo account but it doesn't work correctly. Sometimes the trade is open and sometimes it's not (even condirtions are met). The weirdest it does i opening a sell trade when buy conditions are met! 😦

                What am I doing wrong?

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

                  a ) post screen where it sometimes open and sometimes not open

                  b ) when you will have simultanously opened only one trade (only buy or only sell, not both) rearange blocks this way:
                  0_1487021005218_upload-4e5f4a7b-dc07-46a9-a0b0-0e6d0cd8acbf

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

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

                    Apparently, buy conditions are working normally, but wierdly sell conditions are not. Images included:

                    Daily conditions met:
                    alt text

                    4H conditions met:
                    alt text

                    1H conditions met:
                    alt text

                    But no sell is traded at 15 min timeframe
                    alt text

                    Please notice that the EA is at "working" status but no trade has been opened. 😢

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

                      change in all conditions block Indicator Timeframe to match with left Candle Timeframe, like this daily:

                      0_1487088328985_upload-df580a7b-1e73-46ce-bf22-ed89a04cecdc

                      do it for all blocks where is comparison with candle

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

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

                        Great. It worked!! 😉 Now I have a new problem. I added a timer block to specify when the EA will be active.

                        https://fxdreema.com/shared/FT2HDnLsd

                        Problem is that I can't activate the EA on the MT4. 😦 I don't know why but I can't select it to put it into a chart (and yes, the Autotrading button in the platform is activaded). Could you please tell me why? It looks like this:

                        http://i64.tinypic.com/2vcgv35.png

                        Thank you very much for your help. I see fxdreema is very busy now.

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

                          where is your timer?

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

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

                            Can't you see the first top block "Time filter"? I can see thruogh the link I embedded. Can you please confirm you can see it? Maybe there's a problem with the link.

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

                              i see now, time filter not timer 😄 ...
                              this is solution for you:
                              0_1487173506245_upload-370686a7-12e8-4117-b114-98459711b706

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

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

                                Again, thank you very much for your impressive help. 😀 You're an expert! I see Mr. Fxdreema is very busy. Fortunately you are solving my problems before my monthly fees expires.

                                Now I would like to seize the opportunity of your kind attention to ask for my final and most complicated question about my EA . I don't find any example related to what I want to do, so I would appreciate your knowledge to give me some hints about this:

                                1. I want to run my EA on several charts simultaneously.
                                2. I want a "pip counter" (sorry, I don't know the correct word in English).
                                3. The counter should count how many net pips are being accumulated every day considering all trades previously closed and those open now.
                                4. Its function would be: close all current trades (no matter if they are in profit or not right now) if the overall net pips today is X (a constant)

                                This means that, for example if X=40 pips, and today 2 trades were closed with a net total loss of 30 pips, then the total number of pips of other trades during the day should be 70 pips in profit for the condition to be met. In other words, I need a kind of "memory space" within the EA in order to count all pips accumulated today from all charts to be checked at every moment.

                                Some hints, please? :simple_smile:

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

                                  lets take photoshop subscription as example ... somebody will make profi picture based on specific requirements ... ask in photoshop help how to do it ... nobody solve his problem during subscription ... who is responsible for creating this picture, photoshop company or member? 😄
                                  another example ... subscription in CAD system, member ask how to create engine based on this requirements .... again nobody solve his problem during subscription .. who is responsible for creating his engine? 😄 ...
                                  I think, fxDreema is tool and every member must learn how to take this tool into own creativity.

                                  see here, this is one way how to solve your EA (and it is not only way, there sure many others):

                                  1. run on each pair one trading EA (trading only 1 pair as chart is)
                                      1. this can be "pipcounter closer", again, this is not only right way (and I am not sure if it is working because I have not test it 😄 ) .. https://fxdreema.com/shared/PyAu2bB4b ... as another separated EA
                                        so result are 2 EAs, 1. EAs for each pair you trade, and 2. EA for controling situation (only as one EA for all pairs)... these EAs can communicate between using Terminal variables
                                        ... in my example is "terminal variables" startTrading ... this is terminal variable which can be used for communication between EAs ...

                                  your 1. EAs needs have in top of blocks condition which check this Global variable and run trading only when its state is 1 :
                                  0_1487267831884_upload-d9a12ddd-60cb-4b25-96ac-9c4804c95213
                                  it means, when your 2. EA finds, that profit was reached for day, close trades and change this variable to 0 (and other EAs are not abble opening next trades because variable is not 1) ...
                                  but you also need for new day change this variable again to 1 because you will opening new trades .... this can be done:
                                  0_1487268139752_upload-aea007eb-b7c5-4a8b-b26e-392883b932ff
                                  or
                                  0_1487268191792_upload-8b584f43-0b95-4735-ae16-e370c71a8510

                                  this variable can be modified also manually in metatrader

                                  hope you get it complete (if that checker/closer is not working properly, try to figure out why, but I think it can work) ...

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

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

                                    Wow, Impressive! 😮 That's a LOT of food for thought. I will need some time to sudy it and, more importantly, understanding it.

                                    Once again, thank you very much for this outstanding help support. This forum is priceless! 😉

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

                                      I maybe forget to mention, that all your EAs must have the same magic number, when
                                      AUDUSD EA have magic 10
                                      EURUSD, GBPUSD, USDCAD, etc. EAs must have magic also 10
                                      and also "pipcounter closer" must have magic 10
                                      🙂

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

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

                                        Ok. Thanks

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

                                          Well, after having studied your proposal of EA, I find it simply brilliant, but before trying to implement it I have a few questions I would like to ask, if you don't mind. There are three points I don't fully understand and your help would be much appreciated.

                                          1. I don't understand the function of blocks 12 and 17. Could you please tell me what do they do exactlty?
                                          2. Why do blocks 13 and 18 include "(in loop)..." options? Honestly, I don't understand what those "(in loop)..." selections do, sorry. 😕
                                          3. In which EA should I include the modifiying "terminal variable" part from 1 to 0? In the "pipcounter closer" or in all the others?

                                          Thank you very much in advance.

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

                                            1. ... blocks 12 and 17 checks trades opened today (after time 00:00), first for opened trades and second for closed trades
                                            2. blocks 10,11,12,13,14 working together, their counts profit from all today opened trades (all markets), block 10 nulls profit holding variable which holds value of this profit (before counting) ... block 11 is working in loop and every incrementation it preselect one opened trade, when it select trade than block 12 check if this trade is opened today, if so, than block 13 save profit from this preselected trade into variable, and than at end it add this temporaly profit variable into profit holding variable (this value can be compared in conditions after this loop count)
                                            3. long time I have not used terminal variables, so I am not sure now how exactly they are working, but only two ways can be, firstly you need manually defined these variables in metatrader and in block are they only "selected" for modification/comparison .... or maybe they are created automatically with this blok, here I am not sure, so you need try it ... buy I think you need create them manually ..
                                              and "pipcounter closer" can set this terminal variable into state "not trade" - with value or some text, it is your decision, and other eas are checking this terminal variable and while it is "ok trade" they are trading, when it is "not trade" than they dont open trades 😄

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

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

                                            Online Users

                                            T
                                            P
                                            C
                                            S
                                            T
                                            I
                                            B
                                            A
                                            H

                                            23
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors