fxDreema

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

    Custom Indicator, error at compiling

    Questions & Answers
    2
    2
    982
    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.
    • E
      ezzakt last edited by

      Hi there,

      I made a custom indicator (modified from the original version).
      Its an S&R Indi (the one you know from the past maybe), that draws this zones.

      Now I modified the indi to adapt ZigZag Parameters, that are responsible for drawing the zones. This indi has about 12 more parameters defined in its code as external variables.

      I imported this indi successfully into fxdreema. The indi itself also compiles fine and behaves as it should with the new parameters. Now if I put that Indi into a condition block and try to compile, I receive a compile error when doing the ex4, which tells me "Wrong parameters count"

      Please see here
      http://prntscr.com/2kczg2

      Thats the error at the condition block where the indi is initialized with all its parameters. Now, I googled but cant find it out. Why do the new parameters lead to an issue in compiling ?

      Any help appreciated 😉

      Thanks

      Andy

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

        iCustom allows many input parameters without giving error message.
        This gives this error:

        iCustom(1,2,3,4);
        

        This does not:

        iCustom(1,2,3,4,5);
        iCustom(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17);
        

        so if it have more than 4 parameters - everything is ok with this function, it does not actually read if something in the indicator is right or wrong.
        http://docs.mql4.com/indicators/icustom
        This function IndicatorMoreShift() should work without parameters. So from that screenshot for me everything looks fine, or at least I can't recreate this here.
        Is it possible that another function is responsible for this error?

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

        Online Users

        J
        B
        M

        13
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors