fxDreema

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

    Bug with Adjust on Condition Block when using Variable

    Bug Reports
    2
    3
    919
    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,

      On Local Version.

      Please find attached picture showing issue - when I use a variable for the adjust the output is not merging correctly with
      your toDigits code.

      If you could fix that would be great.

      Thanks

      ......
      fxd_bug_adjust_using_variable.png

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

        Interesting. Well, I now have brand new code for the whole website and my focus is in it, so will probably not fix that problem (also because I don't want to break something). Otherewise the problem comes from the "pips" part in "trade_sl_pips". For the "Adjust" field this keyword "pips" is special, so if you write 20pips it will convert it into something else containing toDigits... and the rest you can see. But maybe something is confused, wrong regular expression probably.

        My suggestion is to change variables or to write both of them in one place.

        1 Reply Last reply Reply Quote 0
        • K
          kroghd last edited by

          Thanks

          Perhaps you can have the best of both scenarios e.g

          If condition adjust value contains variable name - replace variable name with ToDigits(variable_value_here,CurrentSymbol());

          Else
          Check & replace like you currently do

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

          Online Users

          A
          T
          E
          E
          F
          S
          B
          S
          H

          12
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors