fxDreema

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

    implicit conversion from 'number' to 'string'

    Questions & Answers
    2
    3
    2383
    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
      mpantogi last edited by

      Hello,

      After i added this code in my Ea i get the error: implicit conversion from 'number' to 'string'1_1506164762248_Untitled2.jpg 0_1506164762248_Untitled.jpg

      I want to check for the currency which is opened on the chart and give some prices to a and b variables.
      Help please!!!

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

        If it works it doesn't matter. This block is mostly used for numeric types, but I guess that MathAbs() is not a problem in this case. I may try to find a way to skip MathAbs() for strings, but if you want you can also use the other Condition block where you can write something like this:

        Symbol() == "AUDCAD"
        
        1 Reply Last reply Reply Quote 0
        • M
          mpantogi last edited by

          No doesn't works as before,
          In your way i get warnings like this0_1506361594188_Untitled.jpg
          but it looks to works well.

          Thank you

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

          Online Users

          M
          G
          D
          A
          A
          R
          G
          S

          23
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors