fxDreema

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

    'closeAllOrdersAsync' - function declarations are allowed on global, namespace or class scope only 'OrderSendAsync' - wrong parameters count

    Questions & Answers
    2
    2
    591
    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
      mc last edited by

      'closeAllOrdersAsync' - function declarations are allowed on global, namespace or class scope only
      'OrderSendAsync' - wrong parameters count![alt text](![image url](image url))0aa44774c26c3dc53ee7e04e2690196.png

      S 1 Reply Last reply Reply Quote 0
      • S
        seb 0 @mc last edited by

        @mc
        As mentioned you can only declare functions(closeAllOrdersAsync) on the global scope. Here it is declared on the event handler "OnTick". But I don't think you can access the global scope from the fxdreema builder anyway.
        The "OrderSendAsync" function needs 2 parameters on mql5 not 1:
        Capture d’écran (703).png

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

        Online Users

        T
        A
        A
        M
        A
        M
        E
        E
        F
        E
        G
        M
        C
        L
        K

        28
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors