fxDreema

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

    load custom indicator to chart via custom code/ function on init?

    Questions & Answers
    3
    7
    1655
    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.
    • bk7
      bk7 last edited by

      Hello guys,

      i need help with this thing please:

      i want to load an indicator to a chart when i attach the ea to a chart (oninit).
      Any ideas how to do this? Because i dont find any function and also with custom code i dont have any look so far ;/

      thx for your help!

      U 1 Reply Last reply Reply Quote 0
      • U
        Uriel 0 @bk7 last edited by

        @bk7 After 4 years, did you get it? 😞

        bk7 1 Reply Last reply Reply Quote 0
        • bk7
          bk7 @Uriel 0 last edited by

          @uriel-0
          yes. the problem was the handle back then. once i saw it, it was done quickly

          U 1 Reply Last reply Reply Quote 0
          • U
            Uriel 0 @bk7 last edited by

            @bk7 sorry, could you provide to me an example? Because I don't know how to do it. Thank You!!

            bk7 1 Reply Last reply Reply Quote 0
            • bk7
              bk7 @Uriel 0 last edited by

              @uriel-0

              string. lvl_indi_name. = sample_indicator_name;
              string indicator_handle_01 = iCustom(NULL,0,lvl_indi_name) ;

              ChartIndicatorAdd( 0 , 0 ,indicator_handle_01 ) ;

              in a custom mql block

              U gu95ckt8 2 Replies Last reply Reply Quote 0
              • U
                Uriel 0 @bk7 last edited by

                @bk7 Thank you!! I'll try it

                1 Reply Last reply Reply Quote 0
                • gu95ckt8
                  gu95ckt8 @bk7 last edited by

                  @bk7 Do you have an example project?

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

                  Online Users

                  J
                  B
                  M

                  15
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors