fxDreema

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

    Tutorial 06 - My Indicators in fxDreema

    Tutorials by Users
    15
    55
    52872
    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
      miro1360 last edited by

      1.) Import with mq file:

      Here I show you, how to add custom indicator into My Indicators in fxdreema and how to use this indicator in project. You can take any indicator, for this tutorial I created own indicator based on Trader Divergence Index. It are few moving averages over RSI and my own enhancement channel based on Standard Deviation multiplicator over market line (third MA).
      First you need is know, how indicator is working and which values are in buffers.
      For this, place indicator into chart and see:
      0_1480900443645_upload-226592c0-2959-45be-95f5-46286df30bc0

      On that picture observe indicator buffers in settings window how they are numbered (0,1,2,3,4, ...), these buffer indexes are important numbers for you.
      In builder click on My indicators - Add custom indicator - Select, and find your mq file with indicator and ok:
      0_1480900470642_upload-c865ab75-dce0-4d5f-80fc-c68378dc7ce2
      .
      0_1480900482201_upload-43b3af55-84ca-401f-8571-34ca11f4d9e0

      click update and now you can working with this indicator ... see there buffers, parameters,
      0_1480900516503_upload-f34eaf84-330c-47ef-8908-d5814d0adb35

      and next important: Candle ID ... for this candle ID you can observe from chart what values are in buffers
      for my indicator it are values somewhere from 0 to 100, sometimes >100 or <0
      Candle ID are indexes in buffers and buffers are holding values (for each candle ID is here value), small example:
      Buffer0[0]=50
      Buffer0[1]=52
      Buffer0[2]=51
      etc ... Buffer0[0]=50 means, that Buffer0 have on candle 0 value 50, Buffer0[1]=52 have on candle 1 value 52 ....

      when are there negative candle indexes, like -1,-2,... you can read values from indicators that are ploting values into future (like ichomoku indicator) ... if you will this value, only you need is give negative Candle ID into block where you are working with indicator
      0_1480900561017_upload-010b7aa2-e8a4-4fc5-9a3c-f4d44e1bb0e3

      note, you need compare values from indicator with adequate values (for this indicator, when value from buffer is 60, you can not compare it with value from candle price 1.1200, because how?)

      when you will make cross green line above red line on candle 0 (candle 0 is not closed and it means repainting, but is fresh), this is way:
      0_1480900591536_upload-8dafde90-9ff2-47f0-a463-cb157f20cc6d

      you can take cross also from candle 1 (this is closed candle and is not repaint - repainting this candle depends on indicator, because some indicators repaints all values) ... Candle ID in this case = 1

      or you can make cross with two condition blocks with logic:
      Buffer0[2] < Buffer1[2] AND
      Buffer0[1] > Buffer1[1]

      means Candle ID, in words: when green line on candle 2 is below red line on candle 1 and green line on candle1 is above red line on candle 1 (than is cross up)

      when you will make cross above value, lets say green line crosses UP value 68 (level 68) on closed candle 1, this is how to do:
      0_1480900637724_upload-4fa2913e-8f49-4e9b-b967-3c1baa3002c7

      2.) Import without mq file, with ex file:

      If you dont have indicator mq file and only ex file, import can be done this way:
      example is my ex file from indicator miro1360_DynamicMA, look for indicator behavior:
      0_1480900774955_upload-fff2260f-7feb-4ff4-860d-db01ac2e6503

      you see here 2 buffers
      and also some input parameters:
      0_1480900786653_upload-b1658af0-ed91-4ebb-aa6d-9e121b83f075

      now go to Builder and find your indicator ex file with My Indicator manager:
      0_1480900800886_upload-1c70f5b8-d51a-4450-a572-210ede6ec6d7

      you see, after selecting indicator here are not buffers and parameters, so you need type them manualy, keep data types correctly, instead of enum datatypes you can use int (maybe, I am not sure with implicit conversion in MT5) ...
      this picture show you correct values for this indicator:
      0_1480900818498_upload-7c5936f8-6005-458c-9056-c0ee6b2ac8db

      click on update

      indicator is imported and test it:
      0_1480900828855_upload-41168116-fa5a-41be-86fc-249b7132e83a

      all is working as expected:
      0_1480900845016_upload-50c4e285-57eb-4662-8d4d-1cb47e2daf86

      here are other indicators, with other type of buffers, like histogram (histogram is also value),
      or arrows, like ADXcrosses, for this case you can use block called Indicator appear and select right buffer:
      0_1480900869624_upload-5f5c417b-20be-49b7-ab74-bc3c5ff4a0dc

      and it is working ok:
      0_1480900886458_upload-24f7d0fb-0443-4c77-9c9d-3998c868628b

      Important:
      your indicators must be located in indicator folder and must have same name as in EA:
      C:\xxxxxxxxxxxxx\MQL4\Indicators
      (when experts are located: C:\xxxxxxxxxxxxx\MQL4\Experts)

      here are some indicators that I used in this tutorial (they are maybe renamed after uploading, rename it as you wish):
      1_1480900961494_miro1360_TDI_Dev_1.0.mq4
      0_1480900961493_miro1360_TDI_Dev_1.0.ex4
      0_1480901002364_ADXcrosses.ex4
      0_1480901026428_miro1360_DynamicMA.ex4

      all for this tutorial

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

      A 1 Reply Last reply Reply Quote 3
      • S
        samhtrader last edited by

        Hello Miro, Thank you for all you do for traders on this site.
        I am new to this and trying to figure out how to create an EA but with luck I read this tutorial. Its the indicator that I am using, but I also use a 5 ma in the same EA.
        So when the Green crosses above the Red on the TDI and a new candle opens above the 5ma I want a Long trade opened and a Short opened when the opposite happens. Can you help. Thanks

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

          just add next block with MA to your conditions

          0_1485185315406_upload-df7edb28-375c-4033-8ce7-f9611c21bba3

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

          1 Reply Last reply Reply Quote 1
          • A
            artikel @miro1360 last edited by

            @miro1360
            I have put my custom indicators to My Indicator and done, so I can see it in the list of My Indicator, but why I can not see in the box Condition?

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

              0_1488356869877_upload-26645352-2488-45f4-bdd2-7c78ff33d4ac

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

              A 1 Reply Last reply Reply Quote 0
              • A
                artikel @miro1360 last edited by

                @miro1360 thank you very much Mr. Miro .. it was very helpful

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

                  hey miro am having some problems with my indicators could you please help ?

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

                    @bossx
                    https://fxdreema.com/forum/topic/4700/problem-with-custom-indicators

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

                    bossx 1 Reply Last reply Reply Quote 0
                    • bossx
                      bossx @miro1360 last edited by

                      hi @miro1360 0_1497054305304_pz-lopeztrend-indicator[1].ex4 is there any way i could upload this indicater to fxdreem when i look at the inputs dater it comes up with setting of alerts there is no infor of input parameters will it still work ?
                      0_1497054915467_Screenshot (8).png 0_1497054929346_Screenshot (7).png

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

                        sure, it should working, add all buffers and all input parameters with right data type ...

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

                        bossx 1 Reply Last reply Reply Quote 0
                        • bossx
                          bossx @miro1360 last edited by

                          @miro1360 i did but i still cant seem to get it to work is there a way you could do this for me and send it to me please i will pay! you if you would like ? i got a lot of indicators that i would love to make in to an ea
                          i can get some of the indicators to work on fx but most of the ones i try dont seem to work. what do you say?

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

                            ... I dont need your money, I am not doing this for money 🙂 ...

                            take this EX file indicator and import it into your indicators, - it import only its name (because it is ex file and not mq), for this reason you need type all input parameters manually:
                            0_1497197693538_upload-f27a5f5d-49ce-4020-bc4d-849b09447244
                            continue with adding all buffers, numers are enough:
                            0_1497197724901_upload-650c0ffe-00fb-43fc-a0e0-d3ce19d5e2ca
                            click update and your indicator is in fxdreema

                            create easy logic to test your indicator:
                            0_1497197770815_upload-a56cc384-f6a6-4b53-be97-d10b27d3546e

                            and you see, that all is working:
                            0_1497197789502_upload-eee232cb-ef88-4216-9f44-66a0e2c17e4b

                            always observe in details how indicator is working with all buffers, in this case you need take value from candle 1 (because candle 0 have no indicator data - it is seen from chart) ... hope you do it right ...

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

                            bossx AlphaOmega 2 Replies Last reply Reply Quote 2
                            • bossx
                              bossx @miro1360 last edited by

                              @miro1360 ThankYou soo much i have not tested it yet caz of work but whn i get home on the weekend i wil do n lol i offered you money because i had a lot more indicators that i would like you to help me with i just wanted to show you my appreciation thats all 🙂

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

                                my intention is, you learn do it also for other indicators from example I provided you :simple_smile:

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

                                bossx 1 Reply Last reply Reply Quote 0
                                • bossx
                                  bossx @miro1360 last edited by

                                  @miro1360 thanks miro i got it to work but my ea keeps opening a new trade every new bar but i oney want to open one every time the colour changes is there a way around this ?

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

                                    is this working? (I have not tried) if is not, we try something else 😄

                                    0_1498881271749_upload-e49a6f5f-2e1c-4dc1-9164-bb8cb955ee8c

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

                                    bossx 1 Reply Last reply Reply Quote 0
                                    • bossx
                                      bossx @miro1360 last edited by

                                      @miro1360 idont know about that i dont think it will but i got a nother question for you
                                      is there a way i can make an dash bored out of indicaters so just say if pz lopeztrend is blue on 30 min chart and is blue on 4h chart and i want it to be displayed on the 1 min chart.its all most like a mtf indecater and is there a way to tell my ea to read the dater from my dash bored ?

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

                                        dashboard is good to create as indicator, but if you want something in fxdreema as EA with lot of signals, try this:
                                        https://www.youtube.com/watch?v=6wYxwRF6slw
                                        if few signals are enough, do it as normal project with blocks but instead buy/sell blocks place blocks for drawing objects

                                        is there a way to tell my ea to read the dater from my dash bored ?
                                        sure, just play with blocks (create normal logic combination from blocks for trade), or control some text changes in dashboard (with condition block and object on the chart) ...

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

                                        bossx 1 Reply Last reply Reply Quote 0
                                        • bossx
                                          bossx @miro1360 last edited by

                                          @miro1360 okay thankyou i will give it a go 🙂

                                          1 Reply Last reply Reply Quote 0
                                          • Y
                                            ylidor last edited by

                                            Hi Miro,

                                            FxDreema doesn't support enum datatypes. Some great coders, such as Mladen, are using enum frequently for Price type. Even when I imported one of his "mq4" indicators that has enum Price type I could not use it as costume indicator in FxDreema because of this datatype.. Importation of one of his "ex4" indicator ended up the same. When I tried to use "int" with the default value of the enum (which was "close"), I got errors message on this "close" during compilation.

                                            Awhile ago you suggested to try a work-around it, but I can't find my post in the forum where you suggested it. Do you have any practical experience with converting enum datatypes to a list of the usual datatypes, and if yes could you please share with me one or two segments of codes to teach me how to do it?

                                            With your permission I'll also post this question as a new topic in the forum to check if the moderator has any new ideas.

                                            Thanks Ron

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

                                            Online Users

                                            M
                                            P
                                            S
                                            A
                                            E
                                            M
                                            F

                                            23
                                            Online

                                            146.6k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors