fxDreema

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

    How do we include custom function using custom block

    Questions & Answers
    2
    2
    1001
    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.
    • K
      kroghd last edited by

      Hi,

      I have searched the help & forum & tried using custom blocks but cant see how to include a custom function created in the custom function area of custom block editor.

      Can you please explain how to include & use a custom function within a custom block?

      For example - I am trying to do something like the example shown in MQL4 reference index search for CORNER_LEFT_LOWER & see the example shown in that topic.

      Thanks

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

        This block puts the code that you enter in a function. It's not impossible to close that function at the top and open new one in the code:

        } void MyFunction() {
        

        or even call that function:

        
        MyFunction();} void MyFunction() {
        

        But I will suggest to try https://fxdreema.com/studio/MQL4
        There you can define custom functions that can be called in the project (if something is not wrong, because I didn't tested that soon) in the low right corner where "Custom functions" are.

        I think I can't find that function for CORNER_LEFT_LOWER 😕

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

        Online Users

        L
        H
        S
        E

        7
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors