fxDreema

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

    Help me in send http request

    Questions & Answers
    2
    3
    1187
    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.
    • G
      gpaneers last edited by

      Hello Amin,
      Thanks for your great service. Am novice in programming and coding.... I have subscribed your service and trying to build strategies. I need your or someone's help. Please help me with draw arrow and https request...

      Click here for my sample

      Here, when the condition is met, I want mt4 to send webrequest to my server. Exactly the below format
      https://algobids.info/trading/testStrategy?abInput=" + "Buy "+ fullName() + " at "+" "+buyPrice + " Qty = " + 500/stoploss + " SL = " + stoploss + " TGT = " + target + " TSL = " + 0*target,"

      fullName() = Name or the symbol
      buyPrice = offer or ask price or LTP
      stoploss = Lowest of last 3 candles
      target = stoploss * 1.3
      TSL = 0.2 * target
      above values change per symbol.... These values should be taken from the Mt4 and sent to my server as given above link..

      Please do help me on this.... If you do it and share, it will be very very helpful...
      Thanks...

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

        The URL input is a "string" field, but you know that when you write code, you put " before and after the string". Well, not for that input field, because " is put after that when the project is generated. When you write ", the builder thinks that this should be part of the string and it is escaped. So, what to do...

        This one is old fix. Put "" + in the beginning and + "" at the end of the input field. Something like this:

        "" + "your url address" + Symbol() + "other part of the address" + ""
        
        G 1 Reply Last reply Reply Quote 0
        • G
          gpaneers @fxDreema last edited by

          @fxdreema Thank you very much for your help.... You are really helpful..

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

          Online Users

          N
          J
          K
          T
          S
          E
          F
          G

          17
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors