Create custom blocks
-
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
-
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
-
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:
-
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)
-
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
-
-
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. -
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
-
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.