fxDreema

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

    Create custom blocks

    Questions & Answers
    2
    6
    1884
    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.
    • T
      totati last edited by

      Dear Admin,

      I want to store information in the comment field of each trade.
      Later I have to read it so I need a block: "Check last closed trade comment"

      I have tried to use "Create custom blocks" in the desktop application.
      First all subwindow are empty.

      How can I use a template for example "Check last closed trade profit" block?

      Or do you have any information using "Create custom blocks" function?

      Thank you for your kind help

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

        I'm still fixing some issues with the generator of blocks, if we are talking for the online version. But I think that you don't need this at all.

        There is an option at the bottom of all Buy/Sell blocks for the comment. Whatever you write there, this will be the comment. Then you can't modify this attribute anymore, only the broker can

        1 Reply Last reply Reply Quote 0
        • T
          totati last edited by

          Yes, I can use comment option of Buy/Sell blocks. And later I don't want to modify it, I want to read it only.

          So I'm looking for solution for two things:

          1. I need a block what can read the comment field of "last closed trade".

            If you make this block it is good for me :-))

            (It is very simple in mql4, but I can't do it as a block in fxdreema system)

          2. I have tried to make custom block in your desktop application but I didn't find any help to use it.

            If you offer using online block generator, than I will use it.
            Is it possible to transfer a block from online system to desktop?

          Thank you for your excellent work

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

            Here is it: https://fxdreema.com/shared/sHdT7r4Id
            And the function is pretty simple and can be used everywhere, as you probably know - OrderComment(). But also you must have the correct trade loaded, which is done here in "For each Trade". After this block you can use OrderComment() somewhere if you want and if it's easier for you.

            1 Reply Last reply Reply Quote 0
            • T
              totati last edited by

              Thank you for helping but you misunderstood the problem

              I have to use the comment of "last closed trade"

              I am a programmer so I can make it from mql4, but
              I tried to make it as a "custom block"

              How can I create custom blocks? This is the main question,
              because I had no chance without any information.

              Thank you again

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

                Here: https://fxdreema.com/studio/
                Not many people are using it, I also rewrote this thing as well and what was written for it before is not very accurate now. But if it works, you can create a new block (upper left), then write some code for it, save it and use it. Optionally input parameters can be defined for this block.

                Here is how it looks for me now, if it helps: http://prntscr.com/8emuzf
                ~next~ ~inext~ and ~error~ are the keywords behind the 3 possible outputs (orange, yellow and gray) and they are replaced with function calls for the next blocks connected to this one.

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

                Online Users

                O
                O
                L
                W
                X
                S
                X

                16
                Online

                146.9k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors