@ambrogio Thank you, works perfectly!!!!!
Best posts made by nilsen
-
RE: Unreliable onTrade filter events on MT5posted in Bug Reports
Latest posts made by nilsen
-
Copy-paste nodes with a name on the ID can't be copied between scriptsposted in Bug Reports
If I try to do copy-paste between two scripts (on different windows), the labeled IDs (without number) aren't pasted.
-
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