@fxdreema has informed me that he thinks he’s fixed this block. I haven’t had time to test it but thought I’d update in case anyone was waiting for a fix. Thanks.
Posts made by droctagon
-
RE: Check profit (unrealised) block bug?posted in Bug Reports
-
RE: Check profit (unrealised) block bug?posted in Bug Reports
I'll let @fxdreema know that there seems to be a +1 with the same issue on MT4. I'll post back with any update he gives me. If he's too busy then I am planning on just creating a manual workaround using a formula to calculate the pip difference between the opening price and the current price and using that value to assess the unrealised profit (or loss) pips.
Thanks for letting me know.
-
RE: Check profit (unrealised) block bug?posted in Bug Reports
I've been in comms with @fxDreema and he's attentive to the issue (as he usually is
), however he says that he has been unable to recreate the issue. I've been able to recreate the issue over multiple MT5s on multiple machines in different locations (local and remote), so if anyone is curious or feeling particularly helpful, perhaps you could see if the following example that @fxDreema shared, works or doesn't work correctly for you:https://fxdreema.com/shared/aUOc2PkFd
It should close the open trade after reaching / exceeding 10 pips in profit, but for me it now just bypasses the 'check profit' block completely and moves on to the next block 'close positions', ignoring the 10 pips profit 'check profit'.
Any feedback much appreciated.
Paul.
-
RE: Check profit (unrealised) block bug?posted in Bug Reports
Ah really, I’ve been using them successfully for years. I use them to apply different closing rules (based around MACD of different timeframes) depending on what the current profit level is. I would use ‘money’ but my lot sizes change frequently and it wouldn’t work as I’d like.
I’ve just thought that I could build a work-around, just calculating the current price against the open price to establish the pips in profit.
Thank you for you feedback / assistance though, much appreciated.
-
RE: Check profit (unrealised) block bug?posted in Bug Reports
I have checked this again today and the Check Profit blocks are still not executing (or are preventing the block below it from executing). When I bypass them, my connected blocks execute. I've updated demo shared project to simplify. Will have to get on to support I think.
shared/YVYyUoCmc
-
RE: How to place order when price higher than all prices of old tradesposted in Questions & Answers
Assuming you mean that when the current price is higher than the highest closing price (or perhaps the opening price) of all your trades over a given period (of your choosing):
I would store the highest trade in a variable called something like (HighestClosePrice) or (HighestOpeningPrice) depending on what you want (I’ll assume close price). Then you could create blocks that [Close Positions] when your trade exit criteria is met, and at the point of closing you could have a [Condition] block that said IF (Market Properties:Current Price) > (HighestClosePrice) THEN [Modify Variables] of (HighestClosePrice) so that (HighestClosePrice) = (Market Properties:Current Price). If it was for the opening price you could create similar blocks at the point of the trade being opened.
Then you could the have a set of blocks that said IF (Market Properties:Current Price) > (HighestClosePrice) (or open price) then BUY . Of course you would need a starting trade to start the process off.
Depending on what market conditions you want to reset the process you could build another set of blocks that would set (HighestClosePrice) to 0 and restart the process.
-
RE: Check profit (unrealised) block bug?posted in Bug Reports
Thanks jstap, yes it works without them, I had already isolated them as the blocks that were problematic. I haven’t had a chance to revisit it today, so I shall double check tomorrow and see if I still have the same problem. Thanks.
-
Check profit (unrealised) block bug?posted in Bug Reports
Created .ex5 files with blocks that utilise 'pips (total sum)' and 'pips (as position)'. These blocks do not seem to be executing in projects that I have compiled today, where they used to work as expected. Tried on different instances of Metatrader 5, on different machines, with different Symbol data sources and they do not seem to be executing as they should in the above modes. Attached a demo that demonstrates:
-
RE: Constant Type for Dollarposted in Questions & Answers
Well I would say if you are using Constants or Variables with values that will never have decimals (i.e. Cents) then you could use Int. If your values might contain decimals then use Double. If you're not sure, use Double.
-
RE: % Equity => Lots intermittent error?posted in Bug Reports
Thanks for replying, yes the Sell / Buy blocks have an SL, also defined as a Constant. The SL shows up fine. I find it strange that you have to have a SL when defining the Equity => Lots though? Shouldn't they be completely independent of each other (i.e. what if you wanted to trade with virtual SL or just Trailing Stop)... don't worry if this is going off track...
-
% Equity => Lots intermittent error?posted in Bug Reports
Hi, I have a problem that only shows up intermittently and I'm hoping to try and find out what might be the cause.
I have Sell / Buy blocks that are set to % Equity => Lots and in the 'How Much' field has a Constant (defined as say 14000).
In back testing this happily opens lots as a percentage of the equity but when run on a live account I randomly get the error:
'Not enough money to trade 200.00, the volume to trade will be the maximum possible of x.xx' (where x.xx is just whatever the maximum is for the account equity)
Clearly the EA is trying to open the absolute maximum possible LOT and the broker is just defaulting to the maximum possible for the account equity. I am on IC Markets 1:500 so it's not a leverage problem. Obviously I don't want this as large positions can suddenly be opened. Is it a stored constant problem (i.e. The constant is lost temporarily or something) or something else. It only seems to happen on a handful of trades despite the same Buy and Sell blocks running.
I have tried deleting and recreating blocks, switching between Constants and Variables. I have tried it with different VPSs on MQL and AWS and on different accounts but the same thing happens. Any ideas am I doing wrong?
I have switched to running a formula for X lots per 100 equity for now as a workaround but I would be a bonus to know why this happened.
Thanks
-
RE: please guide on trade on candle closeposted in Questions & Answers
Just a thought, why not execute the trade on the next candle open? The next candle opens as the previous candle closes so it's the same thing.
-
RE: Options in Volumes Indicatorposted in Questions & Answers
Thank you. I'll check the MQ5 in future!
-
RE: Options in Volumes Indicatorposted in Questions & Answers
Hi,
When adding the Volumes indicator in MT5, I can choose either Tick Volume or Real Volume.
In fxdreema when I select the drop down for the Volume indicator I can choose Tick Volume or Trade Volume.
Does Trade Volume = Real Volume?
Thanks.
-
RE: Store Current Date & Time into a variableposted in Questions & Answers
Hi,
I have tried to store the current date/time into a variable but had no luck. Wondering if you might be able to point me in the right direction? I've tried using formula and modify variable blocks using Value>Time and Market Properties>Time (current). I've also tried changing the variable data type string, int, datetime, etc.. but I can't see to get it to store a time stamp of some description.
Not urgent btw. Thank you.
-
RE: Detecting important news eventsposted in Questions & Answers
Ah ha, I see
I am showing my naivety! Thanks again. -
RE: Detecting important news eventsposted in Questions & Answers
That's cool I fixed it. By the way, I think in one of the latest releases of MT5, when you open a new trading account there is a check box that say 'enable hedging mode' (if the broker supports it) I read an article somewhere saying that now you can hedge in MT5

-
RE: Detecting important news eventsposted in Questions & Answers
Actually I've got another issue, I am running my EA on more than one chart sometimes with the same currency pair.
My issue is that I have a 'No Position' block as a condition for placing a trade, but if there is an open position that has been initiated by another instance of the EA on a different chart then it ignores the fact there is an open position and adds another lot to the existing trade (when I only want the original trade)
I'll send you a link to the EA if it's easier for you. Thanks Radoslav.
-
RE: Detecting important news eventsposted in Questions & Answers
Cool well it's fine by me, I just switched to doing everything server time.
