If I try to do copy-paste between two scripts (on different windows), the labeled IDs (without number) aren't pasted.
Posts made by nilsen
-
Copy-paste nodes with a name on the ID can't be copied between scriptsposted in Bug Reports
-
RE: Simple market buy/sell on MQL5 codeposted in Questions & Answers
@roar Thanks for the response but those functions give me compilation errors:
"
Compilation errors
'Buy' - undeclared identifier
',' - unexpected token
'0.1' - some operator expected
')' - unexpected token" -
Simple market buy/sell on MQL5 codeposted in Questions & Answers
Hi,
I would like to do a simple market buy/sell on a "custom MQL code" (MQL5) node but I can't figure how.
I've tried to put some code I've found but it gives error. Like: trade.Buy(0.01,NULL);
Can anybody tell me how to do it?
-
RE: How to open hedge positions having less than 100% of free margin?posted in Questions & Answers
@l-andorrà Thanks for noticing it to me. I did the script very fast to make the example and forgot that basic fact. I've corrected it by the way.
I hope someone can point me to the right direction.
-
How to open hedge positions having less than 100% of free margin?posted in Questions & Answers
Hi, I want to be able to open hedge (opposite) positions having less than 100% margin.
However when I try to do it on fxDreema it doesn't allow to open any position, displaying this message:
"Not enough money to trade
The robot is still working, waiting for some funds to appear..."It's perfectly doable manually, but not with fxDreema
How can I bypass this?
-
RE: How to detect more than one position on the same symbol on a positions loopposted in General Discussions
@l-andorrà yes I know but I want to compare lots of positions of different symbols and my intention is not to specify one by one..
-
RE: How to detect more than one position on the same symbol on a positions loopposted in General Discussions
@l-andorrà thanks for this, but I need to count how much trades for each symbol, not all together like on your script.
Concretely, I need to close a trade if there exist another one for the same symbol. -
RE: How to detect more than one position on the same symbol on a positions loopposted in General Discussions
@xfire thanks for the suggestion but market name isn't available there so it isn't useful for what I'm looking for
-
RE: How to detect more than one position on the same symbol on a positions loopposted in General Discussions
@l-andorrà I mean a counter of open trades of the same symbol
-
How to detect more than one position on the same symbol on a positions loopposted in General Discussions
Hi,
I would like to know a way to to detect if there is more than one position of the same symbol on a positions loop.The check positions count isn't usable due to it only works on a specific symbol or all.
Thanks.
-
RE: Unreliable onTrade filter events on MT5posted in Bug Reports
@l-andorrà No, but it can be easily managed just using buttons to launch the orders
-
RE: Unreliable onTrade filter events on MT5posted in Bug Reports
I've contacted fxdreema by mail and he helped me with the solution to this problem:
onTrade events are not reliable when trades are manually launched. So if those trades are launched from the EA, those work perfectly.
-
RE: Unreliable onTrade filter events on MT5posted in Bug Reports
@ambrogio Thank you, works perfectly!!!!!
-
RE: Unreliable onTrade filter events on MT5posted in Bug Reports
Anyone could point me to some MQL5 code to do that?
-
RE: Unreliable onTrade filter events on MT5posted in Bug Reports
@l-andorrà It's a real shame because MT5 is much more reliable on the data and on stability.
MT4 is very unstable in comparisson on my experience.
I need to use MT5 because my broker has server occasional overflows on MT4, causing some hangs that can last for minutes, and this can be very dangerous...
In the other way, using the same broker, on MT5, the client is 100% reliable and stable.
-
RE: Unreliable onTrade filter events on MT5posted in Bug Reports
@trader-philipps Stops are 50 pips, so no problem with that. I've checked the logs and there are no errors. When SL is applied, a modify line apperars on the log. When not, that modify line is missing. It's very random.
-
Unreliable onTrade filter events on MT5posted in Bug Reports
Hi, I'm having problems using onTrade filter events on MT5.
Those work sometimes, sometimes doesn't.
This doesn't happen on MT4 and I cannot figure out the cause.
In this example, I put a SL and TP when opening a position. Sometimes the SL and TP is set, and other times not. It should work always!

https://fxdreema.com/shared/Lm2U59LNd
Greetings.
-
Unreliable onTrade filter events on MT5posted in Questions & Answers
Hi, I'm having problems using onTrade filter events on MT5.
Those work sometimes, sometimes doesn't.
This doesn't happen on MT4 and I cannot figure out the cause.
In this example, I put a SL and TP when opening a position. Sometimes the SL and TP is set, and other times not. It should work always!

https://fxdreema.com/shared/Lm2U59LNd
Hope you can find out what I'm missing.
Greetings.
-
Help importing project from Desktop fxdreema to Web versionposted in Questions & Answers
Hi,
I would like to import a fxdreema Desktop version project to the web builder.
I've tried to import it with the mql4 option but it has problems with variables names
Once imported, variables are named "¿v75" or so in Modify blocks and variables are missing on Conditional blocks.
Any idea how to solve this?
Greetings.
