fxDreema

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

    negative variables

    Questions & Answers
    2
    4
    808
    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.
    • J
      jivetrader last edited by

      i just discovered that Project Variables cannot be negative. or at least it seems that way.

      my entry Condition uses a custom indicator that references a Project Variable, and as soon as i flipped the variable positive, and used the ADJUST field *-1, my entry now works.

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

        This works for me: https://fxdreema.com/shared/kkdXLDHPc

        Check if your variable is numeric type. Or is it variable like this at all, because there is another type of global variables. Or give me more details, some screenshot for example.

        1 Reply Last reply Reply Quote 0
        • J
          jivetrader last edited by

          yes, your code is like my workaround (which works). but when my Project Variable is simply set to -1, it doesn't work. i have to make the PV +1 and use the Adjust *-1 as you did in order for it to work.

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

            If you made the same project in the web version I will be able to see it and tell you exactly what is going on. It can be imported also from .mq4 file (the one generated with fxDreema).

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

            Online Users

            R
            F
            S
            D

            25
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors