fxDreema

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

    Flags

    Questions & Answers
    3
    7
    3747
    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.
    • timmyhanke
      timmyhanke last edited by

      When using flags to trigger a condition , do you have to make one contition for true and the opposite of that to false or does the check flag understand that the opposite condition of the true one is false by itself , or does it stay on true forever ?

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        it stay with value as you set it until next change
        ... or can you post specific example with few blocks what exactly you mean?

        Between trading and gambling is a very small gap, be careful.

        timmyhanke 1 Reply Last reply Reply Quote 0
        • timmyhanke
          timmyhanke @miro1360 last edited by

          @miro1360

          Made 2 examples , just simple and not how i use them.
          So does example 1 work exactly as example 2 or is number 2 the true one ? ๐Ÿ™‚

          0_1493134245641_flag.jpg

          1 Reply Last reply Reply Quote 0
          • M
            miro1360 last edited by miro1360

            second example is right, you need change these flags when validity of condition ends ...
            and here is third example ๐Ÿ˜„ (with one flag name)
            0_1493165713955_upload-8844d9b9-5d29-46ba-80b1-2d3d018ef329

            Between trading and gambling is a very small gap, be careful.

            timmyhanke S 2 Replies Last reply Reply Quote 0
            • timmyhanke
              timmyhanke @miro1360 last edited by

              @miro1360
              Thank you! Now i know how to do it ๐Ÿ˜Š

              1 Reply Last reply Reply Quote 0
              • S
                seb 0 @miro1360 last edited by seb 0

                @miro1360 said in Flags:

                second example is right, you need change these flags when validity of condition ends ...
                and here is third example ๐Ÿ˜„ (with one flag name)
                0_1493165713955_upload-8844d9b9-5d29-46ba-80b1-2d3d018ef329

                So how to switch a flag "set flag" that passed, from true, to false ? Sorry if it's old, didn't found any response

                timmyhanke 1 Reply Last reply Reply Quote 0
                • timmyhanke
                  timmyhanke @seb 0 last edited by

                  @seb-0

                  I use flags alot , made a filter session of about 200 blocks that triggered flags based on trade count.

                  If you want your flags to have a trigger point on true then set all the set flag names on init to false , so the first thing the ea does when started is to set them to false ( just to make sure )

                  There is a multitude of ways of doing it hope you find one that fits you :

                  Condition or conditions that are specific to trade buy / filter buy are true , set flag buy to true , if not set buy to false.

                  Condition or conditions that are specific to trade buy / filter buy are true, set flag true , stay true until sell contiontions are true , if sell contions are true set buy flag to false and sell to true .

                  It's a question of when and were you want to change your flag from true to false when its triggered , can be anywere , tick based , conditions based or time based , its up to you my firend ๐Ÿ™‚

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

                  Online Users

                  M
                  P
                  S
                  A
                  E
                  M
                  F

                  21
                  Online

                  146.6k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors