Hi there,
I cannot make the print the trades status coments on my MT4. Copied the logic as in the main example, and it does not do anything. Not a single letter. Do I need to enable special permision?
Posts made by cfabian
-
RE: How to see current profit?posted in Questions & Answers
-
RE: Profit target questionposted in Questions & Answers
__Check profit (period of time) - this block collects the total amount of profits from the existing trades. It doesn't care what Equity or Balance is. The block does not know what was Equity at 01:00 am.[/quote:1r30jz22]
Existing trades open or closed or both? What really counts is closed trades. Open trades can result in BE or Loss, thus that floating profit does not exist any more.
How do I have to set it up in order to stop trading after closed profit of XXX ?
Thanks
-
RE: Profit target questionposted in Questions & Answers
__It looks correct. I made this to check the block, I think that it's working as expected https://fxdreema.com/shared/rpdSx31Oc[/quote:1ytothns]
I have a question here... if I use the function as shown in the image, if my profit target say is $10, is the function checking this amount vs balance or equity?
What I mean, if my floating profit is say $15, this exceeds the $10, thus the condition would be met, BUT is no realized profit.If it uses floating profit (equity now vs equity at 1:00 am), then this could be a problem, as all the funtions around trailing stop, close trades, etc, are under the "FALSE" condition, together with the execution of new trades. So, this will stop you closing profitable trades strategy.
What can you say around this? Or how can I handle it to use real closed profit? Moving all closing strategy is complicated, as it is attached to the "no trade/order"
EDIT: I see an issue here... the block description says that if time 2 is left empty, then it counts current unrealized profit. An in reality time 2 is left empty as I want to check profit (realized) at all times to stop trading when target is reached. Sooo, what to do to make it work as needed?
Many thanks
-
RE: EA malfunctionposted in Questions & Answers
__I guess you have same issue as I had many times and in my case it was not only fxdreema EA, it was EAs created with "my own code" - this problem is something with MT4 and I have rule:
after a couple of tests EA (mainly on different pairs) is great restart MT4, or delete big log files in mql4 tester folder[/quote:2h52lovd]Thanks for your response Miro. I've restarted my MT4 instances. Let's see how it goes.
Lets see what Fxdreema has to say as well.
Regards
-
RE: EA malfunctionposted in Questions & Answers
__was something in journal, message or info why it was stopped?[/quote:1kn4qfgl]
No, it just stopped placing orders and drawing the trace function lines. This has happened few times already, no errors, and not always same pair that I can "recreate" the error.
-
RE: Profit target questionposted in Questions & Answers
Hello fxdreema,
I'm trying to set up a filter in which if I make over XXX profit in a day, starting at 1 am, the EA stops trading until next day.Attached is my configuration image, but I see the EA continues trading no matter such target is met.
Is this configured properly, or what is missing, or what to do?
Many thanks
......
daytarget.jpg -
RE: EA malfunctionposted in Questions & Answers
Hi there,
I noticed when testing an EA, same EA in different pairs, that some times it stops (in one of the instances, and is a random thing).
How do I know it stops? Well, the smiley is there as it should be. BUT, I have the trace fuction to show the indicator lines and see if it acts accordingly. So, I notice that the EA stops because it stops placing trades and the trace lines stops drawing as well, but the chart continues normally.Why it stops, or how to make it reactivate?
Thanks
-
RE: Apply indicatorposted in Questions & Answers
Is it possible to automatically apply an indicator (sutom indicator) to a chart when the EA us active?
If so, is it possible also that that indicator takes the values of the EA for its settings? For example I don't have to change values por MA period in the indicator to display, and also in the EA. So this way they are always "married".Thanks
-
RE: Cannot add custom indicatorsposted in Questions & Answers
I want to use a custom indicator, but cannot add it. When try to upload it as in the image, it does nothing.
How to upload it and how to use it? Does it embed in the code, or have to attach it in MT4 as well?
Thanks
......
customind.jpg -
RE: No trade/orde funtion troubleposted in Questions & Answers
Hello,
I have different settings for buys and sells, and each condition is differentiated by a group number (1,2,3,4) when a trade is placed.
Now, at the beginning of each set of conditions for a trade, I have the "No trade/order" option, with a the origin of trades set to group # corresponding to that set, so that I can filter out if a trade from those conditions is in place.What I see is that is the "no trade/order" funtion is not filtering by group as expected, but only by buy or sell. So if I have a buy from group 1, it does not place buy trades of group 3.
Image represents each of the 4 groups. Of course GROUP # is 1,2,3,4 accordingly. Am I using this incorrectly?
Thanks
......
notrade.jpg -
RE: BE not workingposted in Questions & Answers
Attached is an image of how I have setup the BE block. It does nothing, and is placed at the top of the tick tab.
My trades use group numbers, but as you can see, this is open to all trades.Also want to know if is possible to use BE + 1 as SL.
Any idea?
Many thanks
......
BE.jpg -
RE: Pips From Extreme Issueposted in Questions & Answers
__What you have in this Formula block is ZigZag + 10. And 10 is 10. Value => Numeric => 10. I mean, this is 10. 10 apples, not 10 pips. Not like 0.0010. Just 10, exactly 10.
In most cases indicators are giving you values like 1.23456 and when you add 10, the value becomes... guess what... 11.23456.[/quote:ki0q5y4y]Thanks for this note. Will use "pips this value as is"
Now, if need to compare candle close value vs a determined price level, should I use value - numeric?
-
RE: Pips From Extreme Issueposted in Questions & Answers
I wan to filter a setup that passes only when current price is at 10 pips from current extreme.
I thought using ZigZag was a good option, and thus using the HH0 and LL0 values to get those extremes.
Now, I build a formula so that if price is lower than LL0 + 10 pips, then is in condition to open a trade.
Same for sells, but price higher than HH0 - 10 pipsThis condition is filtering everything and does nothing. Attached is the example of the formulation.
https://fxdreema.com/shared/2p04EdB9
Please help
-
RE: Trace functionposted in Questions & Answers
Did you move anything in the trace function?
It was plotting the lines according to my settings to trace an indicator value. I updated some values and the new files don't plot. No matter I draw back my changes.This is the trace file for ZigZag Values. Not plotting after update, just showing values on the right of current price.
https://fxdreema.com/shared/6SdK68tUc
Thanks
-
RE: lower highs and higher lowsposted in Questions & Answers
Hi there...
I cannot find a way to determine lower highs, higher lows with the blocks.
I assume this is something recurrent in trading strategies, so I wonder if you can help to get these values?
My idea is to get a LH or HL and then trigger if price moves X pips away from those points.Thanks again
-
RE: Delete pending orders issueposted in Questions & Answers
__I wrote these things times and times before, but I will wrote them here again. There are few ways to do something:
-
In "on Tick". In "on Tick" if you use blocks to check something, you check the current state. This is the best way to do things. You check how many trades there are, how many orders there are and stuff like that. Even if the EA is restarted, everything is still valid, because you check the current state. No trades? - Delete orders. No orders? - Delete trades. No problem at all.
-
In "on Trade". In "on Trade" you detect events. The event when a trade/order is opened/closed/modified. This is not a state, but an event. A trade is closed? - Do something when that happens. This is how things work here. The downside is that if the EA is down for some time, when it's up again, it would miss some events.
Of course, if you don't like how blue blocks work, there are pink blocks and with them you can do almost everything. The downside is that each of them does something small and you will need many of them. Here is how Trailing Stop is done with them - https://fxdreema.com/demo/mt4-loop-trailing-stop
For buys and sells... try it! It does not hurt and you will see the result much, much faster than if you wait for me to respond. Pending orders are opened at the open price that is defined. Below or above the current price - it doesn't matter. The specific for "Price offset" in "Sell pending order" is that it works in the opposite way compared to "Buy pending order". Positive offset = direction down. Negative offset = direction up.[/quote:3it1vdkc]
But in "on tick" if I check current state of trades, and none pending order is active yet (hasn't been hit), this will pass as there is no trade active and close right away the pending orders. Same thing will happen if use "no trade". So the thing is detecting a recently closed trade to make it pass. Would like to know your opinion on this.
Will experiment with "on trade", but don't like the downside you mention in case the EA goes down for a moment.
Thanks
-
-
RE: Delete pending orders issueposted in Questions & Answers
__Maybe "on Trade" event.
For sells it works in the opposite way. 5 pips offset actually means -5 pips on the chart.[/quote:34f75s41]
I don't get how "on trade" can help to delete pending orders after active trades are closed. Can you please be more specific?
Ok, so for offset if want to put a pending order BELOW current price I have to use opposite sign to the direction of the trade, is this correct? Using negative for sells will move the entry further down passed current price.
Thanks
-
RE: Delete pending orders issueposted in Questions & Answers
__Delete pending orders is not supposed to always delete pending orders. I mean, it deletes them if there are orders to be deleted and it always passes, so other similar blocks can be connected below this one. Blue blocks like this one behave like this - they are there, they do what they are supposed to do if there is need to, otherwise they don't break the flow for other blocks.
This is how it works from the beginning. I did it like this for whatever reason, but now I can't change this behaviour only because one person wants it. If I do that, the projects of other people may break and they will not know it, because they don't expect it.[/quote:3icssz49]
I'm not expecting you to change this behaviour... I want to find a way to delete pending orders of a group of trades when trailing stops or SL close active trades.
I also tried using "check type last closed" so that if is a valid condition it deletes buys, otherwise deletes sells, but is not working either as it keeps closing those pending orders in the last direction, no matter are new trades, and no matter I use "pass once per trade".
So, how can I build such condition? Please help as undeleted pending orders at the right time are killing me.
Also want to ask how offset price for pending buys and sells work in terms of negative and positive input? If current price is 50, and I use -5 as offset price, will this mean that for buys it will place at 45, and for sells at 55? Or sells at 45 as well?
Thanks for your help
-
RE: Delete pending orders issueposted in Questions & Answers
Hi,
I've been experiencing an issue with closing pending orders after open trades hit SL or basket of trades close due BE.I have connected the delete pending orders AFTER the trailing money loss block, but the problem I encounter is that it always passes, causing all pending trades to delete right after openning. My guess is that this block should pass ONLY AFTER it closes the trades it is managing. But as it is not, now I can't find the way to delete pending orders right after trades in its group are closed?
Can you please help?
Many thanks
-
RE: Calling values from other charts????posted in Questions & Answers
__I don't think so, at least I don't know how to do something like this. But there is this type of variables - https://fxdreema.com/help/-/working%20w ... 0variables[/quote:2wjn7rb3]
Thanks for your response. I know this is possible, as I've seen some EA's that rely on information from other charts. The thing here is how to call indicators value from offline charts, for example M3 chart instead of standard M1, M5, M15.
Can timeframe be an input that can use other than the standard timeframe values? So I can type "M3" and it calls that offline chart? (offline charts are stored with desired M value, other than the standard used by MT4). What type of constant be needed for this?
I also wonder if there is a way to automatically draw trend lines?
What about a way to measure legs distance, So I can compare which way is trending more?
Thanks