fxDreema

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

    Integrate with Line Notification

    Questions & Answers
    4
    6
    1714
    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.
    • R
      rungsan last edited by

      How to convert the following script to Custom MQL Code on fxDreema?

      ##################################################
      //+------------------------------------------------------------------+
      //| SendLineAlert.mq4 |
      //| Copyright 2018, MetaQuotes Software Corp. |
      //| https://www.mql5.com |
      //+------------------------------------------------------------------+
      #property copyright "Copyright 2018, MetaQuotes Software Corp."
      #property link "https://www.mql5.com"
      #property version "1.00"
      #property strict
      //+------------------------------------------------------------------+
      //| Expert initialization function |
      //+------------------------------------------------------------------+
      input string Token ="";
      input string Massage ="Hello";

      int OnInit()
      {
      //---
      string headers;
      char data[], result[];

      headers="Authorization: Bearer "+Token+"\r\n application/x-www-form-urlencoded\r\n";

      ArrayResize(data,StringToCharArray("message="+Massage,data,0,WHOLE_ARRAY,CP_UTF8)-1);

      int res = WebRequest("POST", "https://notify-api.line.me/api/notify", headers, 0, data, data, headers);
      if(res==-1)
      {
      Print("Error in WebRequest. Error code =",GetLastError());
      MessageBox("Add the address 'https://notify-api.line.me' in the list of allowed URLs on tab 'Expert Advisors'","Error",MB_ICONINFORMATION);
      }

      //---
      return(INIT_SUCCEEDED);
      }
      //+------------------------------------------------------------------+
      //| Expert deinitialization function |
      //+------------------------------------------------------------------+
      void OnDeinit(const int reason)
      {
      //---

      }
      //+------------------------------------------------------------------+
      //| Expert tick function |
      //+------------------------------------------------------------------+
      void OnTick()
      {
      //---

      }
      //+------------------------------------------------------------------+

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

        There is a block to send web request

        1 Reply Last reply Reply Quote 1
        • A
          advanceriskway last edited by

          In the web request box, Where I can put "headers" to?

          l'andorrà 1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà @advanceriskway last edited by

            @advanceriskway What do you exactly mean by 'headers'?

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            A 1 Reply Last reply Reply Quote 0
            • A
              advanceriskway @l'andorrà last edited by

              @l-andorrà int res = WebRequest("POST", "https://notify-api.line.me/api/notify", headers, 0, data, data, headers);

              I try to convert the code above to fxdreema.

              l'andorrà 1 Reply Last reply Reply Quote 0
              • l'andorrà
                l'andorrà @advanceriskway last edited by

                @advanceriskway Oops. I'm afraid you will need a real programmer for that. I have no idea how to do it, sorry.

                (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

                Online Users

                E
                J
                2
                C
                R
                Q
                N
                E

                17
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors