fxDreema

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

    check trading condition block, check margin?

    General Discussions
    5
    10
    4798
    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.
    • serioza
      serioza last edited by

      Is there a way to check the margin available and limit the trades according to this parameter?
      for example only trade if margin is above 500% so there is still room to hedge and add to volume after a number of trades are placed?

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

        There is something in the Account option in Condition block

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

          Hi fxDreema, ive tried to make this condition work but somehow the ea still manages to trade when the margin is below 500%

          Also when no trades are running it doesnt trade untill a manual trade is made .
          Another thing the block check loss % of equity does not work when combined like the example, it does work with amount of money.

          0_1498776295396_for each trade check loss close.jpg

          Please help me out with this,

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

            0_1498776461386_condition check margin level.jpg

            1 Reply Last reply Reply Quote 0
            • A
              anse33 last edited by

              I also have problems using "Margin Level (in%)". Tried many times ...
              There seems to be a problem with the percentage.
              What I do now is to use absolute numbers:
              0_1499724144950_upload-aac62f90-f9a0-4b22-a2b1-5121e05f58b1
              But I think, using cash is not as good as using Free margin in %.
              So, if someone has an idea? I would be happy hearing from you ... 🙂

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

                actually I looked into condition block and there are options for margin in %
                0_1499743479827_upload-f5ee3849-eb01-48ab-a274-51f4831e5171

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

                1 Reply Last reply Reply Quote 0
                • A
                  anse33 last edited by anse33

                  Yes, you can choose "margin in %". But somehow it won't work properly. In fact, it doesn't work at all.

                  For example, if you want to prevent trading below 500% of free margin: It won't work as shown above. Because naturally no value of percentage for free margin is given when no trade is open. And setting "When no trades: Return 0 (or Return -1)" will prevent every first trade. Because margin level will never be above 500 or 50 or 0 or -1 ... So no trade will happen at all.

                  If you set "When no trades: Return infinite (biggest possible value)", the equation theoretically could work. But it seems to me, that there is no proper value given back to use in any condition.

                  This is all I have for now ... 😞

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

                    when you take conditions as this:
                    0_1499781539855_upload-9d379c58-407d-474c-b077-88dc7f249b53

                    first condition check if there are no trades, if that false (and here are trades) check second condition for margin % value if is above 500 and if thats true, continue with true output (trading or something) ...

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

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

                      @miro1360 Yes, thank you! That works. 🙂

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

                        Hi all, (I realise that this is an old thread but i'm just replying to add info for anyone like me who googles this in future)
                        Thanks for the condition info miro, the blocks didnt seem to work for me but I slightly altered what you'd done and now it works for me
                        ![alt text](0_1609597155737_Screenshot (3).png image url)

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

                        Online Users

                        M
                        M

                        10
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors