@chiper
There appears to be a problem with the compiler with the latest update. Nothing will compile when exporting to MT4
Posts made by drewinbrissie
-
RE: Formula errorposted in Bug Reports
-
Filtering conditions on a basketposted in Questions & Answers
Hi all,
I'm trying to filter a basket of trades based on whether each trade is in profit or not. Can anyone suggest the code to go in the "Filter condition (advanced)" field?
I want to find the combined profit of only the profitable trades in the basket.
Thanks Drew

-
RE: How to exit a basket of trades when the sum of the winners is double the sum of the losers?posted in Questions & Answers
This is how far I've got. Not sure what to put in the advanced filter

-
RE: How to exit a basket of trades when the sum of the winners is double the sum of the losers?posted in Questions & Answers
To do this I've worked out I can use the Condition block comparing the profit of 2 buckets, but can't work out the code for the "Advanced filter" to select trades that are currently in profit (or not) for each of the buckets.
Thanks Drew
-
How to exit a basket of trades when the sum of the winners is double the sum of the losers?posted in Questions & Answers
Hi all, I'm trying to build the logic so that when I have a basket of trades running, all are closed when the sum of all the winning trades is double the size of the sum of the losing trades. Any ideas how I can do this?
Thanks Drew
-
Changing variable/constant names doesn't updateposted in Bug Reports
When I change the name of a variable or constant, then press the update button, nothing happens. The name doesn't update. If I switch from variable to constant, or the opposite the change gets lost.
The work around is to delete the constant/variable, then recreate it with the correct name.
I really like the real-time ability to add variables/constants when creating formula blocks. Saves a lot of time.
Thanks Drew
-
RE: Problem with block "Trailing stop (group of trades)"posted in Bug Reports
Attached are couple of screenshots which show the behavior in action.
I am getting some errors in the Journal. "Error: Invalid SL requested (1.15878 for Bid price 1.1548)". These appear to be associated with the trailing stop being too close to the open price.
The strategy I am implementing enters buy and sell trades with different lotsizes as a recovery from drawdown on an existing trade. The attached screenshots shows how this works. Simple mean-reversion strategy really. The exit will always be after a retracement has occurred so there will be buy and sell trades at the same level, and above and below the current price.
The TPPips variable is the number of pips in profit for the series of trades to exit as a group. For example, if there are 10 trades and TPPips is set to 10, when the average price of all 10 trades is 10 pips in profit, then trail the group. In the attached screen shots you can see only the buy trades were trailed and closed and the sell trades where left open.
If the trail was implemented as a virtual trail, rather than modifying each trade individually in real-time, it would then take out the whole series when the trail SL point was reached. This would avoid the issues of MT4 trying to set new SLs for each trade in real-time and getting conflicts with open prices. I appreciate it means if there are price gaps then there are no hard stops to take out individual trades.
The group profit calculation works well in the block "Check profit (unrealised)". If I put a close block after this it takes out all trades immediately at the correct point. Rather than a hard close, I want to trail the series of trades once a specific level of profit is reached. The ability to trail as a % of profit is ideal. It would be great if this function could be included as a "Trailing Stop mode" option. This means as profit increases I can give the trades more room to move rather than using a fixed value.
Thanks again for your great support,
Drew......
graphical example.docx -
RE: Problem with block "Trailing stop (group of trades)"posted in Bug Reports
I'm trying to use this block to trail a group of buy and sell trades. The block only seems to trail either the buys or the sells, but not all together as a single group. This is frustrating as I'm using the opposite trades as a hedge and want to exit when the whole group is in profit, not just the buys or sells. Without the hedge working the drawdown if much higher.
The attached files have an example of the block and the resulting trades. In this case all trades are trailed (ie.modified), but only the buys are closed as a group, then the sells are modified and finally closed.
Any help would be much appreciated.
Thanks Drew
-
RE: Problem with selection of multiple groups in block - on trade new trade openedposted in Bug Reports
I'm having trouble selecting multiple groups to filter the block (on trade) new trade opened. In the attached example
https://fxdreema.com/shared/UDGRZTVPc
block 13 works if I select a single group like group 1 (buy order from block 4) or All, but it doesn't work if I select multiple groups like 1 (block 4) ,2 (block12). I want it to only work for groups 1 and 2 (1,2).
Can you suggest why this isn't working?
Thanks Drew
-
RE: How to add pips to a price level for both JPY and non-JPY prices?posted in Questions & Answers
Hi all,
I want to add 10 pips to a price level so that it will work for both JPY pairs (2 digits) and non-JPY pairs (4/5) digit prices. Can anyone suggest an easy way to do this without having to manually perform the calculation twice in different blocks?
For example, to add 10 pips to a non-JPY pairs I can "Adjust" a price level in a Condition or Formula block with "+0.001". But this doesn't work for JPY pairs where the adjustment would need to be "+0.1"
Thanks Drew
-
RE: Desktop version of FxDreema?posted in Questions & Answers
I had a concern about security of my projects and someone else taking my priceless ideas and selling them. The addition of the ability to save projects out of the tool solves this problem completely. You can just save them locally and delete them from the server at any time. Great enhancement which effectively deals with any security concerns.
-
RE: Excellent work by fx dreemaposted in Questions & Answers
I agree this is a great tool with a high degree of flexibility and power. It is also relatively easy for a newbie to get the hang of.
