fxDreema

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

    Tutorial 07 - Read prices from indicator objects

    Tutorials by Users
    12
    44
    23158
    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 miro1360

      We are going read values from Objects on the chart which are controlled by indicator, not values from buffers, that means, we dont need indicator in My Indicators because we are not going work with indicator directly.
      Indicator must be inserted into chart manually (into same chart with EA).

      here is indicator (note, is renamed, you can rename it as you wish)
      0_1480901745242_Shved Supply and Demand (e600) length.ex4

      and here is shared link to this strategy:
      https://fxdreema.com/shared/JyxzKfdwd

      now look how is this indicator working:

      • is ploting dynamic zones:
        0_1480901473830_upload-d91db741-5fa9-44d9-999b-25aabe806f4f

      • these zones are not from buffers, but from objects, so look how they are named:
        0_1480901492680_upload-8f5e1c88-125c-4c83-9fc2-d712fc9db53a
        0_1480901502621_upload-8a3bd0be-895e-4175-bc71-84429201ffd3

      See, Rectangle type with name begins as "SSSR" and than some incrementation with "R" or "S" and next info like "Weak", "Proven" ...

      Our strategy can be (you can create another):

      • when candle 1 closed inside zone, we leave EA waiting for next conditions
      • when price go outside (next candle 1 closed outside) zone Up, EA open Buy, when outside zone Dn, EA open Sell
      • zone width must be at least 1xATR
      • SL and TP is some multiplicator from ATR indicator
      • Lot size is risk percento from balance depending on SL

      First we need 2 blocks which are selecting objects (rectangles) based on criteria:
      0_1480901521844_upload-480dd9bb-5a08-49e8-bae4-620242c4ad7a

      next is switch which control if was price inside rectangle before and if EA is waiting for trade

      after this are blocks which are working with selected rectangles
      these blocks make some comparison with candle price and variable blocks save price from selected object into variables priceUp and price Dn for next comparison:
      0_1505222022517_upload-55cb6bd9-a686-4e03-80bb-5d4595c9c909

      here are all blocks together needed for this strategy:
      0_1505222149118_upload-1424f53a-93af-4eb2-bc27-b3f9297fbe0b

      and this is result:
      0_1480901570649_upload-5b2a177c-a457-4960-973a-e402f5aefd4a

      note: this is not profitable EA and is not for your real account, this tutorial shows only way, how to work with object from some indicators

      note:

      • with this way you can working with any object on the chart, also with own objects placed manually
      • better if you give them name in chart and for selecting object you use block: "Select Object by Name"
      • or you can read or compare values from objects also with other blocks:
        0_1480902441202_upload-9f38d8b7-5ba0-4fd2-a9f5-c70ea3ba1fff

      that is all ...

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

      AlphaOmega B umbrellamaker T 4 Replies Last reply Reply Quote 9
      • AlphaOmega
        AlphaOmega @miro1360 last edited by

        @miro1360 THANK YOU... VERY INFORMATIVE

        1 Reply Last reply Reply Quote 0
        • B
          Bigape last edited by

          Many, many thanks.
          Very useful.

          1 Reply Last reply Reply Quote 1
          • V
            varso last edited by

            Thank you
            I need it exactly for this indicator.

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

              Why, when I copy thiss tutorial to my project I get this error..... I have both ATR and Shved indicators installed
              0_1587649363452_cf63c6d8-30c4-4324-9a70-a9ff50a0cd4f-image.png
              Here is the link to my project
              https://fxdreema.com/shared/ySd0wIT9e

              A 1 Reply Last reply Reply Quote 0
              • A
                ambrogio @AlphaOmega last edited by

                @alphaomega you also have to import all the constants and variables from the shared project

                AlphaOmega 1 Reply Last reply Reply Quote 0
                • AlphaOmega
                  AlphaOmega @ambrogio last edited by

                  @ambrogio ... Thanks for the reply. This is what I did.. I first compiled the Tutorial... then ssave it in my mt4... then import the ea to my project... but it did,nt work... can you give me a step by step to import the constants and variables.. or is it somewhere in a tutorial?....... Thank you brother

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    ambrogio @AlphaOmega last edited by ambrogio

                    @alphaomega the file of miro has five constant and four variables, when you copy and past the blocks btween project, you lost this value

                    0_1587660792640_Cattura.JPG

                    this is your project: you don't have anything

                    0_1587660825770_Cattura2.JPG

                    You can : write manually this constant and variables into your project, otherwise do the reverse : copy your blocks in the miro's project and save

                    AlphaOmega 1 Reply Last reply Reply Quote 0
                    • AlphaOmega
                      AlphaOmega @ambrogio last edited by

                      @ambrogio Thank you.... I did the latter

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

                        FYI: There is something wrong with the logic of the code reading the indicator. The coding itself seems fine but the EA takes orders where there is gaps, it is suppose to take an order after a full candle has left the square. Also in low volatility the EA take orders with candles that's not even close to the square. I did set the indicator to only show verified squares but I wondering if the squares are not still in the background invisible maybe and now the EA is reading those squaress aswell? Any ideas why and how to eliminate this problems?
                        0_1587854999089_e4ae811f-6fb1-4af6-bc46-d66c0ab11a31-image.png
                        0_1587855234723_be4cd075-2e41-4682-b588-cdeb2c933f52-image.png

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

                          @alphaomega share your example project

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

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

                            @miro1360
                            https://fxdreema.com/shared/RwHGYVL4e
                            Thank you miro for taking the time to looking at this. Also so could you remove the Buy and sell ATR .. to fixed pips please.,, I tried myself but then the EA have errors

                            Thank you again

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

                              @alphaomega

                              try this, I added the option for enabling or disabling the untested, also the ATR is removed from buy sell blocks
                              https://fxdreema.com/shared/arhx2dkU

                              0_1587949099818_db2b8393-53ee-440a-852f-5de6c2c0dab9-image.png

                              note: the project it is also untested 😄

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

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

                                I think there may be other problems ... if a trade zone appears, the price is inside, and if the zone disappears the trade will be opened 😄 but I'm not sure this was a long time ago when I created it 😄
                                it was just a demonstration of how to load and check indicator objects with fxdreema, there is still a lot to be done for a logic bulletproof EA 😄

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

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

                                  @miro1360 Thank you for replying! I totally understand this is a Tutorial and to be a good reliable EA still needs a lot of work BUT, it is a great privilege to have you guys teach us noobs at FXdreema .. I have no programming knowledge and also very little trading experience, so Thank you once again.
                                  I like the idea of support and resistance trading and would really like to incorporate such indicator to my strategy.. I before tried manually to work with this Shved Supply and Demand, needless to say: it did not work for me. There is another Supply and Demand indicator which is working better but have no Mql4 file.. It feels more reliable and I had better success working with it manually. I have an idea to change Shved Supply and Demand in your tutorial to the SupDem:
                                  0_1587967862568_supDem v2.ex4
                                  Anyway, I am learning a lot and for now, and I am just happy to drag my feet through the mud and maybe, who knows, one day I will make a successful EA which I can contribute here
                                  I know I am not talking only for myself but many people here appreciate your great tutorials, Thank you miro!

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

                                    This EA is not the complete strategy or settings it is just an ongoing idea where I want to add the support and resistance Indicator to get more orders and then will work on more accuracy. This is EURUSD H1over 12/2019 till today
                                    https://fxdreema.com/shared/7WGootlsb
                                    0_1587982303484_1c0a7377-504a-419e-87e5-e8e5738510b1-image.png
                                    0_1587982354480_4cb73976-0696-4fe8-bfd0-adc87b79f57a-image.png

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

                                      @alphaomega
                                      the logic is similar for reading prices from that supDem indicator, just change the object name, try it 😄

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

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

                                        @miro1360 ... Yes I saw... Thank you!!

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

                                          @miro1360 Hi miro1360...
                                          Hope you are still good? I found another Shved Sup&Res with the buffers already installed. My problem is that I am confused to which no. buffer goes to which square. I tried all of them separately but for some reason they open the order incorrectly. Could you be a doll and help me out by checking which buffers is going with which level/rectangular pretty please!! As always we much respect and appreciate your input!
                                          https://fxdreema.com/shared/pOuJLUfXd
                                          0_1588430048733_shved_supply_and_demand.mq4

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

                                            these buffers are useless for your purpose, because anyway the objects creation is based on it ... you will have to work with objects, or transform the whole logic of creating those objects into EA (which is many times more complicated) ...

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

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

                                            Online Users

                                            P
                                            R
                                            A
                                            D
                                            A

                                            22
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors