fxDreema

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

    Question about 'on trade (Event Data)'

    Questions & Answers
    3
    8
    2619
    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.
    • isp00rt
      isp00rt last edited by

      I need to capture the opening price and stop loss levels from my trades. The only way I know in fxDreema is by using the (in loop) Trade/Order in loop option at the display. But recently I discovered it can also be taken by using the option (on trade) Event Data.

      What's the difference between them?

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

        Hi @isp00rt

        I am doing that by using variables when the trade is created in "OnTick" section

        0_1531769892245_bbdf7971-a0bc-4151-8d11-b43dd35a1d51-image.png

        I guess that in "OnTrade" section to catch the SL & OP Works similar to "OnTick"

        0_1531770087562_47f07a8a-91f8-4ba0-bac8-1d158705158c-image.png

        fxDreema allows to do the same in different ways.

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

          I tried the first way but there's a problem there. Pink blocks are designed to 'load' trade specific data, but not necessarily the one you want. This is specially annoying when opening many trades per chart.

          I guess there must be a substantial difference between both blocks, but I can't see what.

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

            This is my way when I open several trades

            0_1531844098963_1748fc11-0cca-4755-825b-67869ee81c16-image.png

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

              When you find yourself copying the same block over and over again, there is usually a way to loop the process:
              0_1531850415421_54579295-345a-4684-b5e3-caf1af62268e-image.png
              This method creates as many trades as you want, and assigns a special number for each one.
              That number (group #) can then be used to control the trades.

              Doesn't really answer to your question though, just wanted to give another way of doing it 😄

              Need small help? Tag me in your post
              Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

              J 1 Reply Last reply Reply Quote 1
              • J
                josecortesllobat last edited by

                Awesome!!!!

                Thanks @roar. Your example Will reduce my Project.

                I really appreciate.

                1 Reply Last reply Reply Quote 1
                • J
                  josecortesllobat @roar last edited by

                  @roar

                  How can I add the variable "position_id" to the "comment" field in the Sell/Buy block in order to show the group# for each trade created in the loop?

                  0_1534453555294_e65670ae-fba0-4507-b21b-f79489fd3ffa-image.png

                  Thanks

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

                    Hello

                    I have found a way in one of the @miro1360 post

                    https://fxdreema.com/forum/topic/4608/field-comment-to-sell-now-block/2

                    Thanks

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

                    Online Users

                    A
                    A
                    E
                    B
                    M
                    J
                    B
                    E
                    R

                    22
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors