Forums Development Coders Supporting Coders

This topic has been reported for inappropriate content

Viewing 9 posts - 51 through 59 (of 59 total)
  • Author
    Posts
  • #13817
    simplex
    Moderator

      This reply has been reported for inappropriate content.

      Hi @thomas,

      Sorry for the delayed reply! I read your post several times, but I failed to understand what the problem is. Your code snippet looks ok at first sight.

      If you haven’t solved the problem meanwhile, maybe you could wrap it in a simple indicator to show what’s the point.

      Best, s.

      A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)

      #13819
      thomas
      Participant

        This reply has been reported for inappropriate content.

        Hi Simplex,
        Thank you for trying to  help. You are right, the problem can not be seen from the snippet code i sent, but now it is solved. It was because of  SetIndexEmptyValue …..  after i removed that part, the line can be seen clearly …  Thanks to Lawphat for giving the understanding of SetIndexEmptyValue definition …

        #13823
        simplex
        Moderator

          This reply has been reported for inappropriate content.

          :good:

          A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)

          #13863
          thomas
          Participant

            This reply has been reported for inappropriate content.

            Hi all,

            I have spent many days without success with this…. :scratch:
            I want to draw numbers above/below all candles inside each ZZ leg like the picture below. Any idea will be very helpful ….. thanks in advance.

            Edit: it is no problem if all numbers are above the candles  ….

            • This reply was modified 8 years, 11 months ago by thomas.
            Attachments:
            You must be logged in to view attached files.
            #14025
            thomas
            Participant

              This reply has been reported for inappropriate content.

              Hi Simplex and other coders,

              What must be done to create an “right calculated” MTF indicator ? I am trying to create a histogram MTF indicator like the picture below :

              https://www.ff.com/attachment.php?attachmentid=212667&d=1236075762

              Just change the “ff” to “forexfactory” … you know that … :)

              Please look at the bottom of the image, there are blue-red rectangle histogram for different TFs. Lets say we attach the indicator at TF M5, it will show us the result of TF M5, M15, etc … (depend on what TF we want to see, we can change it at the source code).
              If we call the base indicator to get the signal like :

              M5_signal = iCustom(NULL,tf5,”base_indicator_name”,x,x,x,1,shift_of_M5);
              M15 signal = iCustom(NULL,tf15,”base_indicator_name”,x,x,x,1,shift_of_M15);

              where we have calculated that tf15 = 3 * tfM5  and the  shift_of_M15 = 3 * shift_of_M5  …. I got the wrong result (compare to if i attach the base_indicator at TF M15 directly).

              Any idea, what are other requirements that i missed here ?   Can you please create a similar one based on MA crossing for example ?  Or just use iCustom calling to any other indicator of your choice ?  Thanks in advance.
              Tom

               

               

              #14061
              thomas
              Participant

                This reply has been reported for inappropriate content.

                Hi great coders @simplex, @xux99, @lowphat, and others …

                I have a beginner question. Is it possible to define our own MA applied_price ??
                As we see the formula for calling MA is : https://docs.mql4.com/indicators/ima
                And the applied price is : https://docs.mql4.com/constants/indicatorconstants/prices#enum_applied_price_enum
                What i want to do is adding a new value to the table https://docs.mql4.com/constants/indicatorconstants/prices#enum_applied_price_enum
                example :
                ID = PRICE_OHLC
                VALUE = 7
                Description = (O+H+L+C)/4

                And then i can call it using iMA like :
                myohlc = iMA(NULL,0,13,8,MODE_SMA,PRICE_OHLC,i);

                Then i can pass this result to IMAONARRAY function. How to make it ?
                Thanks in advance …

                ===

                Edit: Sorry guys, after searching using some other words on google, i found this : https://www.ff.com/showthread.php?p=9841659  , just change the “ff” to xxxxxx :whistle:
                it was my bad, too fast to ask something without properly searching it first … . i think it can be done, i will try it first …
                Anyway, thanks a lot.  :rose:

                • This reply was modified 8 years, 9 months ago by thomas.
                • This reply was modified 8 years, 9 months ago by thomas.
                #14087
                despacito
                Participant

                  This reply has been reported for inappropriate content.

                  Hi great coders,

                  I am learning MQL , and want to know is it possible to use simple hashing in MT4 ? We know that some programming language having this ability. So, instead of using clear text string, we can use hash sha256 or sha1 (which is better than Encrypt/Decrypt in my opinion, because in decryption process we need to define a chipper key – that can lead to vulnerability, sha256 is one way encryption). We can send clear text from MT4 to other programming language and catch the return value of true/false,  but i think it is not a good idea. It will be very nice if we can do it inside MT4.

                  Example :
                  MyString = “the : fox : jumps : over : a : lazy : dog”;
                  MyHash  = SomeHashFunction(MyString);
                  result = “12389933246618234761832469032482346113423”;

                  Is it possible ?  Just forget  this idea, if it is not worth …
                  Thanks

                   

                  #14349
                  Gaber
                  Participant

                    This reply has been reported for inappropriate content.

                    Hello fellow traders. This is my first post, so i’d like to thanks all of you for everything you’ve shared. You’ re great!!!

                    I need a little help. I’m getting crazy trying to make ea recognize confirmed  TZ’s. What would be in your opinion the best way to do this?

                    Thanks, Gaber

                    #14350
                    simplex
                    Moderator

                      This reply has been reported for inappropriate content.

                      Gaber,I think the best way to start a discussion about yort plans to write an EA would be to start a new topic by describing your current status in a First post. If you have already a source available – clean or buggy – it would be a good idea to post it.

                      You need to make your ideas as clear as possible in order to draw some attention on your ideas and start a discussion.

                      A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)

                    Viewing 9 posts - 51 through 59 (of 59 total)
                    • You must be logged in to reply to this topic.
                    Scroll to Top